Open vszakats opened 2 days ago
Hi @vszakats ,
Nice catch!! I will try your reproduction steps and come up with a fix. Please stay tuned.
Warm regards, Anthony
I ran your cmake command that is the first step in your reproduction steps and noticed that the generated options.h
did not have OPENSSL_COEXIST
so when I double checked your cmake command line, I did not see OPENSSL_COEXIST
anywhere there. Forgive me, but I'm a bit confused.
Should it be there?
Warm regards, Anthony
Thanks for dealing with this Anthony.
I ran your cmake command that is the first step in your reproduction steps and noticed that the generated
options.h
did not haveOPENSSL_COEXIST
so when I double checked your cmake command line, I did not seeOPENSSL_COEXIST
anywhere there. Forgive me, but I'm a bit confused.Should it be there?
Reading the affected headers, it should not matter, because the
colliding macros are added regardless of settings (build-time or
use-time). Building wolfSSL without MD5 support fixes MD5_CTX
,
but often this isn't feasible and it still leaves OTHERNAME
.
Also, #define OPENSSL_COEXIST
fixed all other collisions, excepts
these two. So I figured it's a workable way to tell the headers to enable
coexist.
That said I did try making a tailored coexist wolfSSL build. First tried
-DWOLFSSL_OPENSSLCOEXIST=ON
but it makes the build fail with:
error: use of undeclared identifier 'WOLFSSL_EVP_CTRL_AEAD_GET_TAG'
With -DWOLFSSL_OPENSSL_COEXIST=ON
the build is successful,
but test.c
continues to produce the problem. Same with using
CMAKE_C_FLAGS
to pass -DOPENSSL_COEXIST
(which is never set by
CMakeLists.txt
).
In case I missed an option, let me know, and I can re-test.
Ah...I missed that you define it manually in your application. This is likely to break things. Let me see if I can add it to your cmake flags and see what happens for me. Please stay tuned.
Warm regards, Anthony
Contact Details
No response
Version
ff680994ba1295dbf8354ef3863928e7422b94f7
Description
I did my tests on macOS with Apple clang, but the issue is env-agnostic.
Tested the latest wolfSSL master with
-DOPENSSL_COEXIST
and OpenSSL 3.3.2 headers included from the same source. It worked, except for two symbols,OTHERNAME
andMD5_CTX
.Original report: https://github.com/curl/curl/pull/15438#issuecomment-2480832718 PR to bring "coexist" to curl: https://github.com/curl/curl/pull/15596
Reproduction steps
test.c
:Relevant log output