summaryrefslogtreecommitdiffstats
path: root/libmd5
diff options
context:
space:
mode:
Diffstat (limited to 'libmd5')
-rw-r--r--libmd5/md5.c2
-rw-r--r--libmd5/md5.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/libmd5/md5.c b/libmd5/md5.c
index d75105c..0945b28 100644
--- a/libmd5/md5.c
+++ b/libmd5/md5.c
@@ -174,7 +174,7 @@ void MD5Final (MD5_CTX *context, unsigned char digest[16])
MD5_memset ((POINTER)context, 0, sizeof (*context));
}
-void MD5Buffer (const char *buf,unsigned int len,unsigned char sig[16])
+void MD5Buffer (const unsigned char *buf,unsigned int len,unsigned char sig[16])
{
MD5_CTX md5;
MD5Init(&md5);
diff --git a/libmd5/md5.h b/libmd5/md5.h
index e62aa07..8e85a8a 100644
--- a/libmd5/md5.h
+++ b/libmd5/md5.h
@@ -42,7 +42,7 @@ typedef struct {
void MD5Init(MD5_CTX *ctx);
void MD5Update (MD5_CTX *ctx, const unsigned char *buf, unsigned int len);
void MD5Final (MD5_CTX *ctx, unsigned char sig[16]);
-void MD5Buffer (const char *buf,unsigned int len,unsigned char sig[16]);
+void MD5Buffer (const unsigned char *buf,unsigned int len,unsigned char sig[16]);
void MD5SigToString(unsigned char sig[16],char *str,int len);
#ifdef __cplusplus