All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
eap_peap.h
Go to the documentation of this file.
1 /*
2  * eap_peap.h
3  *
4  * Version: $Id: d6f6ec3deb643688fa5dc4194b998c527564d21d $
5  *
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.
10  *
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.
15  *
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
19  *
20  * Copyright 2003 Alan DeKok <aland@freeradius.org>
21  * Copyright 2006 The FreeRADIUS server project
22  */
23 #ifndef _EAP_PEAP_H
24 #define _EAP_PEAP_H
25 
26 RCSIDH(eap_peap_h, "$Id: d6f6ec3deb643688fa5dc4194b998c527564d21d $")
27 
28 #include "eap_tls.h"
29 #include <freeradius-devel/soh.h>
30 
31 typedef enum {
40 } peap_status;
41 
42 typedef enum {
47 
48 typedef struct peap_tunnel_t {
58  char const *virtual_server;
59  bool soh;
60  char const *soh_virtual_server;
64 
65 
66 #define EAP_TLV_SUCCESS (1)
67 #define EAP_TLV_FAILURE (2)
68 #define EAP_TLV_ACK_RESULT (3)
69 
70 #define PW_EAP_TLV 33
71 
72 /*
73  * Process the PEAP portion of an EAP-PEAP request.
74  */
75 rlm_rcode_t eap_peap_process(eap_session_t *eap_session, tls_session_t *tls_session, int auth_type_eap) CC_HINT(nonnull);
76 #endif /* _EAP_PEAP_H */
#define RCSIDH(h, id)
Definition: build.h:136
bool proxy_tunneled_request_as_eap
Definition: eap_peap.h:57
char const * soh_virtual_server
Definition: eap_peap.h:60
#define CC_HINT(_x)
Definition: build.h:71
peap_resumption
Definition: eap_peap.h:42
bool copy_request_to_tunnel
Definition: eap_peap.h:55
int default_method
Definition: eap_peap.h:54
VALUE_PAIR * state
Definition: eap_peap.h:50
VALUE_PAIR * soh_reply_vps
Definition: eap_peap.h:61
peap_resumption session_resumption_state
Definition: eap_peap.h:62
char const * virtual_server
Definition: eap_peap.h:58
Tracks the progress of a single session of any EAP method.
Definition: eap.h:60
VALUE_PAIR * username
Definition: eap_peap.h:49
bool use_tunneled_reply
Definition: eap_peap.h:56
Stores an attribute, a value and various bits of other data.
Definition: pair.h:112
enum rlm_rcodes rlm_rcode_t
Return codes indicating the result of the module call.
rlm_rcode_t eap_peap_process(eap_session_t *eap_session, tls_session_t *tls_session, int auth_type_eap) CC_HINT(nonnull)
Definition: peap.c:730
bool home_access_accept
Definition: eap_peap.h:53
VALUE_PAIR * accept_vps
Definition: eap_peap.h:51
peap_status status
Definition: eap_peap.h:52
peap_status
Definition: eap_peap.h:31
struct peap_tunnel_t peap_tunnel_t