updated todo list
[vpnc.git] / config.h
blobfcb4e1101cea47c9645efd2120b69fe5d8728ee2
1 /* IPSec VPN client compatible with Cisco equipment.
2 Copyright (C) 2004 Maurice Massar
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 #ifndef __CONFIG_H__
20 #define __CONFIG_H__
22 #include <unistd.h>
24 enum config_enum {
25 CONFIG_NONE,
26 CONFIG_CONFIG_SCRIPT,
27 CONFIG_DEBUG,
28 CONFIG_DOMAIN,
29 CONFIG_ENABLE_1DES,
30 CONFIG_ND,
31 CONFIG_NON_INTERACTIVE,
32 CONFIG_PID_FILE,
33 CONFIG_LOCAL_PORT,
34 CONFIG_VERSION,
35 CONFIG_IF_NAME,
36 CONFIG_IKE_DH,
37 CONFIG_IPSEC_PFS,
38 CONFIG_IPSEC_GATEWAY,
39 CONFIG_IPSEC_ID,
40 CONFIG_IPSEC_SECRET,
41 CONFIG_XAUTH_USERNAME,
42 CONFIG_XAUTH_PASSWORD,
43 CONFIG_XAUTH_INTERACTIVE,
44 LAST_CONFIG
47 enum hex_dump_enum {
48 UINT8 = -1,
49 UINT16 = -2,
50 UINT32 = -4
53 extern const char *config[LAST_CONFIG];
55 extern int opt_debug;
56 extern int opt_nd;
57 extern int opt_1des;
59 #define DEBUG(lvl, a) do {if (opt_debug >= (lvl)) {a;}} while (0)
61 extern void hex_dump(const char *str, const void *data, ssize_t len);
62 extern void do_config(int argc, char **argv);
64 #endif