aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/hmac
diff options
context:
space:
mode:
authorBen Laurie <ben@openssl.org>1999-04-23 15:01:15 +0000
committerBen Laurie <ben@openssl.org>1999-04-23 15:01:15 +0000
commit61f5b6f33807306d09bccbc2dcad474d1d04ca40 (patch)
tree1680fa648df5f730df11ec433a512a1fadf0facd /crypto/hmac
parent779cc0bca98e35830db455f34b986b86a2d2f822 (diff)
downloadopenssl-61f5b6f33807306d09bccbc2dcad474d1d04ca40.tar.gz
Work with -pedantic!
Diffstat (limited to 'crypto/hmac')
-rw-r--r--crypto/hmac/Makefile.ssl2
-rw-r--r--crypto/hmac/hmac.c3
-rw-r--r--crypto/hmac/hmac.h2
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);