summaryrefslogtreecommitdiff
path: root/entropy.c
diff options
context:
space:
mode:
Diffstat (limited to 'entropy.c')
-rw-r--r--entropy.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/entropy.c b/entropy.c
index 2aee2d917..1e9d52ac4 100644
--- a/entropy.c
+++ b/entropy.c
@@ -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) {