From 61f5b6f33807306d09bccbc2dcad474d1d04ca40 Mon Sep 17 00:00:00 2001 From: Ben Laurie Date: Fri, 23 Apr 1999 15:01:15 +0000 Subject: Work with -pedantic! --- crypto/hmac/Makefile.ssl | 2 +- crypto/hmac/hmac.c | 3 ++- crypto/hmac/hmac.h | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) (limited to 'crypto/hmac') 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 #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); -- cgit v1.2.3