]> git.ipfire.org Git - thirdparty/strongswan.git/blob - src/libimcv/ietf/ietf_attr.h
Update copyright headers after acquisition by secunet
[thirdparty/strongswan.git] / src / libimcv / ietf / ietf_attr.h
1 /*
2 * Copyright (C) 2011-2018 Andreas Steffen
3 *
4 * Copyright (C) secunet Security Networks AG
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 ietf_attr ietf_attr
19 * @{ @ingroup libimcv
20 */
21
22 #ifndef IETF_ATTR_H_
23 #define IETF_ATTR_H_
24
25 #include "pa_tnc/pa_tnc_attr.h"
26
27 #include <library.h>
28
29 typedef enum ietf_attr_t ietf_attr_t;
30
31 /**
32 * IETF standard PA-TNC attribute types
33 */
34 enum ietf_attr_t {
35
36 /* RFC 5792 PA-TNC */
37 IETF_ATTR_TESTING = 0,
38 IETF_ATTR_ATTRIBUTE_REQUEST = 1,
39 IETF_ATTR_PRODUCT_INFORMATION = 2,
40 IETF_ATTR_NUMERIC_VERSION = 3,
41 IETF_ATTR_STRING_VERSION = 4,
42 IETF_ATTR_OPERATIONAL_STATUS = 5,
43 IETF_ATTR_PORT_FILTER = 6,
44 IETF_ATTR_INSTALLED_PACKAGES = 7,
45 IETF_ATTR_PA_TNC_ERROR = 8,
46 IETF_ATTR_ASSESSMENT_RESULT = 9,
47 IETF_ATTR_REMEDIATION_INSTRUCTIONS = 10,
48 IETF_ATTR_FORWARDING_ENABLED = 11,
49 IETF_ATTR_FACTORY_DEFAULT_PWD_ENABLED = 12,
50
51 /* RFC 8412 SWIMA */
52 IETF_ATTR_SWIMA_REQUEST = 13,
53 IETF_ATTR_SW_ID_INVENTORY = 14,
54 IETF_ATTR_SW_ID_EVENTS = 15,
55 IETF_ATTR_SW_INVENTORY = 16,
56 IETF_ATTR_SW_EVENTS = 17,
57 IETF_ATTR_SUBSCRIPTION_STATUS_REQ = 18,
58 IETF_ATTR_SUBSCRIPTION_STATUS_RESP = 19,
59 IETF_ATTR_SRC_METADATA_REQ = 20,
60 IETF_ATTR_SRC_METADATA_RESP = 21,
61
62 IETF_ATTR_RESERVED = 0xffffffff,
63 };
64
65 /**
66 * enum name for ietf_attr_t.
67 */
68 extern enum_name_t *ietf_attr_names;
69
70 /**
71 * Create an IETF PA-TNC attribute from data
72 *
73 * @param type attribute type
74 * @param length attribute length
75 * @param value attribute value or segment
76 */
77 pa_tnc_attr_t* ietf_attr_create_from_data(uint32_t type, size_t length,
78 chunk_t value);
79
80 #endif /** IETF_ATTR_H_ @}*/