From 4dc2599dad6a839c7aa8301c45b0583a2b14a3db Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 25 Nov 2004 18:23:58 +0000 Subject: r3961: - fix compiler warnings - remove unused typedef metze (This used to be commit 19613122a5222b152044b1f86136496b95d4a3e3) --- source4/lib/crypto/md5.c | 3 ++- source4/lib/crypto/md5.h | 7 +------ 2 files changed, 3 insertions(+), 7 deletions(-) (limited to 'source4/lib/crypto') diff --git a/source4/lib/crypto/md5.c b/source4/lib/crypto/md5.c index 07028e9043..38ef3fdfbd 100644 --- a/source4/lib/crypto/md5.c +++ b/source4/lib/crypto/md5.c @@ -22,6 +22,7 @@ #include "md5.h" + static void MD5Transform(uint32_t buf[4], uint32_t const in[16]); /* @@ -57,7 +58,7 @@ void MD5Init(struct MD5Context *ctx) * Update context to reflect the concatenation of another buffer full * of bytes. */ -void MD5Update(struct MD5Context *ctx, uint8_t const *buf, uint_t len) +void MD5Update(struct MD5Context *ctx, const uint8_t const *buf, uint_t len) { register uint32_t t; diff --git a/source4/lib/crypto/md5.h b/source4/lib/crypto/md5.h index cd23979f8a..a622cf232a 100644 --- a/source4/lib/crypto/md5.h +++ b/source4/lib/crypto/md5.h @@ -12,13 +12,8 @@ struct MD5Context { }; void MD5Init(struct MD5Context *context); -void MD5Update(struct MD5Context *context, uint8_t const *buf, +void MD5Update(struct MD5Context *context, const uint8_t const *buf, uint_t len); void MD5Final(uint8_t digest[16], struct MD5Context *context); -/* - * This is needed to make RSAREF happy on some MS-DOS compilers. - */ -typedef struct MD5Context MD5_CTX; - #endif /* !MD5_H */ -- cgit