]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Sync openssl version checks with tls/version.c
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 28 Oct 2022 15:49:26 +0000 (10:49 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 28 Oct 2022 15:49:37 +0000 (10:49 -0500)
configure
configure.ac

index 0843ee00ac14195013647e77c31c8f33ee0c5215..87177398d22b73c610ef1ba33dae5de48d704c5a 100755 (executable)
--- a/configure
+++ b/configure
@@ -10706,7 +10706,7 @@ main (void)
 {
 
           printf("library: %lx header: %lx... ", (unsigned long) SSLeay(), (unsigned long) OPENSSL_VERSION_NUMBER);
-          if (SSLeay() == OPENSSL_VERSION_NUMBER) {
+          if ((OpenSSL_version_num() & 0xfff00000) == (OPENSSL_VERSION_NUMBER & 0xfff00000)) {
             return 0;
           } else {
             return 1;
index 69d3b7bf66a2822502dafd88691b9006ac32219c..440f77167be803c434da31b747a00d0f93fe03f6 100644 (file)
@@ -1414,7 +1414,7 @@ if test "x$WITH_OPENSSL" = xyes; then
         ]],
         [[
           printf("library: %lx header: %lx... ", (unsigned long) SSLeay(), (unsigned long) OPENSSL_VERSION_NUMBER);
-          if (SSLeay() == OPENSSL_VERSION_NUMBER) {
+          if ((OpenSSL_version_num() & 0xfff00000) == (OPENSSL_VERSION_NUMBER & 0xfff00000)) {
             return 0;
           } else {
             return 1;