New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WolfSSL and SHA256_DIGEST_LENGTH in vtls.h #1865
Comments
It seems they did this change in this commit. |
hm that's a while ago. I have built more recent versions (but not yet the latest version) and haven't had this problem, I wonder why. How exactly are you building? |
I too get a build error with wolfssl 3.12, but with @gvanem's fix I get this:
|
... instead of the prefix-less version since WolfSSL 3.12 now uses an enum with that name that causes build failures for us. Fixes #1865 Reported-by: Gisle Vanem
My suggestion is probably to instead switch to use another define, provided in #1867. It avoids having to add wolfssl-specific checks to the generic vtls source files. |
When building with
USE_CYASSL
and a recent WolfSSL, I get a compile error invtls/cyassl.c
(from MSVC):due to the
enum
in WolfSSL'sopenssl/sha.h
:and the fact
vtls/vtls.h
precedesopenssl/sha.h
.Looking at the history of
openssl/sha.h
. it's not clear to me at which version this change was done.But maybe libcurl could just do:
The text was updated successfully, but these errors were encountered: