From: Arran Cudbard-Bell Date: Tue, 10 Jan 2023 16:15:10 +0000 (-0600) Subject: Force openSSL version check literals to unsigned long X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b38e63b3b6e60748580a8c008ed2c0ad223ff10e;p=thirdparty%2Ffreeradius-server.git Force openSSL version check literals to unsigned long --- diff --git a/configure b/configure index 53032f9eea4..35e702c0e81 100755 --- 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; diff --git a/configure.ac b/configure.ac index 664aa2e33ef..515e61cf615 100644 --- a/configure.ac +++ b/configure.ac @@ -1405,8 +1405,8 @@ if test "x$WITH_OPENSSL" = xyes; then #include ]], [[ - 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;