mirror of
https://github.com/moparisthebest/curl
synced 2025-03-11 07:39:50 -04:00
wincrypt: Fixed cross-compilation issues caused by include name
For some reason WinCrypt.h is named wincrypt.h under MinGW.
This commit is contained in:
parent
4d384a8714
commit
7f7e2ea72f
@ -86,7 +86,7 @@ static void MD5_Final(unsigned char digest[16], MD5_CTX * ctx)
|
|||||||
|
|
||||||
#elif defined(_WIN32)
|
#elif defined(_WIN32)
|
||||||
|
|
||||||
#include <WinCrypt.h>
|
#include <wincrypt.h>
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
HCRYPTPROV hCryptProv;
|
HCRYPTPROV hCryptProv;
|
||||||
|
@ -64,7 +64,7 @@
|
|||||||
#elif defined(_WIN32)
|
#elif defined(_WIN32)
|
||||||
/* For Windows: If no other crypto library is provided, we fallback
|
/* For Windows: If no other crypto library is provided, we fallback
|
||||||
to the hash functions provided within the Microsoft Windows CryptoAPI */
|
to the hash functions provided within the Microsoft Windows CryptoAPI */
|
||||||
# include <WinCrypt.h>
|
# include <wincrypt.h>
|
||||||
/* Custom structure in order to store the required provider and hash handle */
|
/* Custom structure in order to store the required provider and hash handle */
|
||||||
struct win32_crypto_hash {
|
struct win32_crypto_hash {
|
||||||
HCRYPTPROV hCryptProv;
|
HCRYPTPROV hCryptProv;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user