mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 13:48:44 +02:00
crypto: handle missing OPENSSL_TLS_SECURITY_LEVEL
PR-URL: https://github.com/nodejs/node/pull/58103 Reviewed-By: Michael Dawson <midawson@redhat.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
This commit is contained in:
parent
91d2400c74
commit
f56590e161
1 changed files with 3 additions and 2 deletions
5
deps/ncrypto/ncrypto.cc
vendored
5
deps/ncrypto/ncrypto.cc
vendored
|
@ -2744,8 +2744,9 @@ std::optional<int> SSLPointer::getSecurityLevel() {
|
|||
|
||||
return SSL_get_security_level(ssl);
|
||||
#else
|
||||
// for BoringSSL assume the same as the default
|
||||
return OPENSSL_TLS_SECURITY_LEVEL;
|
||||
// OPENSSL_TLS_SECURITY_LEVEL is not defined in BoringSSL
|
||||
// so assume it is the default OPENSSL_TLS_SECURITY_LEVEL value.
|
||||
return 1;
|
||||
#endif // OPENSSL_IS_BORINGSSL
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue