Skip to content

Commit a896eff

Browse files
codebyteretargos
authored andcommitted
crypto: handle missing OPENSSL_TLS_SECURITY_LEVEL
PR-URL: #58103 Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Rafael Gonzaga <[email protected]>
1 parent a1b078b commit a896eff

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

deps/ncrypto/ncrypto.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2744,8 +2744,9 @@ std::optional<int> SSLPointer::getSecurityLevel() {
27442744

27452745
return SSL_get_security_level(ssl);
27462746
#else
2747-
// for BoringSSL assume the same as the default
2748-
return OPENSSL_TLS_SECURITY_LEVEL;
2747+
// OPENSSL_TLS_SECURITY_LEVEL is not defined in BoringSSL
2748+
// so assume it is the default OPENSSL_TLS_SECURITY_LEVEL value.
2749+
return 1;
27492750
#endif // OPENSSL_IS_BORINGSSL
27502751
}
27512752

0 commit comments

Comments
 (0)