From: Arran Cudbard-Bell Date: Fri, 28 Oct 2022 15:49:26 +0000 (-0500) Subject: Sync openssl version checks with tls/version.c X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=84870824cecb6cf1e2593a360cf5faddc4cd45d2;p=thirdparty%2Ffreeradius-server.git Sync openssl version checks with tls/version.c --- diff --git a/configure b/configure index 0843ee00ac1..87177398d22 100755 --- 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; diff --git a/configure.ac b/configure.ac index 69d3b7bf66a..440f77167be 100644 --- a/configure.ac +++ b/configure.ac @@ -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;