curl: fix --proxy-pinnedpubkey

This option was added in #2268 but never connected in
tool_operate.c.

Closes #14438
This commit is contained in:
Jan Venekamp 2024-08-07 14:09:04 +02:00 committed by Daniel Stenberg
parent cf7a080c3f
commit 1e9c1e8f2e
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
2 changed files with 9 additions and 0 deletions

View file

@ -1750,6 +1750,13 @@ static CURLcode single_transfer(struct GlobalConfig *global,
warnf(global, "ignoring %s, not supported by libcurl with %s",
"--pinnedpubkey", ssl_ver);
}
if(config->proxy_pinnedpubkey) {
result = res_setopt_str(curl, CURLOPT_PROXY_PINNEDPUBLICKEY,
config->proxy_pinnedpubkey);
if(result == CURLE_NOT_BUILT_IN)
warnf(global, "ignoring %s, not supported by libcurl with %s",
"--proxy-pinnedpubkey", ssl_ver);
}
if(config->ssl_ec_curves)
my_setopt_str(curl, CURLOPT_SSL_EC_CURVES, config->ssl_ec_curves);