Submitted by: Guenter <lists@gknw.net>
Reviewed by: steve

Don't compile capi ENGINE on mingw32
This commit is contained in:
Dr. Stephen Henson 2010-11-18 22:56:42 +00:00
parent 2d96a30dc7
commit 3c96907f2b

View file

@ -76,10 +76,16 @@
* CertGetCertificateContextProperty. CERT_KEY_PROV_INFO_PROP_ID is * CertGetCertificateContextProperty. CERT_KEY_PROV_INFO_PROP_ID is
* one of possible values you can pass to function in question. By * one of possible values you can pass to function in question. By
* checking if it's defined we can see if wincrypt.h and accompanying * checking if it's defined we can see if wincrypt.h and accompanying
* crypt32.lib are in shape. Yes, it's rather "weak" test and if * crypt32.lib are in shape. The native MingW32 headers up to and
* compilation fails, then re-configure with -DOPENSSL_NO_CAPIENG. * including __W32API_VERSION 3.14 lack of struct DSSPUBKEY and the
* defines CERT_STORE_PROV_SYSTEM_A and CERT_STORE_READONLY_FLAG,
* so we check for these too and avoid compiling.
* Yes, it's rather "weak" test and if compilation fails,
* then re-configure with -DOPENSSL_NO_CAPIENG.
*/ */
#ifdef CERT_KEY_PROV_INFO_PROP_ID #if defined(CERT_KEY_PROV_INFO_PROP_ID) && \
defined(CERT_STORE_PROV_SYSTEM_A) && \
defined(CERT_STORE_READONLY_FLAG)
# define __COMPILE_CAPIENG # define __COMPILE_CAPIENG
#endif /* CERT_KEY_PROV_INFO_PROP_ID */ #endif /* CERT_KEY_PROV_INFO_PROP_ID */
#endif /* OPENSSL_NO_CAPIENG */ #endif /* OPENSSL_NO_CAPIENG */