diff options
author | Dmitry Wagin <dmitry.wagin@ya.ru> | 2021-01-25 17:02:09 +0300 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-01-30 23:48:22 +0100 |
commit | 796ce293defeeefb001bd8b76bbb75eb77a1ce0c (patch) | |
tree | 5de053a8198e191860a9bc7177c9788880e094a5 /include | |
parent | 3c2210713e2427d567a6c44b83b3c9ac2a8577bc (diff) | |
download | curl-796ce293defeeefb001bd8b76bbb75eb77a1ce0c.tar.gz |
http: improve AWS HTTP v4 Signature auth
- Add support services without region and service prefixes in
the URL endpoint (ex. Min.IO, GCP, Yandex Cloud, Mail.Ru Cloud Solutions, etc)
by providing region and service parameters via aws-sigv4 option.
- Add [:region[:service]] suffix to aws-sigv4 option;
- Fix memory allocation errors.
- Refactor memory management.
- Use Curl_http_method instead() STRING_CUSTOMREQUEST.
- Refactor canonical headers generating.
- Remove repeated sha256_to_hex() usage.
- Add some docs fixes.
- Add some codestyle fixes.
- Add overloaded strndup() for debug - curl_dbg_strndup().
- Update tests.
Closes #6524
Diffstat (limited to 'include')
-rw-r--r-- | include/curl/curl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/curl/curl.h b/include/curl/curl.h index 3c0461bc2..71204ee32 100644 --- a/include/curl/curl.h +++ b/include/curl/curl.h @@ -787,7 +787,7 @@ typedef enum { #define CURLAUTH_DIGEST_IE (((unsigned long)1)<<4) #define CURLAUTH_NTLM_WB (((unsigned long)1)<<5) #define CURLAUTH_BEARER (((unsigned long)1)<<6) -#define CURLAUTH_AWS_SIGV4 (((unsigned long)1)<<7) +#define CURLAUTH_AWS_SIGV4 (((unsigned long)1)<<7) #define CURLAUTH_ONLY (((unsigned long)1)<<31) #define CURLAUTH_ANY (~CURLAUTH_DIGEST_IE) #define CURLAUTH_ANYSAFE (~(CURLAUTH_BASIC|CURLAUTH_DIGEST_IE)) @@ -2075,7 +2075,7 @@ typedef enum { CURLOPT(CURLOPT_HSTSWRITEFUNCTION, CURLOPTTYPE_FUNCTIONPOINT, 303), CURLOPT(CURLOPT_HSTSWRITEDATA, CURLOPTTYPE_CBPOINT, 304), - /* Provider for V4 signature */ + /* Parameters for V4 signature */ CURLOPT(CURLOPT_AWS_SIGV4, CURLOPTTYPE_STRINGPOINT, 305), CURLOPT_LASTENTRY /* the last unused */ |