From 566be2787e2e5dea4ed95f389fdceec6bb62f671 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Tue, 6 Apr 2010 00:16:20 +0200 Subject: Call OpenSSL_add_all_algorithms(). To fix Debian Bug #576430, reported by Sjoerd Simons. --- socket.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'socket.c') diff --git a/socket.c b/socket.c index 901e2e42..e5c52104 100644 --- a/socket.c +++ b/socket.c @@ -822,8 +822,8 @@ int SSLOpen(int sock, char *mycert, char *mykey, const char *myproto, int certck SSL_load_error_strings(); SSL_library_init(); - -#ifdef SSL_ENABLE + OpenSSL_add_all_algorithms(); /* see Debian Bug#576430 and manpage */ + if (stat("/dev/random", &randstat) && stat("/dev/urandom", &randstat)) { /* Neither /dev/random nor /dev/urandom are present, so add @@ -839,8 +839,6 @@ int SSLOpen(int sock, char *mycert, char *mykey, const char *myproto, int certck RAND_add (buf, sizeof buf, 0.1); } } -#endif /* SSL_ENABLE */ - if( sock < 0 || (unsigned)sock > FD_SETSIZE ) { report(stderr, GT_("File descriptor out of range for SSL") ); -- cgit v1.2.3