diff options
author | Daniel Stenberg <daniel@haxx.se> | 2017-09-06 09:32:02 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2017-09-07 15:59:42 +0200 |
commit | 4bb80d532e73045b06d23228b3a501d9f7c93acf (patch) | |
tree | 3fa8ca88c634ce9f3afe18751218aa115ab0e649 /lib/vtls/darwinssl.c | |
parent | 6b585b1183ec9191eae411a4d7b47c565a061b53 (diff) | |
download | curl-4bb80d532e73045b06d23228b3a501d9f7c93acf.tar.gz |
vtls: switch to CURL_SHA256_DIGEST_LENGTH define
... instead of the prefix-less version since WolfSSL 3.12 now uses an
enum with that name that causes build failures for us.
Fixes #1865
Closes #1867
Reported-by: Gisle Vanem
Diffstat (limited to 'lib/vtls/darwinssl.c')
-rw-r--r-- | lib/vtls/darwinssl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/vtls/darwinssl.c b/lib/vtls/darwinssl.c index f00a10053..ab3224c50 100644 --- a/lib/vtls/darwinssl.c +++ b/lib/vtls/darwinssl.c @@ -2780,7 +2780,7 @@ static void Curl_darwinssl_sha256sum(const unsigned char *tmp, /* input */ unsigned char *sha256sum, /* output */ size_t sha256len) { - assert(sha256len >= SHA256_DIGEST_LENGTH); + assert(sha256len >= CURL_SHA256_DIGEST_LENGTH); (void)CC_SHA256(tmp, (CC_LONG)tmplen, sha256sum); } |