diff options
Diffstat (limited to 'crypto/hmac')
-rw-r--r-- | crypto/hmac/Makefile.ssl | 2 | ||||
-rw-r--r-- | crypto/hmac/hmac.c | 3 | ||||
-rw-r--r-- | crypto/hmac/hmac.h | 2 |
3 files changed, 4 insertions, 3 deletions
diff --git a/crypto/hmac/Makefile.ssl b/crypto/hmac/Makefile.ssl index 52a216739f..294ff15e2e 100644 --- a/crypto/hmac/Makefile.ssl +++ b/crypto/hmac/Makefile.ssl @@ -85,4 +85,4 @@ hmac.o: ../../include/evp.h ../../include/idea.h ../../include/md2.h hmac.o: ../../include/md5.h ../../include/mdc2.h ../../include/objects.h hmac.o: ../../include/opensslv.h ../../include/rc2.h ../../include/rc4.h hmac.o: ../../include/rc5.h ../../include/ripemd.h ../../include/rsa.h -hmac.o: ../../include/sha.h ../../include/stack.h hmac.h +hmac.o: ../../include/sha.h ../../include/stack.h ../opensslconf.h hmac.h diff --git a/crypto/hmac/hmac.c b/crypto/hmac/hmac.c index 64c5162130..bf293804c5 100644 --- a/crypto/hmac/hmac.c +++ b/crypto/hmac/hmac.c @@ -60,7 +60,8 @@ #include <string.h> #include "hmac.h" -void HMAC_Init(HMAC_CTX *ctx, unsigned char *key, int len, const EVP_MD *md) +void HMAC_Init(HMAC_CTX *ctx, const unsigned char *key, int len, + 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 2a39d67bdf..2fc974417a 100644 --- a/crypto/hmac/hmac.h +++ b/crypto/hmac/hmac.h @@ -80,7 +80,7 @@ typedef struct hmac_ctx_st #ifndef NOPROTO -void HMAC_Init(HMAC_CTX *ctx, unsigned char *key, int len, +void HMAC_Init(HMAC_CTX *ctx, const unsigned char *key, int len, 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); |