From e35205a0c4f8d80dc9e878049a0fb0eb18f61dbf Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Fri, 23 Jun 2017 01:04:56 +0200 Subject: vtls: move md5sum into the Curl_ssl struct The MD5 summing is also an SSL backend-specific function. So let's include it, offering the previous fall-back code as a separate function now: Curl_none_md5sum(). To allow for that, the signature had to be changed so that an error could be returned from the implementation (Curl_none_md5sum() can run out of memory). Signed-off-by: Johannes Schindelin --- lib/vtls/darwinssl.h | 5 ----- 1 file changed, 5 deletions(-) (limited to 'lib/vtls/darwinssl.h') diff --git a/lib/vtls/darwinssl.h b/lib/vtls/darwinssl.h index 967ba511f..4815cec1e 100644 --- a/lib/vtls/darwinssl.h +++ b/lib/vtls/darwinssl.h @@ -44,10 +44,6 @@ bool Curl_darwinssl_data_pending(const struct connectdata *conn, CURLcode Curl_darwinssl_random(struct Curl_easy *data, unsigned char *entropy, size_t length); -void Curl_darwinssl_md5sum(unsigned char *tmp, /* input */ - size_t tmplen, - unsigned char *md5sum, /* output */ - size_t md5len); void Curl_darwinssl_sha256sum(const unsigned char *tmp, /* input */ size_t tmplen, unsigned char *sha256sum, /* output */ @@ -78,7 +74,6 @@ extern const struct Curl_ssl Curl_ssl_darwinssl; #define have_curlssl_pinnedpubkey 1 #endif /* DARWIN_SSL_PINNEDPUBKEY */ -#define curlssl_md5sum(a,b,c,d) Curl_darwinssl_md5sum(a,b,c,d) #define curlssl_sha256sum(a,b,c,d) Curl_darwinssl_sha256sum(a, b, c, d) #endif /* USE_DARWINSSL */ -- cgit v1.2.3