aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Hoersken <info@marc-hoersken.de>2012-09-11 14:35:18 +0200
committerMarc Hoersken <info@marc-hoersken.de>2012-09-11 14:35:18 +0200
commit7f7e2ea72f2471a20060024d6a2d8377d21bcba9 (patch)
treeba5d49d93ca451d599ec69ba2f13cb7105476626
parent4d384a87142dccb13b8198147b5db15a4aaa9906 (diff)
wincrypt: Fixed cross-compilation issues caused by include name
For some reason WinCrypt.h is named wincrypt.h under MinGW.
-rw-r--r--lib/md5.c2
-rw-r--r--src/tool_metalink.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/md5.c b/lib/md5.c
index eda1fe80b..ada2d37e6 100644
--- a/lib/md5.c
+++ b/lib/md5.c
@@ -86,7 +86,7 @@ static void MD5_Final(unsigned char digest[16], MD5_CTX * ctx)
#elif defined(_WIN32)
-#include <WinCrypt.h>
+#include <wincrypt.h>
typedef struct {
HCRYPTPROV hCryptProv;
diff --git a/src/tool_metalink.c b/src/tool_metalink.c
index 9199b50f7..279a626cb 100644
--- a/src/tool_metalink.c
+++ b/src/tool_metalink.c
@@ -64,7 +64,7 @@
#elif defined(_WIN32)
/* For Windows: If no other crypto library is provided, we fallback
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 */
struct win32_crypto_hash {
HCRYPTPROV hCryptProv;