6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
20 * Copyright 2003 Alan DeKok <aland@freeradius.org>
21 * Copyright 2006 The FreeRADIUS server project
26 #include <freeradius-devel/ident.h>
27 RCSIDH(eap_peap_h, "$Id$")
31 typedef struct peap_tunnel_t {
34 VALUE_PAIR *accept_vps;
36 int home_access_accept;
38 int copy_request_to_tunnel;
39 int use_tunneled_reply;
40 int proxy_tunneled_request_as_eap;
41 const char *virtual_server;
42 int session_resumption_state;
45 #define PEAP_STATUS_INVALID 0
46 #define PEAP_STATUS_SENT_TLV_SUCCESS 1
47 #define PEAP_STATUS_SENT_TLV_FAILURE 2
48 #define PEAP_STATUS_TUNNEL_ESTABLISHED 3
49 #define PEAP_STATUS_INNER_IDENTITY_REQ_SENT 4
50 #define PEAP_STATUS_PHASE2_INIT 5
51 #define PEAP_STATUS_PHASE2 6
53 #define PEAP_RESUMPTION_NO (0)
54 #define PEAP_RESUMPTION_YES (1)
55 #define PEAP_RESUMPTION_MAYBE (2)
57 #define EAP_TLV_SUCCESS (1)
58 #define EAP_TLV_FAILURE (2)
59 #define EAP_TLV_ACK_RESULT (3)
64 * Process the PEAP portion of an EAP-PEAP request.
66 int eappeap_process(EAP_HANDLER *handler, tls_session_t *tls_session);
67 #endif /* _EAP_PEAP_H */