libarchive: Avoid preprocessor symbol conflicts with boringssl on Windows `<wincrypt.h>` defines symbols conflicting with BoringSSL/AWS-LC.
diff --git a/Utilities/cmlibarchive/libarchive/archive_digest_private.h b/Utilities/cmlibarchive/libarchive/archive_digest_private.h index deb134e..5518799 100644 --- a/Utilities/cmlibarchive/libarchive/archive_digest_private.h +++ b/Utilities/cmlibarchive/libarchive/archive_digest_private.h
@@ -177,6 +177,13 @@ #else #include <windows.h> #include <wincrypt.h> +/* Undefine indirect <wincrypt.h> symbols conflicting with BoringSSL/AWS-LC. */ +#undef X509_NAME +#undef X509_EXTENSIONS +#undef PKCS7_ISSUER_AND_SERIAL +#undef PKCS7_SIGNER_INFO +#undef OCSP_REQUEST +#undef OCSP_RESPONSE #define ARCHIVE_CRYPTO_WINCRYPT 1 typedef struct { int valid;