5d1e9f9ba4b6f51fdc9cf952cc3a917e03296239
[strongswan.git] / src / libcharon / attributes / attributes.h
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 * @defgroup attributes_g attributes
19 * @{ @ingroup attributes
20 */
21
22 #ifndef ATTRIBUTES_H_
23 #define ATTRIBUTES_H_
24
25 typedef enum configuration_attribute_type_t configuration_attribute_type_t;
26
27 #include <utils/utils.h>
28
29 /**
30 * Type of the attribute, as in IKEv2 RFC 3.15.1 or IKEv1 ModeConfig.
31 */
32 enum configuration_attribute_type_t {
33 INTERNAL_IP4_ADDRESS = 1,
34 INTERNAL_IP4_NETMASK = 2,
35 INTERNAL_IP4_DNS = 3,
36 INTERNAL_IP4_NBNS = 4,
37 INTERNAL_ADDRESS_EXPIRY = 5,
38 INTERNAL_IP4_DHCP = 6,
39 APPLICATION_VERSION = 7,
40 INTERNAL_IP6_ADDRESS = 8,
41 INTERNAL_IP6_NETMASK = 9,
42 INTERNAL_IP6_DNS = 10,
43 INTERNAL_IP6_NBNS = 11,
44 INTERNAL_IP6_DHCP = 12,
45 INTERNAL_IP4_SUBNET = 13,
46 SUPPORTED_ATTRIBUTES = 14,
47 INTERNAL_IP6_SUBNET = 15,
48 MIP6_HOME_PREFIX = 16,
49 INTERNAL_IP6_LINK = 17,
50 INTERNAL_IP6_PREFIX = 18,
51 HOME_AGENT_ADDRESS = 19,
52 /* XAUTH attributes */
53 XAUTH_TYPE = 16520,
54 XAUTH_USER_NAME = 16521,
55 XAUTH_USER_PASSWORD = 16522,
56 XAUTH_PASSCODE = 16523,
57 XAUTH_MESSAGE = 16524,
58 XAUTH_CHALLENGE = 16525,
59 XAUTH_DOMAIN = 16526,
60 XAUTH_STATUS = 16527,
61 XAUTH_NEXT_PIN = 16528,
62 XAUTH_ANSWER = 16529,
63 /* proprietary Microsoft attributes */
64 INTERNAL_IP4_SERVER = 23456,
65 INTERNAL_IP6_SERVER = 23457,
66 /* proprietary Cisco Unity attributes */
67 UNITY_BANNER = 28672,
68 UNITY_SAVE_PASSWD = 28673,
69 UNITY_DEF_DOMAIN = 28674,
70 UNITY_SPLITDNS_NAME = 28675,
71 UNITY_SPLIT_INCLUDE = 28676,
72 UNITY_NATT_PORT = 28677,
73 UNITY_LOCAL_LAN = 28678,
74 UNITY_PFS = 28679,
75 UNITY_FW_TYPE = 28680,
76 UNITY_BACKUP_SERVERS = 28681,
77 UNITY_DDNS_HOSTNAME = 28682
78 };
79
80 /**
81 * enum names for configuration_attribute_type_t.
82 */
83 extern enum_name_t *configuration_attribute_type_names;
84
85 /**
86 * Short enum names for configuration_attribute_type_t.
87 */
88 extern enum_name_t *configuration_attribute_type_short_names;
89
90
91 #endif /** ATTRIBUTES_H_ @}*/