diff options
author | Wyatt O'Day <wyatt@wyday.com> | 2018-04-02 13:33:00 -0400 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2018-04-06 14:21:50 +0200 |
commit | 336b6a32c0c9bec6bf6ccfc5942a3ce62ff34281 (patch) | |
tree | dc5474d3b6baa88a077f95a7fd8ab1213356860b /lib/vtls/cyassl.c | |
parent | 746479adcbd2bba06077642fefe0414ad6e1e0ea (diff) | |
download | curl-336b6a32c0c9bec6bf6ccfc5942a3ce62ff34281.tar.gz |
tls: fix mbedTLS 2.7.0 build + handle sha256 failures
(mbedtls 2.70 compiled with MBEDTLS_DEPRECATED_REMOVED)
Closes #2453
Diffstat (limited to 'lib/vtls/cyassl.c')
-rw-r--r-- | lib/vtls/cyassl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/vtls/cyassl.c b/lib/vtls/cyassl.c index 1bd42d2c8..913c22d4a 100644 --- a/lib/vtls/cyassl.c +++ b/lib/vtls/cyassl.c @@ -966,7 +966,7 @@ static CURLcode Curl_cyassl_random(struct Curl_easy *data, return CURLE_OK; } -static void Curl_cyassl_sha256sum(const unsigned char *tmp, /* input */ +static CURLcode Curl_cyassl_sha256sum(const unsigned char *tmp, /* input */ size_t tmplen, unsigned char *sha256sum /* output */, size_t unused) @@ -976,6 +976,7 @@ static void Curl_cyassl_sha256sum(const unsigned char *tmp, /* input */ InitSha256(&SHA256pw); Sha256Update(&SHA256pw, tmp, (word32)tmplen); Sha256Final(&SHA256pw, sha256sum); + return CURLE_OK; } static void *Curl_cyassl_get_internals(struct ssl_connect_data *connssl, |