Closed theoparis closed 8 months ago
Thanks for the report. Researching, this seems as a general issue with wincrypt.h
.
Feel free to submit a PR with a fix you believe resolves your issue.
This also look interesting: https://github.com/openssl/openssl/pull/18131#discussion_r854415820. Wonder what the status of that work is.
This is still an issue but I'm not sure what the best way to fix this in aws-lc is.
Problem:
When I tried to compile aws-lc using a build.zig file instead of cmake, for a x86_64-windows-gnu target, It fails due to conflicting symbols from wincrypt.h. Curl seems to have worked around it by using #undef but I'd have to keep a maintained fork of aws-lc to make those changes myself here...
See https://github.com/curl/curl/commit/4c46c829f5ed7c37b3313c67a6662b7332c1ff7f
Reproduction
Git clone the aws-lc zig build repository and extract the latest zig master tarball. Run
zig build -Dtarget=x86_64-windows-gnu
- it should fail with a bunch of X509_NAME errors...Relevant details
AWS-LC commit:
56def5a253d27280f3b7bd6564cfa5a11211aee8
System information: for linux, below info can be collected by running
uname -srvmp
Build log: