Skip to content

Commit 26273b3

Browse files
postgraphJacky Hu
authored and
Jacky Hu
committed
Fix wincrypt symbols conflict
1 parent acd0946 commit 26273b3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

ssl.c

+8
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,14 @@
4040
#ifdef _WIN32
4141
#include <windows.h>
4242
#include <wincrypt.h>
43+
#ifdef OPENSSL_IS_BORINGSSL
44+
#undef X509_NAME
45+
#undef X509_EXTENSIONS
46+
#undef PKCS7_ISSUER_AND_SERIAL
47+
#undef PKCS7_SIGNER_INFO
48+
#undef OCSP_REQUEST
49+
#undef OCSP_RESPONSE
50+
#endif
4351
#else
4452
#include <pthread.h>
4553
#endif

0 commit comments

Comments
 (0)