]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
openssl: remove `RSA_METHOD_FLAG_NO_CHECK` handling if unavailable
authorMarcel Raad <Marcel.Raad@teamviewer.com>
Mon, 11 Oct 2021 19:07:26 +0000 (21:07 +0200)
committerMarcel Raad <Marcel.Raad@teamviewer.com>
Sat, 20 Nov 2021 11:04:56 +0000 (12:04 +0100)
The flag has been deprecated without replacement in OpenSSL 3.0.

Closes https://github.com/curl/curl/pull/7893

lib/vtls/openssl.c

index 947c14f5cdb08f03e7222814bf12f3f3fc200d40..cba6491ab9506d0a5bc2bcc85282911171e36242 100644 (file)
@@ -1103,7 +1103,8 @@ int cert_stuff(struct Curl_easy *data,
       EVP_PKEY_free(pktmp);
     }
 
-#if !defined(OPENSSL_NO_RSA) && !defined(OPENSSL_IS_BORINGSSL)
+#if !defined(OPENSSL_NO_RSA) && !defined(OPENSSL_IS_BORINGSSL) && \
+    !defined(OPENSSL_NO_DEPRECATED_3_0)
     {
       /* If RSA is used, don't check the private key if its flags indicate
        * it doesn't support it. */