aboutsummaryrefslogtreecommitdiffstats
path: root/lib/curl_hmac.h
diff options
context:
space:
mode:
authorHaibo Huang <hhb@google.com>2020-03-04 02:22:48 -0800
committerHaibo Huang <hhb@google.com>2020-03-04 14:52:15 -0800
commitb51266f7c848ad5d4a3a8afba83d1003e819102e (patch)
tree695ba43ada853928cf8200de325d3bfd5eca9061 /lib/curl_hmac.h
parent20c1fa87d386442426f42af68de56cc80b3fe206 (diff)
downloadexternal_curl-b51266f7c848ad5d4a3a8afba83d1003e819102e.tar.gz
external_curl-b51266f7c848ad5d4a3a8afba83d1003e819102e.tar.bz2
external_curl-b51266f7c848ad5d4a3a8afba83d1003e819102e.zip
Upgrade curl to curl-7_69_0
Test: None Change-Id: I32f36294d53083ccb27764ebc4bc8fe628f38d94
Diffstat (limited to 'lib/curl_hmac.h')
-rw-r--r--lib/curl_hmac.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/curl_hmac.h b/lib/curl_hmac.h
index 756dc9e4..3ff799bb 100644
--- a/lib/curl_hmac.h
+++ b/lib/curl_hmac.h
@@ -7,7 +7,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -24,6 +24,8 @@
#ifndef CURL_DISABLE_CRYPTO_AUTH
+#define HMAC_MD5_LENGTH 16
+
typedef void (* HMAC_hinit_func)(void *context);
typedef void (* HMAC_hupdate_func)(void *context,
const unsigned char *data,
@@ -62,6 +64,11 @@ int Curl_HMAC_update(HMAC_context *context,
unsigned int len);
int Curl_HMAC_final(HMAC_context *context, unsigned char *result);
+CURLcode Curl_hmacit(const HMAC_params *hashparams,
+ const unsigned char *key, const size_t keylen,
+ const unsigned char *data, const size_t datalen,
+ unsigned char *output);
+
#endif
#endif /* HEADER_CURL_HMAC_H */