From dfa6e2b90e8e4e0154d5b7b4420696335860fa1b Mon Sep 17 00:00:00 2001 From: Shelley Vohr Date: Thu, 1 May 2025 19:49:34 +0200 Subject: [PATCH] crypto: handle missing OPENSSL_TLS_SECURITY_LEVEL --- deps/ncrypto/ncrypto.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/deps/ncrypto/ncrypto.cc b/deps/ncrypto/ncrypto.cc index 04881466c9f124..7aa91497663c4c 100644 --- a/deps/ncrypto/ncrypto.cc +++ b/deps/ncrypto/ncrypto.cc @@ -2744,8 +2744,9 @@ std::optional 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 }