summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Raad <Marcel.Raad@teamviewer.com>2021-10-11 21:07:26 +0200
committerMarcel Raad <Marcel.Raad@teamviewer.com>2021-11-20 12:04:56 +0100
commit6147dfab93b434f49cc927babc4e9135071f7f13 (patch)
treeeb462767a285e0eec90af1b19ef1bfcdfee276bc
parent1e80f56d0bf9e19213816d99a23b521e7b53cd5f (diff)
downloadcurl-6147dfab93b434f49cc927babc4e9135071f7f13.tar.gz
openssl: remove `RSA_METHOD_FLAG_NO_CHECK` handling if unavailable
The flag has been deprecated without replacement in OpenSSL 3.0. Closes https://github.com/curl/curl/pull/7893
-rw-r--r--lib/vtls/openssl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c
index 947c14f5c..cba6491ab 100644
--- a/lib/vtls/openssl.c
+++ b/lib/vtls/openssl.c
@@ -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. */