diff options
author | Stefan Metzmacher <metze@samba.org> | 2004-11-25 18:23:58 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:06:08 -0500 |
commit | 4dc2599dad6a839c7aa8301c45b0583a2b14a3db (patch) | |
tree | 3f6ed6bd17ba89407f1fe7fb7c7bd043de217b57 /source4/lib | |
parent | 5c55901266a4f176e77d41ceb6674b0d89eaef3a (diff) | |
download | samba-4dc2599dad6a839c7aa8301c45b0583a2b14a3db.tar.gz samba-4dc2599dad6a839c7aa8301c45b0583a2b14a3db.tar.bz2 samba-4dc2599dad6a839c7aa8301c45b0583a2b14a3db.zip |
r3961: - fix compiler warnings
- remove unused typedef
metze
(This used to be commit 19613122a5222b152044b1f86136496b95d4a3e3)
Diffstat (limited to 'source4/lib')
-rw-r--r-- | source4/lib/crypto/md5.c | 3 | ||||
-rw-r--r-- | source4/lib/crypto/md5.h | 7 |
2 files changed, 3 insertions, 7 deletions
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 */ |