aboutsummaryrefslogtreecommitdiff
path: root/lib/vtls
diff options
context:
space:
mode:
authormoparisthebest <admin@moparisthebest.com>2018-01-16 00:51:46 -0500
committerDaniel Stenberg <daniel@haxx.se>2018-01-25 22:14:40 +0100
commit1c00519499f9b360992bddd872ee003da18ebbf9 (patch)
treee117a6a91ae2b032aae91f376582dfaadaefa2bc /lib/vtls
parente178fbd40a896f2098278ae61e1166c88e7b31d0 (diff)
SChannel/WinSSL: Replace Curl_none_md5sum with Curl_schannel_md5sum
Diffstat (limited to 'lib/vtls')
-rw-r--r--lib/vtls/schannel.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/vtls/schannel.c b/lib/vtls/schannel.c
index 6ae834c72..2574d0ff5 100644
--- a/lib/vtls/schannel.c
+++ b/lib/vtls/schannel.c
@@ -1937,6 +1937,15 @@ static void Curl_schannel_checksum(const unsigned char *input,
CryptReleaseContext(hProv, 0);
}
+void Curl_schannel_md5sum(unsigned char *input,
+ size_t inputlen,
+ unsigned char *md5sum,
+ size_t md5len)
+{
+ Curl_schannel_checksum(input, inputlen, md5sum, md5len,
+ PROV_RSA_FULL, CALG_MD5);
+}
+
void Curl_schannel_sha256sum(unsigned char *input,
size_t inputlen,
unsigned char *sha256sum,
@@ -1982,7 +1991,7 @@ const struct Curl_ssl Curl_ssl_schannel = {
Curl_none_set_engine_default, /* set_engine_default */
Curl_none_engines_list, /* engines_list */
Curl_none_false_start, /* false_start */
- Curl_none_md5sum, /* md5sum */
+ Curl_schannel_md5sum, /* md5sum */
Curl_schannel_sha256sum /* sha256sum */
};