Merge branch 'attr-migrate'
[strongswan.git] / src / libcharon / attributes / attributes.c
1 /*
2 * Copyright (C) 2005-2006 Martin Willi
3 * Copyright (C) 2005 Jan Hutter
4 * Hochschule fuer Technik Rapperswil
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation; either version 2 of the License, or (at your
9 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
10 *
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * for more details.
15 */
16
17
18 #include "attributes.h"
19
20 ENUM_BEGIN(configuration_attribute_type_names, INTERNAL_IP4_ADDRESS, HOME_AGENT_ADDRESS,
21 "INTERNAL_IP4_ADDRESS",
22 "INTERNAL_IP4_NETMASK",
23 "INTERNAL_IP4_DNS",
24 "INTERNAL_IP4_NBNS",
25 "INTERNAL_ADDRESS_EXPIRY",
26 "INTERNAL_IP4_DHCP",
27 "APPLICATION_VERSION",
28 "INTERNAL_IP6_ADDRESS",
29 "INTERNAL_IP6_NETMASK",
30 "INTERNAL_IP6_DNS",
31 "INTERNAL_IP6_NBNS",
32 "INTERNAL_IP6_DHCP",
33 "INTERNAL_IP4_SUBNET",
34 "SUPPORTED_ATTRIBUTES",
35 "INTERNAL_IP6_SUBNET",
36 "MIP6_HOME_PREFIX",
37 "INTERNAL_IP6_LINK",
38 "INTERNAL_IP6_PREFIX",
39 "HOME_AGENT_ADDRESS");
40 ENUM_NEXT(configuration_attribute_type_names, XAUTH_TYPE, XAUTH_ANSWER, HOME_AGENT_ADDRESS,
41 "XAUTH_TYPE",
42 "XAUTH_USER_NAME",
43 "XAUTH_USER_PASSWORD",
44 "XAUTH_PASSCODE",
45 "XAUTH_MESSAGE",
46 "XAUTH_CHALLENGE",
47 "XAUTH_DOMAIN",
48 "XAUTH_STATUS",
49 "XAUTH_NEXT_PIN",
50 "XAUTH_ANSWER");
51 ENUM_NEXT(configuration_attribute_type_names, INTERNAL_IP4_SERVER, INTERNAL_IP6_SERVER, XAUTH_ANSWER,
52 "INTERNAL_IP4_SERVER",
53 "INTERNAL_IP6_SERVER");
54 ENUM_NEXT(configuration_attribute_type_names, UNITY_BANNER, UNITY_DDNS_HOSTNAME, INTERNAL_IP6_SERVER,
55 "UNITY_BANNER",
56 "UNITY_SAVE_PASSWD",
57 "UNITY_DEF_DOMAIN",
58 "UNITY_SPLITDNS_NAME",
59 "UNITY_SPLIT_INCLUDE",
60 "UNITY_NATT_PORT",
61 "UNITY_LOCAL_LAN",
62 "UNITY_PFS",
63 "UNITY_FW_TYPE",
64 "UNITY_BACKUP_SERVERS",
65 "UNITY_DDNS_HOSTNAME");
66 ENUM_END(configuration_attribute_type_names, UNITY_DDNS_HOSTNAME);
67
68 ENUM_BEGIN(configuration_attribute_type_short_names, INTERNAL_IP4_ADDRESS, HOME_AGENT_ADDRESS,
69 "ADDR",
70 "MASK",
71 "DNS",
72 "NBNS",
73 "EXP",
74 "DHCP",
75 "VER",
76 "ADDR6",
77 "MASK6",
78 "DNS6",
79 "NBNS6",
80 "DHCP6",
81 "SUBNET",
82 "SUP",
83 "SUBNET6",
84 "MIP6HPFX",
85 "LINK6",
86 "PFX6",
87 "HOA");
88 ENUM_NEXT(configuration_attribute_type_short_names, XAUTH_TYPE, XAUTH_ANSWER, HOME_AGENT_ADDRESS,
89 "X_TYPE",
90 "X_USER",
91 "X_PWD",
92 "X_CODE",
93 "X_MSG",
94 "X_CHALL",
95 "X_DOMAIN",
96 "X_STATUS",
97 "X_PIN",
98 "X_ANSWER");
99 ENUM_NEXT(configuration_attribute_type_short_names, INTERNAL_IP4_SERVER, INTERNAL_IP6_SERVER, XAUTH_ANSWER,
100 "SRV",
101 "SRV6");
102 ENUM_NEXT(configuration_attribute_type_short_names, UNITY_BANNER, UNITY_DDNS_HOSTNAME, INTERNAL_IP6_SERVER,
103 "U_BANNER",
104 "U_SAVEPWD",
105 "U_DEFDOM",
106 "U_SPLITDNS",
107 "U_SPLITINC",
108 "U_NATTPORT",
109 "U_LOCALLAN",
110 "U_PFS",
111 "U_FWTYPE",
112 "U_BKPSRV",
113 "U_DDNSHOST");
114 ENUM_END(configuration_attribute_type_short_names, UNITY_DDNS_HOSTNAME);