mirror of
https://github.com/curl/curl.git
synced 2026-07-24 05:27:15 +03:00
schannel: workaround for wrong function signature in w32api
Original MinGW's w32api has CryptHashData's second parameter as BYTE * instead of const BYTE *. Closes https://github.com/curl/curl/pull/2721
This commit is contained in:
parent
a189ab91fe
commit
07f7c93f92
1 changed files with 2 additions and 1 deletions
|
|
@ -2053,7 +2053,8 @@ static void Curl_schannel_checksum(const unsigned char *input,
|
|||
if(!CryptCreateHash(hProv, algId, 0, 0, &hHash))
|
||||
break; /* failed */
|
||||
|
||||
if(!CryptHashData(hHash, (const BYTE*)input, (DWORD)inputlen, 0))
|
||||
/* workaround for original MinGW, should be (const BYTE*) */
|
||||
if(!CryptHashData(hHash, (BYTE*)input, (DWORD)inputlen, 0))
|
||||
break; /* failed */
|
||||
|
||||
/* get hash size */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue