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/mbedtls.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'lib/vtls/mbedtls.h') diff --git a/lib/vtls/mbedtls.h b/lib/vtls/mbedtls.h index 1df297a5d..39e64c350 100644 --- a/lib/vtls/mbedtls.h +++ b/lib/vtls/mbedtls.h @@ -26,8 +26,6 @@ #ifdef USE_MBEDTLS -#include - /* Called on first use mbedTLS, setup threading if supported */ int Curl_mbedtls_init(void); void Curl_mbedtls_cleanup(void); @@ -62,7 +60,6 @@ CURLcode Curl_mbedtls_random(struct Curl_easy *data, unsigned char *entropy, extern const struct Curl_ssl Curl_ssl_mbedtls; #define CURL_SSL_BACKEND CURLSSLBACKEND_MBEDTLS -#define curlssl_sha256sum(a,b,c,d) mbedtls_sha256(a,b,c,0) #endif /* USE_MBEDTLS */ #endif /* HEADER_CURL_MBEDTLS_H */ -- cgit v1.2.3