summaryrefslogtreecommitdiff
path: root/lib/setopt.c
diff options
context:
space:
mode:
authorGilles Vollant <info@winimage.com>2020-05-19 22:45:37 +0200
committerDaniel Stenberg <daniel@haxx.se>2020-05-23 23:19:13 +0200
commit7f40633422df36b50e752749fb8795cac3e99e37 (patch)
treeeb1c15371bef2222ead74a52770c577edd0a7b93 /lib/setopt.c
parent006d2991bd8dd08e8bdc6f186ef242451ace0c0f (diff)
downloadcurl-7f40633422df36b50e752749fb8795cac3e99e37.tar.gz
setopt: add CURLOPT_PROXY_ISSUERCERT(_BLOB) for coherency
Closes #5431
Diffstat (limited to 'lib/setopt.c')
-rw-r--r--lib/setopt.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/setopt.c b/lib/setopt.c
index 4570cc06a..72704127c 100644
--- a/lib/setopt.c
+++ b/lib/setopt.c
@@ -2036,6 +2036,23 @@ CURLcode Curl_vsetopt(struct Curl_easy *data, CURLoption option, va_list param)
result = Curl_setblobopt(&data->set.blobs[BLOB_SSL_ISSUERCERT_ORIG],
va_arg(param, struct curl_blob *));
break;
+#ifndef CURL_DISABLE_PROXY
+ case CURLOPT_PROXY_ISSUERCERT:
+ /*
+ * Set Issuer certificate file
+ * to check certificates issuer
+ */
+ result = Curl_setstropt(&data->set.str[STRING_SSL_ISSUERCERT_PROXY],
+ va_arg(param, char *));
+ break;
+ case CURLOPT_PROXY_ISSUERCERT_BLOB:
+ /*
+ * Blob that holds Issuer certificate to check certificates issuer
+ */
+ result = Curl_setblobopt(&data->set.blobs[BLOB_SSL_ISSUERCERT_PROXY],
+ va_arg(param, struct curl_blob *));
+ break;
+#endif
#ifndef CURL_DISABLE_TELNET
case CURLOPT_TELNETOPTIONS:
/*