import from HEAD:
[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., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19  *
20  * Copyright 2001  hereUare Communications, Inc. <raghud@hereuare.com>
21  * Copyright 2003  Alan DeKok <aland@freeradius.org>
22  */
23 #ifndef _RLM_EAP_TLS_H
24 #define _RLM_EAP_TLS_H
25
26 #include "eap_tls.h"
27
28 #include "radiusd.h"
29 #include "modules.h"
30
31 /* configured values goes right here */
32 typedef struct eap_tls_conf {
33         char            *private_key_password;
34         char            *private_key_file;
35         char            *certificate_file;
36         char            *random_file;
37         char            *ca_path;
38         char            *ca_file;
39         char            *dh_file;
40         char            *rsa_file;
41         int             rsa_key;
42         int             dh_key;
43         int             rsa_key_length;
44         int             dh_key_length;
45         int             verify_depth;
46         int             file_type;
47         int             include_length;
48
49         /*
50          *      Always < 4096 (due to radius limit), 0 by default = 2048
51          */
52         int             fragment_size;
53         int             check_crl;
54         char            *check_cert_cn;
55         char            *cipher_list;
56         char            *check_cert_issuer;
57 } EAP_TLS_CONF;
58
59 /* This structure gets stored in arg */
60 typedef struct _eap_tls_t {
61         EAP_TLS_CONF    *conf;
62         SSL_CTX         *ctx;
63 } eap_tls_t;
64
65
66 #endif /* _RLM_EAP_TLS_H */