aboutsummaryrefslogtreecommitdiff
path: root/cryptoapi.c
diff options
context:
space:
mode:
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2009-06-07 06:44:11 +0000
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2009-06-07 06:44:11 +0000
commita168ce6d88142496f474acdaee91575e653e7e86 (patch)
tree8b9fc93c8cfc59b51bd73641d50a261f7ed10a07 /cryptoapi.c
parentFixed compile error on ./configure --enable-small (diff)
downloadopenvpn-a168ce6d88142496f474acdaee91575e653e7e86.tar.xz
Fixed issue introduced in r4475 (2.1-rc17) where cryptoapi.c change
does not build on Windows on non-MINGW32. git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@4525 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to 'cryptoapi.c')
-rw-r--r--cryptoapi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cryptoapi.c b/cryptoapi.c
index 0e6b64c..8fb5387 100644
--- a/cryptoapi.c
+++ b/cryptoapi.c
@@ -53,6 +53,8 @@
static HINSTANCE crypt32dll = NULL;
static BOOL WINAPI (*OpenVPNCryptAcquireCertificatePrivateKey) (PCCERT_CONTEXT pCert, DWORD dwFlags,
void *pvReserved, HCRYPTPROV *phCryptProv, DWORD *pdwKeySpec, BOOL *pfCallerFreeProv) = NULL;
+#else
+#define OpenVPNCryptAcquireCertificatePrivateKey CryptAcquireCertificatePrivateKey
#endif
/* Size of an SSL signature: MD5+SHA1 */