- applied patch for charon (this time really)
[strongswan.git] / programs / starter / files.h
1 /* strongSwan file locations
2 * Copyright (C) 2001-2002 Mathieu Lafon - Arkoon Network Security
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License as published by the
6 * Free Software Foundation; either version 2 of the License, or (at your
7 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
8 *
9 * This program is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
11 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * for more details.
13 *
14 * RCSID $Id: files.h,v 1.5 2006/02/04 18:52:58 as Exp $
15 */
16
17 #ifndef _STARTER_FILES_H_
18 #define _STARTER_FILES_H_
19
20 #ifndef DEFAULT_CTLBASE
21 #define DEFAULT_CTLBASE "/var/run/pluto"
22 #endif
23 #define CTL_SUFFIX ".ctl"
24 #define PID_SUFFIX ".pid"
25
26 #define MY_PID_FILE "/var/run/starter.pid"
27
28 #define DEV_RANDOM "/dev/random"
29 #define DEV_URANDOM "/dev/urandom"
30
31 #define PROC_NETKEY "/proc/net/pfkey"
32 #define PROC_IPSECVERSION "/proc/net/ipsec_version"
33 #define PROC_SYSFLAGS "/proc/sys/net/ipsec"
34 #define PROC_MODULES "/proc/modules"
35
36 #define CONFIG_FILE IPSEC_CONFDIR"/ipsec.conf"
37 #define SECRETS_FILE IPSEC_CONFDIR"/ipsec.secrets"
38
39 #define PLUTO_CMD IPSEC_EXECDIR"/pluto"
40 #define PLUTO_CTL_FILE DEFAULT_CTLBASE CTL_SUFFIX
41 #define PLUTO_PID_FILE DEFAULT_CTLBASE PID_SUFFIX
42
43 #ifdef IKEV2
44 #define CHARON_CMD IPSEC_EXECDIR"/charon"
45 #define CHARON_BASE "/var/run/charon"
46 #define CHARON_CTL_FILE CHARON_BASE CTL_SUFFIX
47 #define CHARON_PID_FILE CHARON_BASE PID_SUFFIX
48 #endif /* IKEV2 */
49
50 #define DYNIP_DIR "/var/run/dynip"
51 #define INFO_FILE "/var/run/ipsec.info"
52
53 #endif /* _STARTER_FILES_H_ */
54