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: 47f7af3bb6cdbbcb93ac1fced56826f882b4d9e4 $
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: 47f7af3bb6cdbbcb93ac1fced56826f882b4d9e4 $")
25 
26 #include <freeradius-devel/eap/tls.h>
27 
28 typedef enum {
36 } peap_status;
37 
38 typedef enum {
43 
44 typedef struct {
52 
55 
58 
59 
60 #define EAP_TLV_SUCCESS (1)
61 #define EAP_TLV_FAILURE (2)
62 #define EAP_TLV_ACK_RESULT (3)
63 
64 #define FR_PEAP_EXTENSIONS_TYPE 33
65 
66 /*
67  * Process the PEAP portion of an EAP-PEAP request.
68  */
70  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:482
#define HIDDEN
Definition: build.h:312
A section grouping multiple CONF_PAIR.
Definition: cf_priv.h:101
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_auth_type
Definition: rlm_eap_peap.c:72
HIDDEN fr_dict_attr_t const * attr_user_name
Definition: base.c:102
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
HIDDEN fr_dict_attr_t const * attr_eap_tls_require_client_cert
Definition: rlm_eap_fast.c:96
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:50
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:372
CONF_SECTION * server_cs
Definition: eap_peap.h:49
HIDDEN fr_dict_attr_t const * attr_eap_message
Definition: base.c:94
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))