From ecbdbcf66a11134c24b7cfc182fc7e148ee1802a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Alejandro=20R=2E=20Sede=C3=B1o?= <asedeno@mit.edu>
Date: Wed, 16 Feb 2022 16:57:13 -0500
Subject: [PATCH] EVP_sha256() does not appear in OpenSSL until 0.9.7h

We can't use OpenSSL's SHA256 implementation in versions that predate
it, and the EVP_sha256() function does not appear until OpenSSL
0.9.7h. It is possible it was not enabled by default until later, and
someone else can propose moving this threshold up further, but this is
the minimum lower bound for this to work.
---
 lib/sha256.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/sha256.c b/lib/sha256.c
index 30c7e1d07..3a9c70422 100644
--- a/lib/sha256.c
+++ b/lib/sha256.c
@@ -40,7 +40,7 @@
 
 #include <openssl/opensslv.h>
 
-#if (OPENSSL_VERSION_NUMBER >= 0x0090700fL)
+#if (OPENSSL_VERSION_NUMBER >= 0x0090708fL)
 #define USE_OPENSSL_SHA256
 #endif
 
-- 
2.20.1

