diff options
author | Damien Miller <djm@mindrot.org> | 2000-03-05 16:10:45 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2000-03-05 16:10:45 +1100 |
commit | fac99cd12a9b4480284c4d4229b2e842bc1065f7 (patch) | |
tree | f562535463ee9923dd3ba71e823a888ed661d4cb /configure.in | |
parent | 01bedb83b1faddd7d9dd136bfcd474e1608af8f7 (diff) |
- Explicitly seed OpenSSL's PRNG before checking rsa_alive()
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/configure.in b/configure.in index e5bdc445c..c93811c75 100644 --- a/configure.in +++ b/configure.in | |||
@@ -160,7 +160,9 @@ for ssldir in "" $tryssldir /usr /usr/local/openssl /usr/lib/openssl /usr/local/ | |||
160 | #include <openssl/bn.h> | 160 | #include <openssl/bn.h> |
161 | #include <openssl/sha.h> | 161 | #include <openssl/sha.h> |
162 | int main(void) | 162 | int main(void) |
163 | {RSA *key;key=RSA_generate_key(32,3,NULL,NULL);return(key==NULL);} | 163 | {RSA *key; char seed[2048];memset(seed, 0, sizeof(seed)); |
164 | RAND_seed(seed, sizeof(seed));key=RSA_generate_key(32,3,NULL,NULL); | ||
165 | return(key==NULL);} | ||
164 | ], | 166 | ], |
165 | [ | 167 | [ |
166 | AC_DEFINE(HAVE_OPENSSL) | 168 | AC_DEFINE(HAVE_OPENSSL) |
@@ -174,7 +176,9 @@ for ssldir in "" $tryssldir /usr /usr/local/openssl /usr/lib/openssl /usr/local/ | |||
174 | #include <ssl/bn.h> | 176 | #include <ssl/bn.h> |
175 | #include <ssl/sha.h> | 177 | #include <ssl/sha.h> |
176 | int main(void) | 178 | int main(void) |
177 | {RSA *key;key=RSA_generate_key(32,3,NULL,NULL);return(key==NULL);} | 179 | {RSA *key; char seed[2048];memset(seed, 0, sizeof(seed)); |
180 | RAND_seed(seed, sizeof(seed));key=RSA_generate_key(32,3,NULL,NULL); | ||
181 | return(key==NULL);} | ||
178 | ], | 182 | ], |
179 | [ | 183 | [ |
180 | AC_DEFINE(HAVE_SSL) | 184 | AC_DEFINE(HAVE_SSL) |