X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=cram.c;h=f7559e6d9668792ef42c30ebd6dc1327c1e5a5cb;hb=f16d8d23439b5569f0c2e1af22494708b507f277;hp=e71f0ecd3bc5496f967a8552538f11a6ff85cf25;hpb=8e4bfa7520c919ec2a7b00067c3348f0d1c73c8d;p=~andy%2Ffetchmail diff --git a/cram.c b/cram.c index e71f0ecd..f7559e6d 100644 --- a/cram.c +++ b/cram.c @@ -8,17 +8,15 @@ #include #include #include -#if defined(STDC_HEADERS) #include -#endif #include "fetchmail.h" #include "socket.h" -#include "i18n.h" +#include "gettext.h" #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 +109,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),