From b54039de2c3005e93ca7898c9a363ce2f6971f73 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Fri, 22 Aug 2025 19:11:53 +0200 Subject: [PATCH] openssl: use `RSA_flags()` again with BoringSSL Supported since 2017-12-18: https://github.com/google/boringssl/commit/a0c87adbf0bc23810895ebd7f131790f137d2f6d Follow-up to cd276c3cca4db23384f3272486468ce41b0a338b #2117 Closes #18369 --- lib/vtls/openssl.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c index ccdcdf1c47..062678e64e 100644 --- a/lib/vtls/openssl.c +++ b/lib/vtls/openssl.c @@ -1798,8 +1798,7 @@ static CURLcode client_cert(struct Curl_easy *data, EVP_PKEY_free(pktmp); } -#if !defined(OPENSSL_NO_RSA) && !defined(OPENSSL_IS_BORINGSSL) && \ - !defined(OPENSSL_NO_DEPRECATED_3_0) +#if !defined(OPENSSL_NO_RSA) && !defined(OPENSSL_NO_DEPRECATED_3_0) { /* If RSA is used, do not check the private key if its flags indicate * it does not support it. */ -- 2.47.3