]> git.ozlabs.org Git - ppp.git/blobdiff - pppd/chap-md5.c
Changing USE_SRP to PPP_WITH_SRP for consistency
[ppp.git] / pppd / chap-md5.c
index bc69778efd2b38605abf6ab03df3ec71ab128321..000f880e89e3d0859698b018689437acb120023e 100644 (file)
 
 #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 <stdlib.h>
 #include <string.h>
 #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, 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;