aboutsummaryrefslogtreecommitdiffstats
path: root/cram.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2010-03-19 00:07:08 +0100
committerMatthias Andree <matthias.andree@gmx.de>2010-03-19 00:07:08 +0100
commit9c10d69f36fed4962354b7a38261fe47f154ba2b (patch)
tree0cbbab94f893644ca88438c361025733dd917bbd /cram.c
parent8e4bfa7520c919ec2a7b00067c3348f0d1c73c8d (diff)
downloadfetchmail-9c10d69f36fed4962354b7a38261fe47f154ba2b.tar.gz
fetchmail-9c10d69f36fed4962354b7a38261fe47f154ba2b.tar.bz2
fetchmail-9c10d69f36fed4962354b7a38261fe47f154ba2b.zip
Fix MD5 compile on Solaris.
Diffstat (limited to 'cram.c')
-rw-r--r--cram.c4
1 files changed, 2 insertions, 2 deletions
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),