aboutsummaryrefslogtreecommitdiffstats
path: root/cram.c
diff options
context:
space:
mode:
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),