From: Dr. Stephen Henson Date: Fri, 21 May 1999 12:14:35 +0000 (+0000) Subject: Move the Win32 #undefs of X509_NAME and PKCS7_ISSUER_AND_SERIAL so they will X-Git-Tag: OpenSSL_0_9_3beta2~8 X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff_plain;h=4b55c2a3a9590fd27f865e2325195a2e14215bce;hp=470df4b90563e3ef3e4fff1771f88e78b72cc760 Move the Win32 #undefs of X509_NAME and PKCS7_ISSUER_AND_SERIAL so they will always get included with the relevant files. --- diff --git a/crypto/pkcs7/pkcs7.h b/crypto/pkcs7/pkcs7.h index 80c725dcd5..197b257725 100644 --- a/crypto/pkcs7/pkcs7.h +++ b/crypto/pkcs7/pkcs7.h @@ -66,6 +66,11 @@ extern "C" { #include #include +#ifdef WIN32 +/* Under Win32 this is defined in wincrypt.h */ +#undef PKCS7_ISSUER_AND_SERIAL +#endif + /* Encryption_ID DES-CBC Digest_ID MD5 diff --git a/crypto/x509/x509.h b/crypto/x509/x509.h index 6f8fac0c8b..de574791f7 100644 --- a/crypto/x509/x509.h +++ b/crypto/x509/x509.h @@ -86,6 +86,12 @@ extern "C" { #include + +#ifdef WIN32 +/* Under Win32 this is defined in wincrypt.h */ +#undef X509_NAME +#endif + #define X509_FILETYPE_PEM 1 #define X509_FILETYPE_ASN1 2 #define X509_FILETYPE_DEFAULT 3 diff --git a/e_os.h b/e_os.h index bbb1c304d6..b8d053bda5 100644 --- a/e_os.h +++ b/e_os.h @@ -103,9 +103,6 @@ extern "C" { #ifdef WIN32 #define get_last_sys_error() GetLastError() #define clear_sys_error() SetLastError(0) -/* These are defined in wincrypt.h and can cause problems */ -#undef X509_NAME -#undef PKCS7_SIGNER_INFO #if !defined(WINNT) #define WIN_CONSOLE_BUG #endif