diff options
author | Matthias Gatto <matthias.gatto@outscale.com> | 2020-07-03 15:12:57 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-12-21 15:26:41 +0100 |
commit | d52564bacb82712a8a1221ec982d7966d7a90a3e (patch) | |
tree | ea69048559d946464f9e6248c70458e8b47d693d /lib/curl_sha256.h | |
parent | d13179db3e88ddcca087175e35332c2b04b08770 (diff) | |
download | curl-d52564bacb82712a8a1221ec982d7966d7a90a3e.tar.gz |
http: add hmac support for sha256
It seems current hmac implementation use md5 for the hash,
V4 signature require sha256, so I've added the needed struct in
this commit.
I've added the functions that do the hmac in v4 signature file
as a static function ,in the next patch of the serie,
because it's used only by this file.
Signed-off-by: Matthias Gatto <matthias.gatto@outscale.com>
Diffstat (limited to 'lib/curl_sha256.h')
-rw-r--r-- | lib/curl_sha256.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/curl_sha256.h b/lib/curl_sha256.h index 0fceb6329..b4579d769 100644 --- a/lib/curl_sha256.h +++ b/lib/curl_sha256.h @@ -24,6 +24,9 @@ ***************************************************************************/ #ifndef CURL_DISABLE_CRYPTO_AUTH +#include "curl_hmac.h" + +extern const struct HMAC_params Curl_HMAC_SHA256[1]; #define SHA256_DIGEST_LENGTH 32 |