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.

This commit is contained in:
Quanah Gibson-Mount 2017-09-22 14:25:20 -07:00 committed by Quanah Gibson-Mount
parent a795d7cc0b
commit 35a880c53e

View File

@ -1309,11 +1309,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,