From: pedro martelletto Date: Wed, 24 Jun 2020 15:48:00 +0000 (+0200) Subject: doc/man3: fix types taken by HMAC(), HMAC_Update() X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=7bdf1ee8ccb69a743e29e3d1a72194c30e8583ae;p=oweals%2Fopenssl.git doc/man3: fix types taken by HMAC(), HMAC_Update() HMAC() and HMAC_Update() take size_t for 'n' and 'len' respectively. CLA: trivial Reviewed-by: Matt Caswell Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/12264) (cherry picked from commit cc63865f336e0144f8501aa0a862ba0247a50622) --- diff --git a/doc/man3/HMAC.pod b/doc/man3/HMAC.pod index 30c0e6bac3..cc0d470907 100644 --- a/doc/man3/HMAC.pod +++ b/doc/man3/HMAC.pod @@ -21,7 +21,7 @@ HMAC_size #include unsigned char *HMAC(const EVP_MD *evp_md, const void *key, - int key_len, const unsigned char *d, int n, + int key_len, const unsigned char *d, size_t n, unsigned char *md, unsigned int *md_len); HMAC_CTX *HMAC_CTX_new(void); @@ -29,7 +29,7 @@ HMAC_size int HMAC_Init_ex(HMAC_CTX *ctx, const void *key, int key_len, const EVP_MD *md, ENGINE *impl); - int HMAC_Update(HMAC_CTX *ctx, const unsigned char *data, int len); + int HMAC_Update(HMAC_CTX *ctx, const unsigned char *data, size_t len); int HMAC_Final(HMAC_CTX *ctx, unsigned char *md, unsigned int *len); void HMAC_CTX_free(HMAC_CTX *ctx);