提交 4b55c2a3 编写于 作者: D Dr. Stephen Henson

Move the Win32 #undefs of X509_NAME and PKCS7_ISSUER_AND_SERIAL so they will

always get included with the relevant files.
上级 470df4b9
......@@ -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
......
......@@ -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
......
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册