Port "use_tunneled_reply" fix for MS-CHAP from branch_1_1
[freeradius.git] / src / modules / rlm_eap / types / rlm_eap_ttls / eap_ttls.h
1 /*
2  * eap_ttls.h
3  *
4  * Version:     $Id$
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_TTLS_H
24 #define _EAP_TTLS_H
25
26 #include <freeradius-devel/ident.h>
27 RCSIDH(eap_ttls_h, "$Id$")
28
29 #include "eap_tls.h"
30
31 typedef struct ttls_tunnel_t {
32         VALUE_PAIR      *username;
33         VALUE_PAIR      *state;
34         VALUE_PAIR      *reply;
35         int             authenticated;
36         int             default_eap_type;
37         int             copy_request_to_tunnel;
38         int             use_tunneled_reply;
39 } ttls_tunnel_t;
40
41 /*
42  *      Process the TTLS portion of an EAP-TTLS request.
43  */
44 int eapttls_process(EAP_HANDLER *handler, tls_session_t *tls_session);
45
46 #endif /* _EAP_TTLS_H */