summaryrefslogtreecommitdiffstats
path: root/src/network
diff options
context:
space:
mode:
authorPeter Hartmann <peter.hartmann@nokia.com>2010-06-14 12:19:56 (GMT)
committerPeter Hartmann <peter.hartmann@nokia.com>2010-06-14 14:18:16 (GMT)
commitea8817a59e92e40927ae4cecd301771eb115fb6f (patch)
tree65705048bc101231cc09660f73754e100bd260e3 /src/network
parent36c538d034d5c7df1cbc8c92110c8d28638f699e (diff)
downloadQt-ea8817a59e92e40927ae4cecd301771eb115fb6f.zip
Qt-ea8817a59e92e40927ae4cecd301771eb115fb6f.tar.gz
Qt-ea8817a59e92e40927ae4cecd301771eb115fb6f.tar.bz2
QSslSocket: fix build for MinGW and VS 2005
Reviewed-by: Zeno Albisser
Diffstat (limited to 'src/network')
-rw-r--r--src/network/ssl/qsslsocket_p.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/network/ssl/qsslsocket_p.h b/src/network/ssl/qsslsocket_p.h
index cf1786c..42ae98f 100644
--- a/src/network/ssl/qsslsocket_p.h
+++ b/src/network/ssl/qsslsocket_p.h
@@ -73,6 +73,10 @@ QT_BEGIN_NAMESPACE
typedef OSStatus (*PtrSecTrustSettingsCopyCertificates)(int, CFArrayRef*);
typedef OSStatus (*PtrSecTrustCopyAnchorCertificates)(CFArrayRef*);
#elif defined(Q_OS_WIN)
+#include <Wincrypt.h>
+#ifndef HCRYPTPROV_LEGACY
+#define HCRYPTPROV_LEGACY HCRYPTPROV
+#endif
typedef HCERTSTORE (WINAPI *PtrCertOpenSystemStoreW)(HCRYPTPROV_LEGACY, LPCWSTR);
typedef PCCERT_CONTEXT (WINAPI *PtrCertFindCertificateInStore)(HCERTSTORE, DWORD, DWORD, DWORD, const void*, PCCERT_CONTEXT);
typedef BOOL (WINAPI *PtrCertCloseStore)(HCERTSTORE, DWORD);