summaryrefslogtreecommitdiffstats
path: root/e_os.h
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>1999-05-12 01:56:27 +0000
committerDr. Stephen Henson <steve@openssl.org>1999-05-12 01:56:27 +0000
commitf5eac85edcb6e8b24593282c9e140daeeb758cac (patch)
treefdbb7fb2eb0a5286c15fad0d6b31c9ec5768f416 /e_os.h
parentd53ff9abf3dc1b164f1ca3a2378a5515d4f74e8e (diff)
Add new -out option to asn1parse to allow the parsed data to be output.
Fixed -strparse option: it didn't work if used more than once (this was due to the d2i_ASN1_TYPE call parsing a freed buffer). On Win32 the file wincrypt.h #define's X509_NAME and PKCS7_SIGNER_INFO causing clashes so these are #undef'ed
Diffstat (limited to 'e_os.h')
-rw-r--r--e_os.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/e_os.h b/e_os.h
index cff94e3e2d..9f525cb8e1 100644
--- a/e_os.h
+++ b/e_os.h
@@ -98,6 +98,9 @@ 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