The FreeRADIUS server  $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
eap_peap.h
Go to the documentation of this file.
1 #pragma once
2 /*
3  * eap_peap.h
4  *
5  * Version: $Id: 897e17c7eea2e7d1d568d3e9149db5507e04a054 $
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
20  *
21  * @copyright 2003 Alan DeKok (aland@freeradius.org)
22  * @copyright 2006 The FreeRADIUS server project
23  */
24 RCSIDH(eap_peap_h, "$Id: 897e17c7eea2e7d1d568d3e9149db5507e04a054 $")
25 
26 #include <freeradius-devel/eap/tls.h>
27 
28 typedef enum {
36 } peap_status;
37 
38 typedef enum {
43 
44 typedef struct {
50  char const *virtual_server;
53 
57 
61 
62 
63 #define EAP_TLV_SUCCESS (1)
64 #define EAP_TLV_FAILURE (2)
65 #define EAP_TLV_ACK_RESULT (3)
66 
67 #define FR_PEAP_EXTENSIONS_TYPE 33
68 
69 /*
70  * Process the PEAP portion of an EAP-PEAP request.
71  */
73  eap_session_t *eap_session, fr_tls_session_t *tls_session) CC_HINT(nonnull);
unlang_action_t
Returned by unlang_op_t calls, determine the next action of the interpreter.
Definition: action.h:35
#define RCSIDH(h, id)
Definition: build.h:445
#define HIDDEN
Definition: build.h:312
peap_status
Definition: eap_peap.h:28
@ PEAP_STATUS_PHASE2_INIT
Definition: eap_peap.h:34
@ PEAP_STATUS_TUNNEL_ESTABLISHED
Definition: eap_peap.h:32
@ PEAP_STATUS_PHASE2
Definition: eap_peap.h:35
@ PEAP_STATUS_INNER_IDENTITY_REQ_SENT
Definition: eap_peap.h:33
@ PEAP_STATUS_SENT_TLV_SUCCESS
Definition: eap_peap.h:30
@ PEAP_STATUS_SENT_TLV_FAILURE
Definition: eap_peap.h:31
@ PEAP_STATUS_INVALID
Definition: eap_peap.h:29
HIDDEN fr_dict_attr_t const * attr_proxy_to_realm
Definition: rlm_eap_fast.c:99
HIDDEN fr_dict_attr_t const * attr_auth_type
Definition: rlm_eap_peap.c:78
HIDDEN fr_dict_attr_t const * attr_user_name
Definition: base.c:97
bool proxy_tunneled_request_as_eap
Definition: eap_peap.h:49
peap_resumption
Definition: eap_peap.h:38
@ PEAP_RESUMPTION_YES
Definition: eap_peap.h:40
@ PEAP_RESUMPTION_NO
Definition: eap_peap.h:39
@ PEAP_RESUMPTION_MAYBE
Definition: eap_peap.h:41
char const * virtual_server
Definition: eap_peap.h:50
HIDDEN fr_dict_attr_t const * attr_eap_tls_require_client_cert
Definition: rlm_eap_fast.c:95
int default_method
Definition: eap_peap.h:48
peap_status status
Definition: eap_peap.h:46
bool home_access_accept
Definition: eap_peap.h:47
peap_resumption session_resumption_state
Definition: eap_peap.h:51
HIDDEN fr_dict_attr_t const * attr_freeradius_proxied_to
Definition: base.c:93
unlang_action_t eap_peap_process(rlm_rcode_t *p_result, request_t *request, eap_session_t *eap_session, fr_tls_session_t *tls_session)
Definition: peap.c:378
HIDDEN fr_dict_attr_t const * attr_eap_message
Definition: base.c:90
fr_pair_t * username
Definition: eap_peap.h:45
Tracks the progress of a single session of any EAP method.
Definition: session.h:40
rlm_rcode_t
Return codes indicating the result of the module call.
Definition: rcode.h:40
Stores an attribute, a value and various bits of other data.
Definition: pair.h:68
int nonnull(2, 5))