From 0a083a66bcae51a485d45ba416eac1d1fbe4ca15 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Fri, 23 Jun 2017 01:04:56 +0200 Subject: vtls: move sha256sum into the Curl_ssl struct The SHA-256 checksumming is also an SSL backend-specific function. Let's include it in the struct declaring the functionality of SSL backends. In contrast to MD5, there is no fall-back code. To indicate this, the respective entries are NULL for those backends that offer no support for SHA-256 checksumming. Signed-off-by: Johannes Schindelin --- lib/vtls/gtls.h | 6 ------ 1 file changed, 6 deletions(-) (limited to 'lib/vtls/gtls.h') diff --git a/lib/vtls/gtls.h b/lib/vtls/gtls.h index 626dbd33f..05bd834f2 100644 --- a/lib/vtls/gtls.h +++ b/lib/vtls/gtls.h @@ -46,10 +46,6 @@ int Curl_gtls_shutdown(struct connectdata *conn, int sockindex); CURLcode Curl_gtls_random(struct Curl_easy *data, unsigned char *entropy, size_t length); -void Curl_gtls_sha256sum(const unsigned char *tmp, /* input */ - size_t tmplen, - unsigned char *sha256sum, /* output */ - size_t sha256len); bool Curl_gtls_cert_status_request(void); @@ -70,7 +66,5 @@ extern const struct Curl_ssl Curl_ssl_gnutls; /* this backend supports CURLOPT_PINNEDPUBLICKEY */ #define have_curlssl_pinnedpubkey 1 -#define curlssl_sha256sum(a,b,c,d) Curl_gtls_sha256sum(a,b,c,d) - #endif /* USE_GNUTLS */ #endif /* HEADER_CURL_GTLS_H */ -- cgit v1.2.3