aboutsummaryrefslogtreecommitdiff
path: root/patches/x509.h.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/x509.h.patch')
-rw-r--r--patches/x509.h.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/patches/x509.h.patch b/patches/x509.h.patch
new file mode 100644
index 0000000..13686c1
--- /dev/null
+++ b/patches/x509.h.patch
@@ -0,0 +1,20 @@
1--- include/openssl/x509.h.orig 2015-07-06 13:15:15.059306046 -0700
2+++ include/openssl/x509.h 2015-07-06 13:16:10.506118278 -0700
3@@ -112,6 +112,17 @@
4 extern "C" {
5 #endif
6
7+#if defined(_WIN32) && defined(__WINCRYPT_H__)
8+#ifdef _MSC_VER
9+#pragma message("Warning, overriding WinCrypt defines")
10+#else
11+#warning overriding WinCrypt defines
12+#endif
13+#undef X509_NAME
14+#undef X509_CERT_PAIR
15+#undef X509_EXTENSIONS
16+#endif
17+
18 #define X509_FILETYPE_PEM 1
19 #define X509_FILETYPE_ASN1 2
20 #define X509_FILETYPE_DEFAULT 3