From: Paul Mackerras Date: Sun, 24 Aug 2008 07:12:02 +0000 (+1000) Subject: Fix the argument type in call to MD5_Update properly X-Git-Tag: ppp-2.4.7~69 X-Git-Url: http://git.ozlabs.org/?a=commitdiff_plain;h=979e14c39fcbbffaa98880f1a5fc33ada4a8063d;p=ppp.git 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 --- 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;