]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tool_operate: make aws-sigv4 not require TLS to be used
authorDaniel Stenberg <daniel@haxx.se>
Thu, 7 Sep 2023 12:57:32 +0000 (14:57 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 7 Sep 2023 15:50:27 +0000 (17:50 +0200)
Maybe not used too often, but we want it for testing and it should work.

src/tool_operate.c

index 2c7d88a71044ce67124601e95f168e704777661c..cd12e81f65409f37ff3ae2c2f53c1c8f8674e119 100644 (file)
@@ -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);