From 8e4bfa7520c919ec2a7b00067c3348f0d1c73c8d Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Thu, 18 Mar 2010 23:29:22 +0100 Subject: Further type fixes. --- cram.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cram.c') diff --git a/cram.c b/cram.c index 16591b8d..e71f0ecd 100644 --- a/cram.c +++ b/cram.c @@ -15,16 +15,16 @@ #include "socket.h" #include "i18n.h" -#include "md5.h" +#include "fm_md5.h" -void hmac_md5 (const char *password, size_t pass_len, +void hmac_md5 (const unsigned char *password, size_t pass_len, const char *challenge, size_t chal_len, unsigned char *response, size_t resp_len) { int i; unsigned char ipad[64]; unsigned char opad[64]; - char hash_passwd[16]; + unsigned char hash_passwd[16]; MD5_CTX ctx; @@ -110,7 +110,7 @@ int do_cram_md5 (int sock, const char *command, struct query *ctl, const char *s * (including angle-brackets). */ - hmac_md5(ctl->password, strlen(ctl->password), + hmac_md5((unsigned char *)ctl->password, strlen(ctl->password), msg_id, strlen (msg_id), response, sizeof (response)); -- cgit v1.2.3