summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--configure.in2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index d9d3ec3f1..2beaf7fc6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
120000404
2 - Add tests for RAND_add function when searching for OpenSSL
3
120000403 420000403
2 - Wrote entropy collection routines for systems that lack /dev/random 5 - Wrote entropy collection routines for systems that lack /dev/random
3 and EGD 6 and EGD
diff --git a/configure.in b/configure.in
index 1a2fcd2ca..14dd51081 100644
--- a/configure.in
+++ b/configure.in
@@ -231,7 +231,7 @@ for ssldir in "" $tryssldir /usr/local/openssl /usr/lib/openssl /usr/local/ssl /
231 { 231 {
232 RSA *key; char a[2048],b[2048];; 232 RSA *key; char a[2048],b[2048];;
233 memset(a, 0, sizeof(a));memset(b, 0, sizeof(b)); 233 memset(a, 0, sizeof(a));memset(b, 0, sizeof(b));
234 RAND_seed(a, sizeof(a)); 234 RAND_add(a, sizeof(a), sizeof(a));
235 key=RSA_generate_key(32,3,NULL,NULL); 235 key=RSA_generate_key(32,3,NULL,NULL);
236 if (key==NULL) return(1); 236 if (key==NULL) return(1);
237 return(-1==RSA_private_decrypt(RSA_size(key),a,b,key,RSA_NO_PADDING)); 237 return(-1==RSA_private_decrypt(RSA_size(key),a,b,key,RSA_NO_PADDING));