From: Damien Miller Date: Tue, 4 Apr 2000 00:21:09 +0000 (+1000) Subject: - Add tests for RAND_add function when searching for OpenSSL X-Git-Tag: V_1_2_3_TEST3~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=193ba88dd6e9d6bcd5f476c7f5ddde8fd0b752bf;p=thirdparty%2Fopenssh-portable.git - Add tests for RAND_add function when searching for OpenSSL --- diff --git a/ChangeLog b/ChangeLog index d9d3ec3f1..2beaf7fc6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +20000404 + - Add tests for RAND_add function when searching for OpenSSL + 20000403 - Wrote entropy collection routines for systems that lack /dev/random 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 / { RSA *key; char a[2048],b[2048];; memset(a, 0, sizeof(a));memset(b, 0, sizeof(b)); - RAND_seed(a, sizeof(a)); + RAND_add(a, sizeof(a), sizeof(a)); key=RSA_generate_key(32,3,NULL,NULL); if (key==NULL) return(1); return(-1==RSA_private_decrypt(RSA_size(key),a,b,key,RSA_NO_PADDING));