-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
build: fix compiling against openssl with no-psk #36881
Conversation
afaict node doesn't have integration testing for different openssl configurations. I've tested this change using the script from #36464, it compiles and all except two psk tests pass.
in both tests the error is |
I don't understand how this change would introduce a memory leak. is test-asan flaky? |
It's not flaky, it was broken by #36779. |
Hmm... I missed that entirely. I'll take a look |
The asan checks don't play well currently with persistent secure heap allocations. Signed-off-by: James M Snell <[email protected]> PR-URL: nodejs#36900 Refs: nodejs#36881 Reviewed-By: Danielle Adams <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Filip Skokan <[email protected]>
if asan is already broken are there any blockers of this PR? |
The asan checks don't play well currently with persistent secure heap allocations. Signed-off-by: James M Snell <[email protected]> PR-URL: #36900 Refs: #36881 Reviewed-By: Danielle Adams <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Filip Skokan <[email protected]>
fixes nodejs#36464 Node 15 prior to this commit will not compile if openssl is built with no-psk. Compiling emits an error like this: ``` crypto_tls.cc:(.text+0x4c27): undefined reference to `node::crypto::TLSWrap::SetCACerts(node::crypto::SecureContext*)' ``` Blame on crypto_tls.cc shows the file was created in a refactor. Before that refactor SetCACerts was defined outside OPENSSL_NO_PSK ifndef https://github.com/nodejs/node/blob/6751b6dc3da102f259b74b7453032edadc7a37ca/src/crypto/crypto_ssl.cc#L839
@everett1992 GitHub cannot link the commit to your GitHub account. You may want to take a look at https://github.com/nodejs/node/blob/99b1ada/doc/guides/contributing/pull-requests.md#step-1-fork to set this up – so you'll get a |
@aduh95 thanks for letting me know, I'm okay not being marked as a contributor |
Node 15 prior to this commit will not compile if openssl is built with no-psk. Compiling emits an error like this: ``` crypto_tls.cc:(.text+0x4c27): undefined reference to `node::crypto::TLSWrap::SetCACerts(node::crypto::SecureContext*)' ``` Blame on crypto_tls.cc shows the file was created in a refactor. Before that refactor SetCACerts was defined outside OPENSSL_NO_PSK ifndef. PR-URL: #36881 Fixes: #36464 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Richard Lau <[email protected]>
Landed in fef2128 |
Node 15 prior to this commit will not compile if openssl is built with no-psk. Compiling emits an error like this: ``` crypto_tls.cc:(.text+0x4c27): undefined reference to `node::crypto::TLSWrap::SetCACerts(node::crypto::SecureContext*)' ``` Blame on crypto_tls.cc shows the file was created in a refactor. Before that refactor SetCACerts was defined outside OPENSSL_NO_PSK ifndef. PR-URL: #36881 Fixes: #36464 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Richard Lau <[email protected]>
Node 15 prior to this commit will not compile if openssl is built with no-psk. Compiling emits an error like this: ``` crypto_tls.cc:(.text+0x4c27): undefined reference to `node::crypto::TLSWrap::SetCACerts(node::crypto::SecureContext*)' ``` Blame on crypto_tls.cc shows the file was created in a refactor. Before that refactor SetCACerts was defined outside OPENSSL_NO_PSK ifndef. PR-URL: #36881 Fixes: #36464 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Richard Lau <[email protected]>
fixes #36464
Node 15 prior to this commit will not compile if openssl is built with
no-psk. Compiling emits an error like this:
Blame on crypto_tls.cc shows the file was created in a refactor. Before
that refactor SetCACerts was defined outside OPENSSL_NO_PSK ifndef
node/src/crypto/crypto_ssl.cc
Line 839 in 6751b6d