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 RCSIDH(eap_peap_h, "$Id$")
29 #include <freeradius-devel/soh.h>
33 PEAP_STATUS_SENT_TLV_SUCCESS,
34 PEAP_STATUS_SENT_TLV_FAILURE,
35 PEAP_STATUS_TUNNEL_ESTABLISHED,
36 PEAP_STATUS_INNER_IDENTITY_REQ_SENT,
37 PEAP_STATUS_PHASE2_INIT,
39 PEAP_STATUS_WAIT_FOR_SOH_RESPONSE
48 typedef struct peap_tunnel_t {
51 VALUE_PAIR *accept_vps;
53 bool home_access_accept;
55 int copy_request_to_tunnel;
56 int use_tunneled_reply;
57 int proxy_tunneled_request_as_eap;
58 char const *virtual_server;
60 char const *soh_virtual_server;
61 VALUE_PAIR *soh_reply_vps;
62 peap_resumption session_resumption_state;
66 #define EAP_TLV_SUCCESS (1)
67 #define EAP_TLV_FAILURE (2)
68 #define EAP_TLV_ACK_RESULT (3)
73 * Process the PEAP portion of an EAP-PEAP request.
75 rlm_rcode_t eappeap_process(eap_handler_t *handler, tls_session_t *tls_session) CC_HINT(nonnull);
76 #endif /* _EAP_PEAP_H */