]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Force openSSL version check literals to unsigned long
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 10 Jan 2023 16:15:10 +0000 (10:15 -0600)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 10 Jan 2023 16:15:21 +0000 (10:15 -0600)
configure
configure.ac

index 53032f9eea46414d5bb41f270a6b6f94f584b14c..35e702c0e813cb24d7c7e57e7749c0841174dc13 100755 (executable)
--- a/configure
+++ b/configure
@@ -10704,8 +10704,8 @@ int
 main (void)
 {
 
-          printf("library: %lx header: %lx... ", (unsigned long) SSLeay(), (unsigned long) OPENSSL_VERSION_NUMBER);
-          if ((OpenSSL_version_num() & 0xfff00000) == (OPENSSL_VERSION_NUMBER & 0xfff00000)) {
+          printf("library: %s, header: %s... ", OpenSSL_version(OPENSSL_VERSION), OPENSSL_VERSION_TEXT);
+          if ((OpenSSL_version_num() & 0xfff00000L) == (OPENSSL_VERSION_NUMBER & 0xfff00000L)) {
             return 0;
           } else {
             return 1;
index 664aa2e33efc24365a6a8fe9fd8bc90655dc89bb..515e61cf615575377c2a33ee979a0005935d5e40 100644 (file)
@@ -1405,8 +1405,8 @@ if test "x$WITH_OPENSSL" = xyes; then
           #include <openssl/crypto.h>
         ]],
         [[
-          printf("library: %lx header: %lx... ", (unsigned long) SSLeay(), (unsigned long) OPENSSL_VERSION_NUMBER);
-          if ((OpenSSL_version_num() & 0xfff00000) == (OPENSSL_VERSION_NUMBER & 0xfff00000)) {
+          printf("library: %s, header: %s... ", OpenSSL_version(OPENSSL_VERSION), OPENSSL_VERSION_TEXT);
+          if ((OpenSSL_version_num() & 0xfff00000L) == (OPENSSL_VERSION_NUMBER & 0xfff00000L)) {
             return 0;
           } else {
             return 1;