4abab6b03ecd3ed0e368cd960b579c16a216eb01
[freeradius.git] / src / modules / rlm_eap / types / rlm_eap_ikev2 / ike_conf.h
1 /*
2  *  ike_conf.h - module config loading functions
3  *
4  *  This file is part of rlm_eap_ikev2 freeRADIUS module which implements
5  *  EAP-IKEv2 protocol functionality.
6  *
7  *  This program is free software; you can redistribute it and/or modify
8  *  it under the terms of the GNU General Public License as published by
9  *  the Free Software Foundation; either version 2 of the License, or
10  *  (at your option) any later version.
11  *
12  *  This program is distributed in the hope that it will be useful,
13  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  *  GNU General Public License for more details.
16  *
17  *  You should have received a copy of the GNU General Public License
18  *  along with this program; if not, write to the Free Software
19  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
20  *
21  *  Copyright (C) 2005-2006 Krzysztof Rzecki <krzysztof.rzecki@ccns.pl>      
22  *  Copyright (C) 2005-2006 Rafal Mijal <rafal.mijal@ccns.pl>                
23  *  Copyright (C) 2005-2006 Piotr Marnik <piotr.marnik@ccns.pl>              
24  *  Copyright (C) 2005-2006 Pawel Matejski <pawel.matejski@ccns.pl>          
25  * 
26  */
27
28 #ifndef IKE_CONF_H
29 #define IKE_CONF_H
30
31 #include <EAPIKEv2/connector.h>
32 #include "eap.h"
33
34 #define RAD_EAP_IKEV2_IDTYPE            1900
35 #define RAD_EAP_IKEV2_ID                1901
36 #define RAD_EAP_IKEV2_SECRET            1902
37 #define RAD_EAP_IKEV2_AUTHTYPE          1903
38
39
40 int rad_load_proposals(ikev2_ctx *i2,CONF_SECTION *cf);
41 int rad_load_credentials(ikev2_ctx *i2,char *filename,char *authtype_name);
42 int getusersfile(const char *filename, PAIR_LIST **pair_list,const char *compat_mode_str);
43 void rad_update_shared_seclist(struct sharedSecList **list,char *id,VALUE_PAIR *items,int default_client_authtype);
44 int rad_get_authtype(char *authtype_name);
45 int rad_get_client_authtype(const char *authtype);
46 int file_exists(char *filename);
47 #endif //IKE_CONF_H