Version bump to 5.9.4dr2
[strongswan.git] / src / libcharon / attributes / attributes.c
1 /*
2 * Copyright (C) 2005-2006 Martin Willi
3 * Copyright (C) 2005 Jan Hutter
4 * HSR 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, INTERNAL_DNSSEC_TA,
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 "P_CSCF_IP4_ADDRESS",
41 "P_CSCF_IP6_ADDRESS",
42 "FTT_KAT",
43 "EXT_SRC_IP4_NAT_INFO",
44 "TIMEOUT_PERIOD_FOR_DPD",
45 "INTERNAL_DNS_DOMAIN",
46 "INTERNAL_DNSSEC_TA");
47 ENUM_NEXT(configuration_attribute_type_names, XAUTH_TYPE, XAUTH_ANSWER, INTERNAL_DNSSEC_TA,
48 "XAUTH_TYPE",
49 "XAUTH_USER_NAME",
50 "XAUTH_USER_PASSWORD",
51 "XAUTH_PASSCODE",
52 "XAUTH_MESSAGE",
53 "XAUTH_CHALLENGE",
54 "XAUTH_DOMAIN",
55 "XAUTH_STATUS",
56 "XAUTH_NEXT_PIN",
57 "XAUTH_ANSWER");
58 ENUM_NEXT(configuration_attribute_type_names, INTERNAL_IP4_SERVER, INTERNAL_IP6_SERVER, XAUTH_ANSWER,
59 "INTERNAL_IP4_SERVER",
60 "INTERNAL_IP6_SERVER");
61 ENUM_NEXT(configuration_attribute_type_names, UNITY_BANNER, UNITY_DDNS_HOSTNAME, INTERNAL_IP6_SERVER,
62 "UNITY_BANNER",
63 "UNITY_SAVE_PASSWD",
64 "UNITY_DEF_DOMAIN",
65 "UNITY_SPLITDNS_NAME",
66 "UNITY_SPLIT_INCLUDE",
67 "UNITY_NATT_PORT",
68 "UNITY_LOCAL_LAN",
69 "UNITY_PFS",
70 "UNITY_FW_TYPE",
71 "UNITY_BACKUP_SERVERS",
72 "UNITY_DDNS_HOSTNAME");
73 ENUM_END(configuration_attribute_type_names, UNITY_DDNS_HOSTNAME);
74
75 ENUM_BEGIN(configuration_attribute_type_short_names, INTERNAL_IP4_ADDRESS, INTERNAL_DNSSEC_TA,
76 "ADDR",
77 "MASK",
78 "DNS",
79 "NBNS",
80 "EXP",
81 "DHCP",
82 "VER",
83 "ADDR6",
84 "MASK6",
85 "DNS6",
86 "NBNS6",
87 "DHCP6",
88 "SUBNET",
89 "SUP",
90 "SUBNET6",
91 "MIP6HPFX",
92 "LINK6",
93 "PFX6",
94 "HOA",
95 "PCSCF4",
96 "PCSCF6",
97 "FTTKAT",
98 "EXTSRC4",
99 "DPD",
100 "DOMAIN",
101 "TA");
102 ENUM_NEXT(configuration_attribute_type_short_names, XAUTH_TYPE, XAUTH_ANSWER, INTERNAL_DNSSEC_TA,
103 "X_TYPE",
104 "X_USER",
105 "X_PWD",
106 "X_CODE",
107 "X_MSG",
108 "X_CHALL",
109 "X_DOMAIN",
110 "X_STATUS",
111 "X_PIN",
112 "X_ANSWER");
113 ENUM_NEXT(configuration_attribute_type_short_names, INTERNAL_IP4_SERVER, INTERNAL_IP6_SERVER, XAUTH_ANSWER,
114 "SRV",
115 "SRV6");
116 ENUM_NEXT(configuration_attribute_type_short_names, UNITY_BANNER, UNITY_DDNS_HOSTNAME, INTERNAL_IP6_SERVER,
117 "U_BANNER",
118 "U_SAVEPWD",
119 "U_DEFDOM",
120 "U_SPLITDNS",
121 "U_SPLITINC",
122 "U_NATTPORT",
123 "U_LOCALLAN",
124 "U_PFS",
125 "U_FWTYPE",
126 "U_BKPSRV",
127 "U_DDNSHOST");
128 ENUM_END(configuration_attribute_type_short_names, UNITY_DDNS_HOSTNAME);