added ITA Scanner IMC/IMV pair which detects open server ports on TNC clients
[strongswan.git] / src / libtncif / tncif_pa_subtypes.h
1 /*
2 * Copyright (C) 2011 Andreas Steffen, HSR Hochschule fuer Technik Rapperswil
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License as published by the
6 * Free Software Foundation; either version 2 of the License, or (at your
7 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
8 *
9 * This program is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
11 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * for more details.
13 */
14
15 #ifndef TNCIF_PA_SUBTYPES_H_
16 #define TNCIF_PA_SUBTYPES_H_
17
18 typedef enum pa_subtype_ietf_t pa_subtype_ietf_t;
19 typedef enum pa_subtype_tcg_t pa_subtype_tcg_t;
20 typedef enum pa_subtype_fhh_t pa_subtype_fhh_t;
21 typedef enum pa_subtype_ita_t pa_subtype_ita_t;
22
23 #include <library.h>
24 #include <pen/pen.h>
25
26 /**
27 * PA-TNC IETF Standard Subtypes as defined in section 3.5 of RFC 5792
28 */
29 enum pa_subtype_ietf_t {
30 PA_SUBTYPE_IETF_TESTING = 0,
31 PA_SUBTYPE_IETF_OPERATING_SYSTEM = 1,
32 PA_SUBTYPE_IETF_ANTI_VIRUS = 2,
33 PA_SUBTYPE_IETF_ANTI_SPYWARE = 3,
34 PA_SUBTYPE_IETF_ANTI_MALWARE = 4,
35 PA_SUBTYPE_IETF_FIREWALL = 5,
36 PA_SUBTYPE_IETF_IDPS = 6,
37 PA_SUBTYPE_IETF_VPN = 7,
38 PA_SUBTYPE_IETF_NEA_CLIENT = 8
39 };
40
41 /**
42 * enum name for pa_subtype_ietf_t.
43 */
44 extern enum_name_t *pa_subtype_ietf_names;
45
46 /**
47 * PA-TNC TCG Subtypes
48 */
49 enum pa_subtype_tcg_t {
50 PA_SUBTYPE_TCG_PTS = 1
51 };
52
53 /**
54 * enum name for pa_subtype_tcg_t.
55 */
56 extern enum_name_t *pa_subtype_tcg_names;
57
58 /**
59 * PA-TNC FHH Subtypes
60 */
61 enum pa_subtype_fhh_t {
62 PA_SUBTYPE_FHH_HOSTSCANNER = 0x30,
63 PA_SUBTYPE_FHH_DUMMY = 0x31,
64 PA_SUBTYPE_FHH_PLATID = 0x33,
65 PA_SUBTYPE_FHH_ATTESTATION = 0x34,
66 PA_SUBTYPE_FHH_CLAMAV = 0x41
67 };
68
69 /**
70 * enum name for pa_subtype_fhh_t.
71 */
72 extern enum_name_t *pa_subtype_fhh_names;
73
74 /**
75 * PA-TNC ITA-HSR Subtypes
76 */
77 enum pa_subtype_ita_t {
78 PA_SUBTYPE_ITA_TEST = 1,
79 PA_SUBTYPE_ITA_SCANNER = 2
80 };
81
82 /**
83 * enum name for pa_subtype_ita_t.
84 */
85 extern enum_name_t *pa_subtype_ita_names;
86
87 /**
88 * Return the pa_subtype_names for a given PEN
89 *
90 * @param pen Private Enterprise Number (PEN)
91 * @return pa_subtype_names if found, NULL else
92 */
93 extern enum_name_t* get_pa_subtype_names(pen_t pen);
94
95 #endif /** TNCIF_PA_SUBTYPES_H_ @}*/