[openssl-commits] [openssl] master update

Kurt Roeckx kurt at openssl.org
Mon May 16 19:01:08 UTC 2016


The branch master has been updated
       via  2194351fdaab91cff94f921e633d46c9589b0d2c (commit)
      from  d139723b0e6718410d0f11f645387f9c90c1424d (commit)


- Log -----------------------------------------------------------------
commit 2194351fdaab91cff94f921e633d46c9589b0d2c
Author: Steffan Karger <steffan at karger.me>
Date:   Sat May 14 11:02:46 2016 +0200

    const correctness: make HMAC_size() take a const *
    
    CLA: none; trivial
    
    Signed-off-by: Kurt Roeckx <kurt at roeckx.be>
    Reviewed-by: Rich Salz <rsalz at openssl.org>
    
    GH: #1070

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

Summary of changes:
 crypto/hmac/hmac.c     | 2 +-
 include/openssl/hmac.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/crypto/hmac/hmac.c b/crypto/hmac/hmac.c
index 9504aad..4e09e56 100644
--- a/crypto/hmac/hmac.c
+++ b/crypto/hmac/hmac.c
@@ -164,7 +164,7 @@ int HMAC_Final(HMAC_CTX *ctx, unsigned char *md, unsigned int *len)
     return 0;
 }
 
-size_t HMAC_size(HMAC_CTX *ctx)
+size_t HMAC_size(const HMAC_CTX *ctx)
 {
     return EVP_MD_size((ctx)->md);
 }
diff --git a/include/openssl/hmac.h b/include/openssl/hmac.h
index 71d7d65..88ebf0d 100644
--- a/include/openssl/hmac.h
+++ b/include/openssl/hmac.h
@@ -67,7 +67,7 @@
 extern "C" {
 #endif
 
-size_t HMAC_size(HMAC_CTX *e);
+size_t HMAC_size(const HMAC_CTX *e);
 HMAC_CTX *HMAC_CTX_new(void);
 int HMAC_CTX_reset(HMAC_CTX *ctx);
 void HMAC_CTX_free(HMAC_CTX *ctx);


More information about the openssl-commits mailing list