X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Feap.h;h=5d582bc6e2db60ad61ec194ec55347674dcffa8e;hb=4a54e34cf5629f9fed61f0b7d69ee3ba4d874bc6;hp=032ef7dd81f0e2f1b650d59151ddb9c033876de6;hpb=3a7593be1582b204214f1ff9bbce849e22a81876;p=ppp.git diff --git a/pppd/eap.h b/pppd/eap.h index 032ef7d..5d582bc 100644 --- a/pppd/eap.h +++ b/pppd/eap.h @@ -20,6 +20,8 @@ * $Id: eap.h,v 1.2 2003/06/11 23:56:26 paulus Exp $ */ +#include "pppdconf.h" + #ifndef PPP_EAP_H #define PPP_EAP_H @@ -146,6 +148,9 @@ struct eap_auth { enum eap_state_code ea_state; #ifdef USE_EAPTLS enum eap_state_code ea_prev_state; +#endif +#ifdef CHAPMS + struct chap_digest_type *digest; #endif u_char ea_id; /* Current id */ u_char ea_requests; /* Number of Requests sent/received */ @@ -164,6 +169,9 @@ typedef struct eap_state { int es_unit; /* Interface unit number */ struct eap_auth es_client; /* Client (authenticatee) data */ struct eap_auth es_server; /* Server (authenticator) data */ +#ifdef USE_PEAP + struct peap_state *ea_peap; /* Client PEAP (authenticator) data */ +#endif int es_savedtime; /* Saved timeout */ int es_rechallenge; /* EAP rechallenge interval */ int es_lwrechallenge; /* SRP lightweight rechallenge inter */ @@ -188,8 +196,8 @@ typedef struct eap_state { extern eap_state eap_states[]; -void eap_authwithpeer __P((int unit, char *localname)); -void eap_authpeer __P((int unit, char *localname)); +void eap_authwithpeer (int unit, char *localname); +void eap_authpeer (int unit, char *localname); extern struct protent eap_protent;