summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac11
-rw-r--r--entropy.c6
2 files changed, 10 insertions, 7 deletions
diff --git a/configure.ac b/configure.ac
index 7379ab358..0d55bece5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2602,8 +2602,9 @@ if test "x$openssl" = "xyes" ; then
2602 if(fd == NULL) 2602 if(fd == NULL)
2603 exit(1); 2603 exit(1);
2604 2604
2605 if ((rc = fprintf(fd, "%08lx (%s)\n", (unsigned long)SSLeay(), 2605 if ((rc = fprintf(fd, "%08lx (%s)\n",
2606 SSLeay_version(SSLEAY_VERSION))) < 0) 2606 (unsigned long)OpenSSL_version_num(),
2607 OpenSSL_version(OPENSSL_VERSION))) < 0)
2607 exit(1); 2608 exit(1);
2608 2609
2609 exit(0); 2610 exit(0);
@@ -2645,7 +2646,7 @@ if test "x$openssl" = "xyes" ; then
2645 #include <openssl/opensslv.h> 2646 #include <openssl/opensslv.h>
2646 #include <openssl/crypto.h> 2647 #include <openssl/crypto.h>
2647 ]], [[ 2648 ]], [[
2648 exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); 2649 exit(OpenSSL_version_num() == OPENSSL_VERSION_NUMBER ? 0 : 1);
2649 ]])], 2650 ]])],
2650 [ 2651 [
2651 AC_MSG_RESULT([yes]) 2652 AC_MSG_RESULT([yes])
@@ -2673,7 +2674,7 @@ if test "x$openssl" = "xyes" ; then
2673 AC_MSG_CHECKING([if programs using OpenSSL functions will link]) 2674 AC_MSG_CHECKING([if programs using OpenSSL functions will link])
2674 AC_LINK_IFELSE( 2675 AC_LINK_IFELSE(
2675 [AC_LANG_PROGRAM([[ #include <openssl/evp.h> ]], 2676 [AC_LANG_PROGRAM([[ #include <openssl/evp.h> ]],
2676 [[ SSLeay_add_all_algorithms(); ]])], 2677 [[ OpenSSL_add_all_algorithms(); ]])],
2677 [ 2678 [
2678 AC_MSG_RESULT([yes]) 2679 AC_MSG_RESULT([yes])
2679 ], 2680 ],
@@ -2684,7 +2685,7 @@ if test "x$openssl" = "xyes" ; then
2684 AC_MSG_CHECKING([if programs using OpenSSL need -ldl]) 2685 AC_MSG_CHECKING([if programs using OpenSSL need -ldl])
2685 AC_LINK_IFELSE( 2686 AC_LINK_IFELSE(
2686 [AC_LANG_PROGRAM([[ #include <openssl/evp.h> ]], 2687 [AC_LANG_PROGRAM([[ #include <openssl/evp.h> ]],
2687 [[ SSLeay_add_all_algorithms(); ]])], 2688 [[ OpenSSL_add_all_algorithms(); ]])],
2688 [ 2689 [
2689 AC_MSG_RESULT([yes]) 2690 AC_MSG_RESULT([yes])
2690 ], 2691 ],
diff --git a/entropy.c b/entropy.c
index c178c00cf..fc710ec23 100644
--- a/entropy.c
+++ b/entropy.c
@@ -219,9 +219,11 @@ seed_rng(void)
219#ifndef OPENSSL_PRNG_ONLY 219#ifndef OPENSSL_PRNG_ONLY
220 unsigned char buf[RANDOM_SEED_SIZE]; 220 unsigned char buf[RANDOM_SEED_SIZE];
221#endif 221#endif
222 if (!ssh_compatible_openssl(OPENSSL_VERSION_NUMBER, SSLeay())) 222 if (!ssh_compatible_openssl(OPENSSL_VERSION_NUMBER,
223 OpenSSL_version_num()))
223 fatal("OpenSSL version mismatch. Built against %lx, you " 224 fatal("OpenSSL version mismatch. Built against %lx, you "
224 "have %lx", (u_long)OPENSSL_VERSION_NUMBER, SSLeay()); 225 "have %lx", (u_long)OPENSSL_VERSION_NUMBER,
226 OpenSSL_version_num());
225 227
226#ifndef OPENSSL_PRNG_ONLY 228#ifndef OPENSSL_PRNG_ONLY
227 if (RAND_status() == 1) { 229 if (RAND_status() == 1) {