aboutsummaryrefslogtreecommitdiff
path: root/patches/x509.h.patch
blob: f0e59b27226e22f79547aad20350823f57fb8a28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- include/openssl/x509.h.orig	2015-07-06 13:15:15.059306046 -0700
+++ include/openssl/x509.h	2015-07-06 13:16:10.506118278 -0700
@@ -112,6 +112,19 @@
 extern "C" {
 #endif

+#if defined(_WIN32)
+#ifndef LIBRESSL_INTERNAL
+#ifdef _MSC_VER
+#pragma message("Warning, overriding WinCrypt defines")
+#else
+#warning overriding WinCrypt defines
+#endif
+#endif
+#undef X509_NAME
+#undef X509_CERT_PAIR
+#undef X509_EXTENSIONS
+#endif
+
 #define X509_FILETYPE_PEM	1
 #define X509_FILETYPE_ASN1	2
 #define X509_FILETYPE_DEFAULT	3