blob: fe28901d55b3e6a1a26aa4131bf8faa8b4f414a4 [file] [log] [blame]
Andrew Hsieh61aa94b2014-05-07 20:01:28 +08001From e7d931119b81d514d8f0645b5453ec16c441b3db Mon Sep 17 00:00:00 2001
2From: Andrew Hsieh <andrewhsieh@google.com>
3Date: Wed, 7 May 2014 20:01:28 +0800
4Subject: [PATCH] Undef OCSP_REQUEST, X509_NAME and OCSP_RESPONSE
5
6prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/mingw/include/wincrypt.h
7define all as constants, but ocsp.h use them as type/function names
8
9Change-Id: I580b55a36575c1b19df6e7f3adaf90e7c345e46f
10---
11 crypto/ocsp/ocsp.h | 7 +++++++
12 1 file changed, 7 insertions(+)
13
14diff --git a/crypto/ocsp/ocsp.h b/crypto/ocsp/ocsp.h
15index 31e4574..f14e9f7 100644
16--- a/crypto/ocsp/ocsp.h
17+++ b/crypto/ocsp/ocsp.h
18@@ -90,6 +90,13 @@ extern "C" {
19 #define OCSP_RESPID_KEY 0x400
20 #define OCSP_NOTIME 0x800
21
22+#ifdef OPENSSL_SYS_WIN32
23+ /* Under Win32 these are defined in wincrypt.h */
24+#undef OCSP_REQUEST
25+#undef X509_NAME
26+#undef OCSP_RESPONSE
27+#endif
28+
29 /* CertID ::= SEQUENCE {
30 * hashAlgorithm AlgorithmIdentifier,
31 * issuerNameHash OCTET STRING, -- Hash of Issuer's DN
32--
331.9.1.423.g4596e3a
34