Skip to content

Commit

Permalink
fix: undef crypto macro defined by wincrypt.h when SSL is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Gusev committed Oct 19, 2022
1 parent 6804606 commit e144311
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/plat/windows/private-lib-plat-windows.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,15 @@

#if defined(LWS_WITH_TLS)
#include <wincrypt.h>
#if defined(LWS_WITH_BORINGSSL)
/* Undefine wincrypt conflicting symbols for BoringSSL. */
#undef X509_NAME
#undef X509_EXTENSIONS
#undef PKCS7_ISSUER_AND_SERIAL
#undef PKCS7_SIGNER_INFO
#undef OCSP_REQUEST
#undef OCSP_RESPONSE
#endif
#endif

#if defined(LWS_HAVE_PTHREAD_H)
Expand Down

0 comments on commit e144311

Please sign in to comment.