read PDP server name from strongswan.conf
[strongswan.git] / src / libimcv / ietf / ietf_attr.h
1 /*
2 * Copyright (C) 2011 Andreas Steffen
3 * HSR Hochschule fuer Technik Rapperswil
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License as published by the
7 * Free Software Foundation; either version 2 of the License, or (at your
8 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
9 *
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13 * for more details.
14 */
15
16 /**
17 * @defgroup ietf_attrt ietf_attr
18 * @{ @ingroup ietf_attr
19 */
20
21 #ifndef IETF_ATTR_H_
22 #define IETF_ATTR_H_
23
24 #include "pa_tnc/pa_tnc_attr.h"
25
26 #include <library.h>
27
28 typedef enum ietf_attr_t ietf_attr_t;
29
30 /**
31 * IETF standard PA-TNC attribute types defined by RFC 5792
32 */
33 enum ietf_attr_t {
34 IETF_ATTR_TESTING = 0,
35 IETF_ATTR_ATTRIBUTE_REQUEST = 1,
36 IETF_ATTR_PRODUCT_INFORMATION = 2,
37 IETF_ATTR_NUMERIC_VERSION = 3,
38 IETF_ATTR_STRING_VERSION = 4,
39 IETF_ATTR_OPERATIONAL_STATUS = 5,
40 IETF_ATTR_PORT_FILTER = 6,
41 IETF_ATTR_INSTALLED_PACKAGES = 7,
42 IETF_ATTR_PA_TNC_ERROR = 8,
43 IETF_ATTR_ASSESSMENT_RESULT = 9,
44 IETF_ATTR_REMEDIATION_INSTRUCTIONS = 10,
45 IETF_ATTR_FORWARDING_ENABLED = 11,
46 IETF_ATTR_FACTORY_DEFAULT_PWD_ENABLED = 12,
47 IETF_ATTR_RESERVED = 0xffffffff,
48 };
49
50 /**
51 * enum name for ietf_attr_t.
52 */
53 extern enum_name_t *ietf_attr_names;
54
55 /**
56 * Create an IETF PA-TNC attribute from data
57 *
58 * @param type attribute type
59 * @param value attribute value
60 */
61 pa_tnc_attr_t* ietf_attr_create_from_data(u_int32_t type, chunk_t value);
62
63 #endif /** IETF_ATTR_H_ @}*/