Reimplemented mem pool to support multiple leases for a single identity
[strongswan.git] / src / libhydra / 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, INTERNAL_IP6_PREFIX,
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 ENUM_NEXT(configuration_attribute_type_names, XAUTH_TYPE, XAUTH_ANSWER, INTERNAL_IP6_PREFIX,
40 "XAUTH_TYPE",
41 "XAUTH_USER_NAME",
42 "XAUTH_USER_PASSWORD",
43 "XAUTH_PASSCODE",
44 "XAUTH_MESSAGE",
45 "XAUTH_CHALLENGE",
46 "XAUTH_DOMAIN",
47 "XAUTH_STATUS",
48 "XAUTH_NEXT_PIN",
49 "XAUTH_ANSWER");
50 ENUM_NEXT(configuration_attribute_type_names, INTERNAL_IP4_SERVER, INTERNAL_IP6_SERVER, XAUTH_ANSWER,
51 "INTERNAL_IP4_SERVER",
52 "INTERNAL_IP6_SERVER");
53 ENUM_NEXT(configuration_attribute_type_names, UNITY_BANNER, UNITY_DDNS_HOSTNAME, INTERNAL_IP6_SERVER,
54 "UNITY_BANNER",
55 "UNITY_SAVE_PASSWD",
56 "UNITY_DEF_DOMAIN",
57 "UNITY_SPLITDNS_NAME",
58 "UNITY_SPLIT_INCLUDE",
59 "UNITY_NATT_PORT",
60 "UNITY_LOCAL_LAN",
61 "UNITY_PFS",
62 "UNITY_FW_TYPE",
63 "UNITY_BACKUP_SERVERS",
64 "UNITY_DDNS_HOSTNAME");
65 ENUM_END(configuration_attribute_type_names, UNITY_DDNS_HOSTNAME);
66
67 ENUM_BEGIN(configuration_attribute_type_short_names, INTERNAL_IP4_ADDRESS, INTERNAL_IP6_PREFIX,
68 "ADDR",
69 "MASK",
70 "DNS",
71 "NBNS",
72 "EXP",
73 "DHCP",
74 "VER",
75 "ADDR6",
76 "MASK6",
77 "DNS6",
78 "NBNS6",
79 "DHCP6",
80 "SUBNET",
81 "SUPPORTED",
82 "SUBNET6",
83 "MIP6HPFX",
84 "LINK6",
85 "PFX6");
86 ENUM_NEXT(configuration_attribute_type_short_names, XAUTH_TYPE, XAUTH_ANSWER, INTERNAL_IP6_PREFIX,
87 "XAUTH_TYPE",
88 "XAUTH_USER_NAME",
89 "XAUTH_USER_PASSWORD",
90 "XAUTH_PASSCODE",
91 "XAUTH_MESSAGE",
92 "XAUTH_CHALLENGE",
93 "XAUTH_DOMAIN",
94 "XAUTH_STATUS",
95 "XAUTH_NEXT_PIN",
96 "XAUTH_ANSWER");
97 ENUM_NEXT(configuration_attribute_type_short_names, INTERNAL_IP4_SERVER, INTERNAL_IP6_SERVER, XAUTH_ANSWER,
98 "SRV",
99 "SRV6");
100 ENUM_NEXT(configuration_attribute_type_short_names, UNITY_BANNER, UNITY_DDNS_HOSTNAME, INTERNAL_IP6_SERVER,
101 "UNITY_BANNER",
102 "UNITY_SAVE_PASSWD",
103 "UNITY_DEF_DOMAIN",
104 "UNITY_SPLITDNS_NAME",
105 "UNITY_SPLIT_INCLUDE",
106 "UNITY_NATT_PORT",
107 "UNITY_LOCAL_LAN",
108 "UNITY_PFS",
109 "UNITY_FW_TYPE",
110 "UNITY_BACKUP_SERVERS",
111 "UNITY_DDNS_HOSTNAME");
112 ENUM_END(configuration_attribute_type_short_names, UNITY_DDNS_HOSTNAME);