diff --git a/lib/sha256.c b/lib/sha256.c index cd81c02541..776bd2846d 100644 --- a/lib/sha256.c +++ b/lib/sha256.c @@ -27,8 +27,20 @@ #include "warnless.h" #include "curl_sha256.h" +#define USE_OPENSSL_SHA256 0 + #if defined(USE_OPENSSL) +#include + +#if (OPENSSL_VERSION_NUMBER >= 0x0090800fL) +#define USE_OPENSSL_SHA256 1 +#endif + +#endif + +#if USE_OPENSSL_SHA256 + /* When OpenSSL is available we use the SHA256-function from OpenSSL */ #include