From 9c10d69f36fed4962354b7a38261fe47f154ba2b Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Fri, 19 Mar 2010 00:07:08 +0100 Subject: Fix MD5 compile on Solaris. --- cram.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cram.c') diff --git a/cram.c b/cram.c index e71f0ecd..cf33393e 100644 --- a/cram.c +++ b/cram.c @@ -18,7 +18,7 @@ #include "fm_md5.h" void hmac_md5 (const unsigned char *password, size_t pass_len, - const char *challenge, size_t chal_len, + const unsigned char *challenge, size_t chal_len, unsigned char *response, size_t resp_len) { int i; @@ -111,7 +111,7 @@ int do_cram_md5 (int sock, const char *command, struct query *ctl, const char *s */ hmac_md5((unsigned char *)ctl->password, strlen(ctl->password), - msg_id, strlen (msg_id), + (unsigned char *)msg_id, strlen (msg_id), response, sizeof (response)); snprintf (reply, sizeof(reply), -- cgit v1.2.3