mirror of
https://github.com/curl/curl.git
synced 2026-05-15 00:06:20 +03:00
setopt: gate a few proxy TLS options by checking backend support
The same way the corresponding non-proxy options are checked. Closes #21514
This commit is contained in:
parent
67bf021e97
commit
a946fbb5e6
1 changed files with 10 additions and 5 deletions
15
lib/setopt.c
15
lib/setopt.c
|
|
@ -1788,13 +1788,16 @@ static CURLcode setopt_cptr_proxy(struct Curl_easy *data, CURLoption option,
|
|||
* Set CRL file info for SSL connection for proxy. Specify filename of the
|
||||
* CRL to check certificates revocation
|
||||
*/
|
||||
return Curl_setstropt(&s->str[STRING_SSL_CRLFILE_PROXY], ptr);
|
||||
if(Curl_ssl_supports(data, SSLSUPP_CRLFILE))
|
||||
return Curl_setstropt(&s->str[STRING_SSL_CRLFILE_PROXY], ptr);
|
||||
return CURLE_NOT_BUILT_IN;
|
||||
case CURLOPT_PROXY_ISSUERCERT:
|
||||
/*
|
||||
* Set Issuer certificate file
|
||||
* to check certificates issuer
|
||||
* Set Issuer certificate file to check certificates issuer
|
||||
*/
|
||||
return Curl_setstropt(&s->str[STRING_SSL_ISSUERCERT_PROXY], ptr);
|
||||
if(Curl_ssl_supports(data, SSLSUPP_ISSUERCERT))
|
||||
return Curl_setstropt(&s->str[STRING_SSL_ISSUERCERT_PROXY], ptr);
|
||||
return CURLE_NOT_BUILT_IN;
|
||||
case CURLOPT_PROXY_CAPATH:
|
||||
/*
|
||||
* Set CA path info for SSL connection proxy. Specify directory name of the
|
||||
|
|
@ -2838,7 +2841,9 @@ static CURLcode setopt_blob(struct Curl_easy *data, CURLoption option,
|
|||
/*
|
||||
* Blob that holds Issuer certificate to check certificates issuer
|
||||
*/
|
||||
return Curl_setblobopt(&s->blobs[BLOB_SSL_ISSUERCERT_PROXY], blob);
|
||||
if(Curl_ssl_supports(data, SSLSUPP_ISSUERCERT_BLOB))
|
||||
return Curl_setblobopt(&s->blobs[BLOB_SSL_ISSUERCERT_PROXY], blob);
|
||||
return CURLE_NOT_BUILT_IN;
|
||||
#endif
|
||||
case CURLOPT_SSLKEY_BLOB:
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue