Move the Win32 #undefs of X509_NAME and PKCS7_ISSUER_AND_SERIAL so they will
authorDr. Stephen Henson <steve@openssl.org>
Fri, 21 May 1999 12:14:35 +0000 (12:14 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Fri, 21 May 1999 12:14:35 +0000 (12:14 +0000)
always get included with the relevant files.

crypto/pkcs7/pkcs7.h
crypto/x509/x509.h
e_os.h

index 80c725dcd5001064ba4843d68472a44b518f7872..197b257725ccdf616c552bdce007ce26195a5a7e 100644 (file)
@@ -66,6 +66,11 @@ extern "C" {
 #include <openssl/bio.h>
 #include <openssl/x509.h>
 
+#ifdef WIN32
+/* Under Win32 this is defined in wincrypt.h */
+#undef PKCS7_ISSUER_AND_SERIAL
+#endif
+
 /*
 Encryption_ID          DES-CBC
 Digest_ID              MD5
index 6f8fac0c8bb4c809fced75b7ce47d39dcb4e4669..de574791f75e536949f3b7c25b87e151ae78c198 100644 (file)
@@ -86,6 +86,12 @@ extern "C" {
 
 #include <openssl/evp.h>
 
+
+#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 bbb1c304d6556c2e0d8a66dccb2b10484607dfe0..b8d053bda573aa083d2926948c50dc87ce1aa774 100644 (file)
--- 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