Moxie Marlinspike d83a3d71bc Support for Signal calls.
Merge in RedPhone

// FREEBIE
2015-09-30 14:30:09 -07:00

35 lines
1.0 KiB
Diff

From e7d931119b81d514d8f0645b5453ec16c441b3db Mon Sep 17 00:00:00 2001
From: Andrew Hsieh <andrewhsieh@google.com>
Date: Wed, 7 May 2014 20:01:28 +0800
Subject: [PATCH] Undef OCSP_REQUEST, X509_NAME and OCSP_RESPONSE
prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/mingw/include/wincrypt.h
define all as constants, but ocsp.h use them as type/function names
Change-Id: I580b55a36575c1b19df6e7f3adaf90e7c345e46f
---
crypto/ocsp/ocsp.h | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/crypto/ocsp/ocsp.h b/crypto/ocsp/ocsp.h
index 31e4574..f14e9f7 100644
--- a/crypto/ocsp/ocsp.h
+++ b/crypto/ocsp/ocsp.h
@@ -90,6 +90,13 @@ extern "C" {
#define OCSP_RESPID_KEY 0x400
#define OCSP_NOTIME 0x800
+#ifdef OPENSSL_SYS_WIN32
+ /* Under Win32 these are defined in wincrypt.h */
+#undef OCSP_REQUEST
+#undef X509_NAME
+#undef OCSP_RESPONSE
+#endif
+
/* CertID ::= SEQUENCE {
* hashAlgorithm AlgorithmIdentifier,
* issuerNameHash OCTET STRING, -- Hash of Issuer's DN
--
1.9.1.423.g4596e3a