Skip to content

Commit

Permalink
openssl: build with < 0.9.8
Browse files Browse the repository at this point in the history
... without sha256 support and no define saying so.

Reported-by: Rajkumar Mandal
  • Loading branch information
bagder committed Sep 17, 2015
1 parent 887a4a1 commit 82e3e8e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/vtls/openssl.c
Expand Up @@ -3185,7 +3185,7 @@ void Curl_ossl_md5sum(unsigned char *tmp, /* input */
MD5_Final(md5sum, &MD5pw);
}

#ifndef OPENSSL_NO_SHA256
#if (OPENSSL_VERSION_NUMBER >= 0x0090800fL) && !defined(OPENSSL_NO_SHA256)
void Curl_ossl_sha256sum(const unsigned char *tmp, /* input */
size_t tmplen,
unsigned char *sha256sum /* output */,
Expand Down
2 changes: 1 addition & 1 deletion lib/vtls/openssl.h
Expand Up @@ -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()
Expand Down

0 comments on commit 82e3e8e

Please sign in to comment.