]> git.sur5r.net Git - openldap/commitdiff
ITS#8687 - EGD is disabled by default in OpenSSL 1.1. We need to comment out this...
authorQuanah Gibson-Mount <quanah@openldap.org>
Fri, 22 Sep 2017 21:25:20 +0000 (14:25 -0700)
committerQuanah Gibson-Mount <quanah@openldap.org>
Wed, 11 Oct 2017 19:44:44 +0000 (12:44 -0700)
libraries/libldap/tls_o.c

index 2025c9fc89e563d8e0e62d897a857f5ed6dc1987..7f5a55792165c9ece93b0b8ce3a73d6968247fc6 100644 (file)
@@ -1186,11 +1186,13 @@ tlso_seed_PRNG( const char *randfile )
                 * The fact is that when $HOME is NULL, .rnd is used.
                 */
                randfile = RAND_file_name( buffer, sizeof( buffer ) );
-
-       } else if (RAND_egd(randfile) > 0) {
+       }
+#ifndef OPENSSL_NO_EGD
+       else if (RAND_egd(randfile) > 0) {
                /* EGD socket */
                return 0;
        }
+#endif
 
        if (randfile == NULL) {
                Debug( LDAP_DEBUG_ANY,