Defined PWG HCD PA-TNC subtypes
[strongswan.git] / src / libtncif / tncif_pa_subtypes.h
1 /*
2 * Copyright (C) 2011-2015 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 tncif_pa_subtypes tncif_pa_subtypes
18 * @{ @ingroup libtncif
19 */
20
21 #ifndef TNCIF_PA_SUBTYPES_H_
22 #define TNCIF_PA_SUBTYPES_H_
23
24 typedef enum pa_subtype_ietf_t pa_subtype_ietf_t;
25 typedef enum pa_subtype_tcg_t pa_subtype_tcg_t;
26 typedef enum pa_subtype_pwg_t pa_subtype_pwg_t;
27 typedef enum pa_subtype_fhh_t pa_subtype_fhh_t;
28 typedef enum pa_subtype_ita_t pa_subtype_ita_t;
29
30 #include <library.h>
31 #include <pen/pen.h>
32
33 /**
34 * PA-TNC IETF Standard Subtypes as defined in section 3.5 of RFC 5792
35 */
36 enum pa_subtype_ietf_t {
37 PA_SUBTYPE_IETF_TESTING = 0x00,
38 PA_SUBTYPE_IETF_OPERATING_SYSTEM = 0x01,
39 PA_SUBTYPE_IETF_ANTI_VIRUS = 0x02,
40 PA_SUBTYPE_IETF_ANTI_SPYWARE = 0x03,
41 PA_SUBTYPE_IETF_ANTI_MALWARE = 0x04,
42 PA_SUBTYPE_IETF_FIREWALL = 0x05,
43 PA_SUBTYPE_IETF_IDPS = 0x06,
44 PA_SUBTYPE_IETF_VPN = 0x07,
45 PA_SUBTYPE_IETF_NEA_CLIENT = 0x08,
46 PA_SUBTYPE_IETF_ANY = 0xff
47 };
48
49 /**
50 * enum name for pa_subtype_ietf_t.
51 */
52 extern enum_name_t *pa_subtype_ietf_names;
53
54 /**
55 * PA-TNC TCG Subtypes
56 */
57 enum pa_subtype_tcg_t {
58 PA_SUBTYPE_TCG_PTS = 0x01,
59 PA_SUBTYPE_TCG_SCAP = 0x02,
60 PA_SUBTYPE_TCG_SWID = 0x03,
61 PA_SUBTYPE_TCG_ANY = 0xff
62 };
63
64 /**
65 * enum name for pa_subtype_tcg_t.
66 */
67 extern enum_name_t *pa_subtype_tcg_names;
68
69 /**
70 * PA-TNC PWG Subtypes
71 */
72 enum pa_subtype_pwg_t {
73 PA_SUBTYPE_PWG_HCD_TESTING = 0x00,
74 PA_SUBTYPE_PWG_HCD_OTHER = 0x01,
75 PA_SUBTYPE_PWG_HCD_UNKNOWN = 0x02,
76 PA_SUBTYPE_PWG_HCD_CONSOLE = 0x04,
77 PA_SUBTYPE_PWG_HCD_SYSTEM = 0x05,
78 PA_SUBTYPE_PWG_HCD_COVER = 0x06,
79 PA_SUBTYPE_PWG_HCD_INPUT_TRAY = 0x08,
80 PA_SUBTYPE_PWG_HCD_OUTPUT_TRAY = 0x09,
81 PA_SUBTYPE_PWG_HCD_MARKER = 0x0a,
82 PA_SUBTYPE_PWG_HCD_MEDIA_PATH = 0x0d,
83 PA_SUBTYPE_PWG_HCD_CHANNEL = 0x0e,
84 PA_SUBTYPE_PWG_HCD_INTERPRETER = 0x0f,
85 PA_SUBTYPE_PWG_HCD_FINISHER = 0x1e,
86 PA_SUBTYPE_PWG_HCD_INTERFACE = 0x28,
87 PA_SUBTYPE_PWG_HCD_SCANNER = 0x32,
88 PA_SUBTYPE_PWG_ANY = 0xff
89 };
90
91 /**
92 * enum name for pa_subtype_pwg_t.
93 */
94 extern enum_name_t *pa_subtype_pwg_names;
95
96 /**
97 * PA-TNC FHH Subtypes
98 */
99 enum pa_subtype_fhh_t {
100 PA_SUBTYPE_FHH_HOSTSCANNER = 0x30,
101 PA_SUBTYPE_FHH_DUMMY = 0x31,
102 PA_SUBTYPE_FHH_PLATID = 0x33,
103 PA_SUBTYPE_FHH_ATTESTATION = 0x34,
104 PA_SUBTYPE_FHH_CLAMAV = 0x41,
105 PA_SUBTYPE_FHH_ANY = 0xff
106 };
107
108 /**
109 * enum name for pa_subtype_fhh_t.
110 */
111 extern enum_name_t *pa_subtype_fhh_names;
112
113 /**
114 * PA-TNC ITA-HSR Subtypes
115 */
116 enum pa_subtype_ita_t {
117 PA_SUBTYPE_ITA_TEST = 0x01,
118 PA_SUBTYPE_ITA_ECHO = 0x02,
119 PA_SUBTYPE_ITA_ANY = 0xff
120 };
121
122 /**
123 * enum name for pa_subtype_ita_t.
124 */
125 extern enum_name_t *pa_subtype_ita_names;
126
127 /**
128 * Return the pa_subtype_names for a given PEN
129 *
130 * @param pen Private Enterprise Number (PEN)
131 * @return pa_subtype_names if found, NULL else
132 */
133 extern enum_name_t* get_pa_subtype_names(pen_t pen);
134
135 #endif /** TNCIF_PA_SUBTYPES_H_ @}*/