From 979e14c39fcbbffaa98880f1a5fc33ada4a8063d Mon Sep 17 00:00:00 2001 From: Paul Mackerras Date: Sun, 24 Aug 2008 17:12:02 +1000 Subject: [PATCH] Fix the argument type in call to MD5_Update properly The secret needs to be cast to u_char * not char *. Oops. Signed-off-by: Paul Mackerras --- pppd/chap-md5.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pppd/chap-md5.c b/pppd/chap-md5.c index 43d0fe8..77dd4ec 100644 --- a/pppd/chap-md5.c +++ b/pppd/chap-md5.c @@ -95,7 +95,7 @@ chap_md5_make_response(unsigned char *response, int id, char *our_name, MD5_Init(&ctx); MD5_Update(&ctx, &idbyte, 1); - MD5_Update(&ctx, (char *)secret, secret_len); + MD5_Update(&ctx, (u_char *)secret, secret_len); MD5_Update(&ctx, challenge, challenge_len); MD5_Final(&response[1], &ctx); response[0] = MD5_HASH_SIZE; -- 2.39.2