diff options
Diffstat (limited to 'entropy.c')
-rw-r--r-- | entropy.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -43,6 +43,8 @@ | |||
43 | #include <openssl/crypto.h> | 43 | #include <openssl/crypto.h> |
44 | #include <openssl/err.h> | 44 | #include <openssl/err.h> |
45 | 45 | ||
46 | #include "openbsd-compat/openssl-compat.h" | ||
47 | |||
46 | #include "ssh.h" | 48 | #include "ssh.h" |
47 | #include "misc.h" | 49 | #include "misc.h" |
48 | #include "xmalloc.h" | 50 | #include "xmalloc.h" |
@@ -209,6 +211,9 @@ seed_rng(void) | |||
209 | #ifndef OPENSSL_PRNG_ONLY | 211 | #ifndef OPENSSL_PRNG_ONLY |
210 | unsigned char buf[RANDOM_SEED_SIZE]; | 212 | unsigned char buf[RANDOM_SEED_SIZE]; |
211 | #endif | 213 | #endif |
214 | if (!ssh_compatible_openssl(OPENSSL_VERSION_NUMBER, SSLeay())) | ||
215 | fatal("OpenSSL version mismatch. Built against %lx, you " | ||
216 | "have %lx", (u_long)OPENSSL_VERSION_NUMBER, SSLeay()); | ||
212 | 217 | ||
213 | #ifndef OPENSSL_PRNG_ONLY | 218 | #ifndef OPENSSL_PRNG_ONLY |
214 | if (RAND_status() == 1) { | 219 | if (RAND_status() == 1) { |