From: Quanah Gibson-Mount Date: Fri, 22 Sep 2017 21:25:20 +0000 (-0700) Subject: ITS#8687 - EGD is disabled by default in OpenSSL 1.1. We need to comment out this... X-Git-Tag: OPENLDAP_REL_ENG_2_4_46~56 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9db93a138932ddbe68f2a4215d136383d4f3dc46;p=thirdparty%2Fopenldap.git ITS#8687 - EGD is disabled by default in OpenSSL 1.1. We need to comment out this block if it is not detected. Particularly affects cross compilation. --- diff --git a/libraries/libldap/tls_o.c b/libraries/libldap/tls_o.c index 2025c9fc89..7f5a557921 100644 --- a/libraries/libldap/tls_o.c +++ b/libraries/libldap/tls_o.c @@ -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,