aboutsummaryrefslogtreecommitdiff
path: root/lib/vtls/openssl.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2015-09-17 08:48:43 +0200
committerDaniel Stenberg <daniel@haxx.se>2015-09-17 08:54:04 +0200
commit82e3e8e31fbdd237e82233d137fd1bbb730f13f5 (patch)
tree715243d4e7656f2a9717cc611d629a6bd7be5cdf /lib/vtls/openssl.h
parent887a4a19aa1ddad54f9fb1b5f0abd6b452fcecab (diff)
openssl: build with < 0.9.8
... without sha256 support and no define saying so. Reported-by: Rajkumar Mandal
Diffstat (limited to 'lib/vtls/openssl.h')
-rw-r--r--lib/vtls/openssl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/vtls/openssl.h b/lib/vtls/openssl.h
index a1f347a05..27738cc30 100644
--- a/lib/vtls/openssl.h
+++ b/lib/vtls/openssl.h
@@ -108,7 +108,7 @@ bool Curl_ossl_cert_status_request(void);
#define curlssl_data_pending(x,y) Curl_ossl_data_pending(x,y)
#define curlssl_random(x,y,z) Curl_ossl_random(x,y,z)
#define curlssl_md5sum(a,b,c,d) Curl_ossl_md5sum(a,b,c,d)
-#ifndef OPENSSL_NO_SHA256
+#if (OPENSSL_VERSION_NUMBER >= 0x0090800fL) && !defined(OPENSSL_NO_SHA256)
#define curlssl_sha256sum(a,b,c,d) Curl_ossl_sha256sum(a,b,c,d)
#endif
#define curlssl_cert_status_request() Curl_ossl_cert_status_request()