build: fix compiling against openssl with no-psk
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: https://github.com/nodejs/node/pull/36881 Fixes: https://github.com/nodejs/node/issues/36464 Reviewed-By:James M Snell <jasnell@gmail.com> Reviewed-By:
Richard Lau <rlau@redhat.com>
parent
fc3f1c3c
Please register or sign in to comment