]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
curl_sha512_255: fix detection of OpenSSL 1.1.1 or later
authorPaul Howarth <paul@city-fan.org>
Wed, 27 Mar 2024 18:17:54 +0000 (18:17 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 28 Mar 2024 08:19:08 +0000 (09:19 +0100)
Use the same OPENSSL_VERSION_NUMBER comparison as in lib/vtls/openssl.c.

Closes #13208

lib/curl_sha512_256.c

index 8af3839c5f757a6f7a23e8355d5fed9c767a8496..7c7e12d7de8a608c9900de23c8d9c32bd384ac44 100644 (file)
@@ -44,7 +44,7 @@
 #  include <openssl/opensslv.h>
 #  if (!defined(LIBRESSL_VERSION_NUMBER) && \
         defined(OPENSSL_VERSION_NUMBER) && \
-        (OPENSSL_VERSION_NUMBER >= 0x10100010L)) || \
+        (OPENSSL_VERSION_NUMBER >= 0x10101000L)) || \
       (defined(LIBRESSL_VERSION_NUMBER) && \
         (LIBRESSL_VERSION_NUMBER >= 0x3080000fL))
 #    include <openssl/opensslconf.h>