X-Git-Url: https://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=pppd%2Fchap-md5.c;h=000f880e89e3d0859698b018689437acb120023e;hp=43d0fe8c976cfcddf8f52f13e70f870ad5fae1ab;hb=509f04959ad891d7f981f035ed461d51bd1f74b0;hpb=083f39e356febec7955b11668fa4cbaf3da0ea53 diff --git a/pppd/chap-md5.c b/pppd/chap-md5.c index 43d0fe8..000f880 100644 --- a/pppd/chap-md5.c +++ b/pppd/chap-md5.c @@ -30,6 +30,10 @@ #define RCSID "$Id: chap-md5.c,v 1.4 2004/11/09 22:39:25 paulus Exp $" +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include #include #include "pppd.h" @@ -95,7 +99,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;