diff --git a/engines/e_capi.c b/engines/e_capi.c index f2e45c9e50bcc1315f4a94cffdbf87e7af756c47..b587d42378496553fd3e9cbd99ddd9b41d03509a 100644 --- a/engines/e_capi.c +++ b/engines/e_capi.c @@ -56,22 +56,24 @@ #include #include #include -#include #include #include -#include #ifdef OPENSSL_SYS_WIN32 #ifndef OPENSSL_NO_CAPIENG -#ifndef _WIN32_WINNT -#define _WIN32_WINNT 0x400 +#if _WIN32_WINNT < 0x0500 +#define _WIN32_WINNT 0x0500 #endif #include #include -#undef X509_NAME +#undef X509_EXTENSIONS +#undef X509_CERT_PAIR + +#include +#include #include "e_capi_err.h" #include "e_capi_err.c" @@ -1616,6 +1618,7 @@ static int client_cert_select(ENGINE *e, SSL *ssl, STACK_OF(X509) *certs) * CryptUIDlgSelectCertificateFromStore() to produce a dialog box. */ +#include #include #define dlg_title L"OpenSSL Application SSL Client Certificate Selection"