summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacky Hu <hengqing.hu@gmail.com>2023-01-03 16:53:44 -0800
committerMichael Grunder <michael.grunder@gmail.com>2023-04-18 20:03:41 -0700
commitd13c091e9f09fe4ad1858cd54ed3a842ac00b8e6 (patch)
treeed35eb70f8d916f2c0a48095b93ee1d00689c20a
parent5d84c8cfdb3f3709499970bc450f5308f0c832c1 (diff)
Fix wincrypt symbols conflict
-rw-r--r--ssl.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/ssl.c b/ssl.c
index 816a179..88bd9f3 100644
--- a/ssl.c
+++ b/ssl.c
@@ -40,6 +40,14 @@
#ifdef _WIN32
#include <windows.h>
#include <wincrypt.h>
+#ifdef OPENSSL_IS_BORINGSSL
+#undef X509_NAME
+#undef X509_EXTENSIONS
+#undef PKCS7_ISSUER_AND_SERIAL
+#undef PKCS7_SIGNER_INFO
+#undef OCSP_REQUEST
+#undef OCSP_RESPONSE
+#endif
#else
#include <pthread.h>
#endif