diff options
Diffstat (limited to 'crypto/hmac')
-rw-r--r-- | crypto/hmac/hmac.c | 2 | ||||
-rw-r--r-- | crypto/hmac/hmac.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/crypto/hmac/hmac.c b/crypto/hmac/hmac.c index fb09129963..ead5f649f8 100644 --- a/crypto/hmac/hmac.c +++ b/crypto/hmac/hmac.c @@ -64,7 +64,7 @@ void HMAC_Init(ctx,key,len,md) HMAC_CTX *ctx; unsigned char *key; int len; -EVP_MD *md; +const EVP_MD *md; { int i,j,reset=0; unsigned char pad[HMAC_MAX_MD_CBLOCK]; diff --git a/crypto/hmac/hmac.h b/crypto/hmac/hmac.h index e6b43f52c4..2a39d67bdf 100644 --- a/crypto/hmac/hmac.h +++ b/crypto/hmac/hmac.h @@ -68,7 +68,7 @@ extern "C" { typedef struct hmac_ctx_st { - EVP_MD *md; + const EVP_MD *md; EVP_MD_CTX md_ctx; EVP_MD_CTX i_ctx; EVP_MD_CTX o_ctx; @@ -81,7 +81,7 @@ typedef struct hmac_ctx_st #ifndef NOPROTO void HMAC_Init(HMAC_CTX *ctx, unsigned char *key, int len, - EVP_MD *md); + const EVP_MD *md); void HMAC_Update(HMAC_CTX *ctx,unsigned char *key, int len); void HMAC_Final(HMAC_CTX *ctx, unsigned char *md, unsigned int *len); void HMAC_cleanup(HMAC_CTX *ctx); |