diff options
author | Steve Holme <steve_holme@hotmail.com> | 2020-02-22 05:37:01 +0000 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2020-02-23 07:50:33 +0000 |
commit | 37dc4df270b0080442a9e36f9ea13855db9253e6 (patch) | |
tree | 7799e625b9b2ff19c83d5b06bb40a62579abe5ab /lib/curl_md5.h | |
parent | 4959be810be3340aaa7a1efca4aba7e670d5e8b7 (diff) |
md5/sha256: Updated the functions to allow non-string data to be hashed
Diffstat (limited to 'lib/curl_md5.h')
-rw-r--r-- | lib/curl_md5.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/curl_md5.h b/lib/curl_md5.h index aaf25f61b..dd464416a 100644 --- a/lib/curl_md5.h +++ b/lib/curl_md5.h @@ -7,7 +7,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2019, 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 @@ -49,8 +49,8 @@ typedef struct { extern const MD5_params Curl_DIGEST_MD5[1]; extern const HMAC_params Curl_HMAC_MD5[1]; -void Curl_md5it(unsigned char *output, - const unsigned char *input); +void Curl_md5it(unsigned char *output, const unsigned char *input, + const size_t len); MD5_context * Curl_MD5_init(const MD5_params *md5params); CURLcode Curl_MD5_update(MD5_context *context, |