2 * ike_conf.h - module config loading functions
4 * This file is part of rlm_eap_ikev2 freeRADIUS module which implements
5 * EAP-IKEv2 protocol functionality.
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.
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.
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
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>
31 #include <EAPIKEv2/connector.h>
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
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);