mirror of
https://github.com/curl/curl.git
synced 2026-07-25 02:37:18 +03:00
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>
This commit is contained in:
parent
08e8455ddd
commit
eb69797766
3 changed files with 27 additions and 1 deletions
14
lib/setopt.c
14
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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue