aboutsummaryrefslogtreecommitdiffstats
path: root/cram.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2010-03-18 23:29:22 +0100
committerMatthias Andree <matthias.andree@gmx.de>2010-03-18 23:29:22 +0100
commit8e4bfa7520c919ec2a7b00067c3348f0d1c73c8d (patch)
treef5342330bc2dea4ed531ce9ff130cbe2546e1121 /cram.c
parent05cb2b9c62b323a1278c81b6cbe00b2e4186b4f4 (diff)
downloadfetchmail-8e4bfa7520c919ec2a7b00067c3348f0d1c73c8d.tar.gz
fetchmail-8e4bfa7520c919ec2a7b00067c3348f0d1c73c8d.tar.bz2
fetchmail-8e4bfa7520c919ec2a7b00067c3348f0d1c73c8d.zip
Further type fixes.
Diffstat (limited to 'cram.c')
-rw-r--r--cram.c8
1 files changed, 4 insertions, 4 deletions
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));