aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/md5
diff options
context:
space:
mode:
authorBen Laurie <ben@openssl.org>1999-02-09 23:01:08 +0000
committerBen Laurie <ben@openssl.org>1999-02-09 23:01:08 +0000
commitbf5dcd135fb77dc23d8566b6456317a10e806b7d (patch)
treec4af8eeb22fcec5a1b58ec82d476e8757e57ef5f /crypto/md5
parent119f62881a57ac10f1b347492da43589d16012f8 (diff)
downloadopenssl-bf5dcd135fb77dc23d8566b6456317a10e806b7d.tar.gz
More exactitude with function arguments.
Diffstat (limited to 'crypto/md5')
-rw-r--r--crypto/md5/md5.h2
-rw-r--r--crypto/md5/md5_dgst.c5
2 files changed, 4 insertions, 3 deletions
diff --git a/crypto/md5/md5.h b/crypto/md5/md5.h
index 357c6c625d..93e65731a3 100644
--- a/crypto/md5/md5.h
+++ b/crypto/md5/md5.h
@@ -80,7 +80,7 @@ typedef struct MD5state_st
#ifndef NOPROTO
void MD5_Init(MD5_CTX *c);
-void MD5_Update(MD5_CTX *c, unsigned char *data, unsigned long len);
+void MD5_Update(MD5_CTX *c, const void *data, unsigned long len);
void MD5_Final(unsigned char *md, MD5_CTX *c);
unsigned char *MD5(unsigned char *d, unsigned long n, unsigned char *md);
void MD5_Transform(MD5_CTX *c, unsigned char *b);
diff --git a/crypto/md5/md5_dgst.c b/crypto/md5/md5_dgst.c
index ffc870284b..78d8b9e0f6 100644
--- a/crypto/md5/md5_dgst.c
+++ b/crypto/md5/md5_dgst.c
@@ -97,11 +97,12 @@ MD5_CTX *c;
c->num=0;
}
-void MD5_Update(c, data, len)
+void MD5_Update(c, _data, len)
MD5_CTX *c;
-register unsigned char *data;
+const void *_data;
unsigned long len;
{
+ register const unsigned char *data=_data;
register ULONG *p;
int sw,sc;
ULONG l;