crypto: handle missing OPENSSL_TLS_SECURITY_LEVEL
OPENSSL_TLS_SECURITY_LEVEL isn't defined at all in BoringSSL and will cause compilation failures.
Ref https://github.com/nodejs/node/pull/57323 Ref https://github.com/nodejs/node/pull/56601
Review requested:
- [ ] @nodejs/crypto
- [ ] @nodejs/security-wg
CI: https://ci.nodejs.org/job/node-test-pull-request/66544/
FWIW, the default value is only 1 for OpenSSL < 3.2. On systems that compile and link against OpenSSL >= 3.2, the default value is already 2. That being said, I assume BoringSSL is still targeting OpenSSL 1.0.2/1.1.0/1.1.1 instead of 3.x, so assuming the pre-3.2 default seems reasonable.
CI: https://ci.nodejs.org/job/node-test-pull-request/66621/
CI: https://ci.nodejs.org/job/node-test-pull-request/66766/
Landed in f56590e161ca6d2eeda13339af6fc981fce0fd68
This does not land cleanly on v22.x-staging