The FreeRADIUS server  $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
eap_ttls.h
Go to the documentation of this file.
1 #pragma once
2 /*
3  * This program is free software; you can redistribute it and/or modify
4  * it under the terms of the GNU General Public License as published by
5  * the Free Software Foundation; either version 2 of the License, or (at
6  * your option) any later version.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program; if not, write to the Free Software
15  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
16  */
17 
18 /**
19  * $Id: f38d3dd86654a819850c4c64745c1f760372b080 $
20  * @file eap_ttls.h
21  * @brief Declarations for EAP-TTLS as defined by RFC 5281
22  *
23  * @copyright 2003 Alan DeKok (aland@freeradius.org)
24  * @copyright 2006 The FreeRADIUS server project
25  */
26 RCSIDH(eap_ttls_h, "$Id: f38d3dd86654a819850c4c64745c1f760372b080 $")
27 
28 #include <freeradius-devel/eap/tls.h>
29 #include <freeradius-devel/radius/radius.h>
30 #include <freeradius-devel/radius/defs.h>
31 
42 
43 typedef struct {
48 
49 /*
50  * Process the TTLS portion of an EAP-TTLS request.
51  */
52 unlang_action_t eap_ttls_process(request_t *request, eap_session_t *eap_session, fr_tls_session_t *tls_session) CC_HINT(nonnull);
53 unlang_action_t eap_ttls_success(rlm_rcode_t *p_result, request_t *request, eap_session_t *eap_session);
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
unlang_action_t eap_ttls_process(request_t *request, eap_session_t *eap_session, fr_tls_session_t *tls_session)
Definition: ttls.c:634
HIDDEN fr_dict_attr_t const * attr_chap_challenge
Definition: rlm_eap_ttls.c:89
HIDDEN fr_dict_attr_t const * attr_user_name
Definition: base.c:102
CONF_SECTION * server_cs
Definition: eap_ttls.h:46
fr_pair_t * username
Definition: eap_ttls.h:44
bool authenticated
Definition: eap_ttls.h:45
HIDDEN fr_dict_attr_t const * attr_eap_tls_require_client_cert
Definition: rlm_eap_fast.c:96
HIDDEN fr_dict_attr_t const * attr_user_password
Definition: rlm_eap_fast.c:107
unlang_action_t eap_ttls_success(rlm_rcode_t *p_result, request_t *request, eap_session_t *eap_session)
Definition: ttls.c:595
HIDDEN fr_dict_attr_t const * attr_ms_chap_challenge
Definition: rlm_eap_fast.c:98
HIDDEN fr_dict_attr_t const * attr_reply_message
Definition: rlm_eap_ttls.c:93
HIDDEN fr_dict_attr_t const * attr_vendor_specific
Definition: rlm_eap_ttls.c:97
HIDDEN fr_dict_attr_t const * attr_ms_chap2_success
Definition: rlm_eap_ttls.c:90
HIDDEN fr_dict_attr_t const * attr_eap_channel_binding_message
Definition: base.c:93
HIDDEN fr_dict_attr_t const * attr_eap_message
Definition: base.c:94
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))