summaryrefslogtreecommitdiff
path: root/lib/setopt.c
diff options
context:
space:
mode:
authorMatthias Gatto <matthias.gatto@outscale.com>2020-01-21 17:33:51 +0100
committerDaniel Stenberg <daniel@haxx.se>2020-12-21 16:28:03 +0100
commiteb69797766a36e56c07c2fc4cfe064b60cdeebc0 (patch)
tree2eb7d245b02c8846685be37f93caaf718ad90899 /lib/setopt.c
parent08e8455dddc5e48e58a12ade3815c01ae3da3b64 (diff)
downloadcurl-eb69797766a36e56c07c2fc4cfe064b60cdeebc0.tar.gz
http: Make the call to v4 signature
This patch allow to call the v4 signature introduce in previous commit Signed-off-by: Matthias Gatto <matthias.gatto@outscale.com>
Diffstat (limited to 'lib/setopt.c')
-rw-r--r--lib/setopt.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/setopt.c b/lib/setopt.c
index b8fc4e8da..a6cc562eb 100644
--- a/lib/setopt.c
+++ b/lib/setopt.c
@@ -638,6 +638,20 @@ CURLcode Curl_vsetopt(struct Curl_easy *data, CURLoption option, va_list param)
data->set.method = HTTPREQ_POST_FORM;
data->set.opt_no_body = FALSE; /* this is implied */
break;
+
+ case CURLOPT_AWS_SIGV4:
+ /*
+ * String that holds file type of the SSL certificate to use
+ */
+ result = Curl_setstropt(&data->set.str[STRING_AWS_SIGV4],
+ va_arg(param, char *));
+ /*
+ * Basic been set by default it need to be unset here
+ */
+ if(data->set.str[STRING_AWS_SIGV4])
+ data->set.httpauth = CURLAUTH_AWS_SIGV4;
+ break;
+
#endif /* CURL_DISABLE_HTTP */
case CURLOPT_MIMEPOST: