From: Daniel Stenberg Date: Thu, 7 Sep 2023 12:57:32 +0000 (+0200) Subject: tool_operate: make aws-sigv4 not require TLS to be used X-Git-Tag: curl-8_3_0~23 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c5a9630739c7699d768b93539b2fb9d9fdeaed8a;p=thirdparty%2Fcurl.git tool_operate: make aws-sigv4 not require TLS to be used Maybe not used too often, but we want it for testing and it should work. --- diff --git a/src/tool_operate.c b/src/tool_operate.c index 2c7d88a710..cd12e81f65 100644 --- a/src/tool_operate.c +++ b/src/tool_operate.c @@ -1459,7 +1459,7 @@ static CURLcode single_transfer(struct GlobalConfig *global, config->followlocation?1L:0L); my_setopt(curl, CURLOPT_UNRESTRICTED_AUTH, config->unrestricted_auth?1L:0L); - + my_setopt_str(curl, CURLOPT_AWS_SIGV4, config->aws_sigv4); my_setopt(curl, CURLOPT_AUTOREFERER, config->autoreferer?1L:0L); /* new in libcurl 7.36.0 */ @@ -1722,9 +1722,6 @@ static CURLcode single_transfer(struct GlobalConfig *global, my_setopt_str(curl, CURLOPT_SSLKEYTYPE, config->key_type); my_setopt_str(curl, CURLOPT_PROXY_SSLKEYTYPE, config->proxy_key_type); - my_setopt_str(curl, CURLOPT_AWS_SIGV4, - config->aws_sigv4); - if(config->insecure_ok) { my_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L); my_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);