mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
SChannel/WinSSL: Replace Curl_none_md5sum with Curl_schannel_md5sum
This commit is contained in:
parent
f0f3b8c032
commit
aa0380b447
@ -1936,6 +1936,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,
|
||||
@ -1981,7 +1990,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 */
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user