]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
sha256: Fix minimum OpenSSL version
authorAlejandro R. Sedeño <asedeno@mit.edu>
Wed, 16 Feb 2022 21:57:13 +0000 (16:57 -0500)
committerJay Satiro <raysatiro@yahoo.com>
Thu, 17 Feb 2022 05:35:23 +0000 (00:35 -0500)
- Change the minimum OpenSSL version for using their SHA256
  implementation from 0.9.7 to 0.9.8.

EVP_sha256() does not appear in the OpenSSL source before 0.9.7h, and
does not get built by default until 0.9.8, so trying to use it for all
0.9.7 is wrong, and before 0.9.8 is unreliable.

Closes https://github.com/curl/curl/pull/8464

lib/sha256.c

index 30c7e1d075132bb1e9e8a99f0d515951b8543d89..1e879f60f6d197ebebf5a1e7009d5fb2b4c9e91f 100644 (file)
@@ -40,7 +40,7 @@
 
 #include <openssl/opensslv.h>
 
-#if (OPENSSL_VERSION_NUMBER >= 0x0090700fL)
+#if (OPENSSL_VERSION_NUMBER >= 0x0090800fL)
 #define USE_OPENSSL_SHA256
 #endif