From e778802f53c8d47e96a6e4cbc776eb6e1d4c461a Mon Sep 17 00:00:00 2001 From: Ben Laurie Date: Sat, 17 Apr 1999 21:25:43 +0000 Subject: Massive constification. --- crypto/hmac/hmac.c | 2 +- crypto/hmac/hmac.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'crypto/hmac') 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); -- cgit v1.2.3