aboutsummaryrefslogtreecommitdiff
path: root/patches/ossl_typ.h.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/ossl_typ.h.patch')
-rw-r--r--patches/ossl_typ.h.patch4
1 files changed, 3 insertions, 1 deletions
diff --git a/patches/ossl_typ.h.patch b/patches/ossl_typ.h.patch
index af9419a..f213347 100644
--- a/patches/ossl_typ.h.patch
+++ b/patches/ossl_typ.h.patch
@@ -1,15 +1,17 @@
1--- include/openssl/ossl_typ.h.orig 2015-07-06 13:21:18.788571423 -0700 1--- include/openssl/ossl_typ.h.orig 2015-07-06 13:21:18.788571423 -0700
2+++ include/openssl/ossl_typ.h 2015-07-06 13:24:14.906468003 -0700 2+++ include/openssl/ossl_typ.h 2015-07-06 13:24:14.906468003 -0700
3@@ -100,6 +100,20 @@ 3@@ -100,6 +100,22 @@
4 typedef struct ASN1_ITEM_st ASN1_ITEM; 4 typedef struct ASN1_ITEM_st ASN1_ITEM;
5 typedef struct asn1_pctx_st ASN1_PCTX; 5 typedef struct asn1_pctx_st ASN1_PCTX;
6 6
7+#if defined(_WIN32) && defined(__WINCRYPT_H__) 7+#if defined(_WIN32) && defined(__WINCRYPT_H__)
8+#ifndef LIBRESSL_INTERNAL
8+#ifdef _MSC_VER 9+#ifdef _MSC_VER
9+#pragma message("Warning, overriding WinCrypt defines") 10+#pragma message("Warning, overriding WinCrypt defines")
10+#else 11+#else
11+#warning overriding WinCrypt defines 12+#warning overriding WinCrypt defines
12+#endif 13+#endif
14+#endif
13+#undef X509_NAME 15+#undef X509_NAME
14+#undef X509_CERT_PAIR 16+#undef X509_CERT_PAIR
15+#undef X509_EXTENSIONS 17+#undef X509_EXTENSIONS