X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Fpeap.c;h=243a8bd1344d880bddd0a94768a88c5c6c46ed3c;hb=ba7f7e053daae846a54a1d08d3d133a5f1266ace;hp=d6e5fcff9012edc68f5e902808b44a9164e91a1b;hpb=76016e1b948b7d9675b4e0750d1f943d96d9523b;p=ppp.git diff --git a/pppd/peap.c b/pppd/peap.c index d6e5fcf..243a8bd 100644 --- a/pppd/peap.c +++ b/pppd/peap.c @@ -47,6 +47,10 @@ * https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-peap */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include #include #include @@ -57,10 +61,10 @@ #include #include -#include "pppd.h" +#include "pppd-private.h" #include "eap.h" #include "tls.h" -#include "chap-new.h" +#include "chap.h" #include "chap_ms.h" #include "mppe.h" #include "peap.h" @@ -436,6 +440,7 @@ void peap_do_inner_eap(u_char *in_buf, int in_len, eap_state *esp, int id, } case CHAP_FAILURE: { + u_char status = CHAP_FAILURE; psm->chap->handle_failure(in_buf, in_len); PUTCHAR(EAPT_MSCHAPV2, outp); PUTCHAR(status, outp);