X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=pppd%2Fchap-md5.c;h=77dd4ecc705984bad999cb51fb6b8889f5b82f48;hp=43d0fe8c976cfcddf8f52f13e70f870ad5fae1ab;hb=c9d9dbfb8459b528ab56bd1cf0c41460801bbfdf;hpb=083f39e356febec7955b11668fa4cbaf3da0ea53 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;