summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/lib/crypto/md5.c3
-rw-r--r--source4/lib/crypto/md5.h7
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 */