[openssl] master update

Dr. Paul Dale pauli at openssl.org
Fri Jun 26 08:38:06 UTC 2020


The branch master has been updated
       via  cc63865f336e0144f8501aa0a862ba0247a50622 (commit)
      from  0d96afd28c3bd5af9a57a9def232af2e718bfbf3 (commit)


- Log -----------------------------------------------------------------
commit cc63865f336e0144f8501aa0a862ba0247a50622
Author: pedro martelletto <pedro at ambientworks.net>
Date:   Wed Jun 24 17:48:00 2020 +0200

    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 <matt at openssl.org>
    Reviewed-by: Paul Dale <paul.dale at oracle.com>
    (Merged from https://github.com/openssl/openssl/pull/12264)

-----------------------------------------------------------------------

Summary of changes:
 doc/man3/HMAC.pod | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/doc/man3/HMAC.pod b/doc/man3/HMAC.pod
index b798e6ca7c..f441208585 100644
--- a/doc/man3/HMAC.pod
+++ b/doc/man3/HMAC.pod
@@ -25,7 +25,7 @@ B<OPENSSL_API_COMPAT> with a suitable version value, see
 L<openssl_user_macros(7)>:
 
  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);
@@ -33,7 +33,7 @@ L<openssl_user_macros(7)>:
 
  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);


More information about the openssl-commits mailing list