Pull fix from branch_1_1, so proxied EAP replies work
[freeradius.git] / src / modules / rlm_eap / types / rlm_eap_tls / rlm_eap_tls.h
1 /*
2  * rlm_eap_tls.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 2001  hereUare Communications, Inc. <raghud@hereuare.com>
21  * Copyright 2003  Alan DeKok <aland@freeradius.org>
22  * Copyright 2006  The FreeRADIUS server project
23  */
24 #ifndef _RLM_EAP_TLS_H
25 #define _RLM_EAP_TLS_H
26
27 #include <freeradius-devel/ident.h>
28 RCSIDH(rlm_eap_tls_h, "$Id$")
29
30 #include "eap_tls.h"
31
32 #include <freeradius-devel/radiusd.h>
33 #include <freeradius-devel/modules.h>
34
35 /* configured values goes right here */
36 typedef struct eap_tls_conf {
37         char            *private_key_password;
38         char            *private_key_file;
39         char            *certificate_file;
40         char            *random_file;
41         char            *ca_path;
42         char            *ca_file;
43         char            *dh_file;
44         char            *rsa_file;
45         int             rsa_key;
46         int             dh_key;
47         int             rsa_key_length;
48         int             dh_key_length;
49         int             verify_depth;
50         int             file_type;
51         int             include_length;
52
53         /*
54          *      Always < 4096 (due to radius limit), 0 by default = 2048
55          */
56         int             fragment_size;
57         int             check_crl;
58         char            *check_cert_cn;
59         char            *cipher_list;
60         char            *check_cert_issuer;
61 } EAP_TLS_CONF;
62
63 /* This structure gets stored in arg */
64 typedef struct _eap_tls_t {
65         EAP_TLS_CONF    *conf;
66         SSL_CTX         *ctx;
67 } eap_tls_t;
68
69
70 #endif /* _RLM_EAP_TLS_H */