output all known PA-TNC subtype names
[strongswan.git] / src / libtncif / tncif_pa_subtypes.c
1 /*
2 * Copyright (C) 2010-2011 Andreas Steffen
3 *
4 * HSR 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 #include "tncif_pa_subtypes.h"
18
19 ENUM(ietf_pa_subtype_names, PA_SUBTYPE_IETF_TESTING, PA_SUBTYPE_IETF_NEA_CLIENT,
20 "Testing",
21 "Operating System",
22 "Anti-Virus",
23 "Anti-Spyware",
24 "Anti-Malware",
25 "Firewall",
26 "IDPS",
27 "VPN",
28 "NEA Client"
29 );
30
31 ENUM(pa_subtype_tcg_names, PA_SUBTYPE_TCG_PTS, PA_SUBTYPE_TCG_PTS,
32 "PTS"
33 );
34
35 ENUM_BEGIN(pa_subtype_fhh_names, PA_SUBTYPE_FHH_HOSTSCANNER, PA_SUBTYPE_FHH_DUMMY,
36 "HostScanner",
37 "Dummy"
38 );
39 ENUM_NEXT(pa_subtype_fhh_names, PA_SUBTYPE_FHH_PLATID, PA_SUBTYPE_FHH_ATTESTATION,
40 PA_SUBTYPE_FHH_DUMMY,
41 "PlatformID",
42 "Attestation"
43 );
44 ENUM_NEXT(pa_subtype_fhh_names, PA_SUBTYPE_FHH_CLAMAV, PA_SUBTYPE_FHH_CLAMAV,
45 PA_SUBTYPE_FHH_ATTESTATION,
46 "ClamAV"
47 );
48 ENUM_END(pa_subtype_fhh_names, PA_SUBTYPE_FHH_CLAMAV);
49
50 ENUM(pa_subtype_ita_names, PA_SUBTYPE_ITA_TEST, PA_SUBTYPE_ITA_TEST,
51 "Test"
52 );
53
54 /**
55 * See header
56 */
57 enum_name_t* get_pa_subtype_names(pen_t pen)
58 {
59 switch (pen)
60 {
61 case PEN_IETF:
62 return pa_subtype_ita_names;
63 case PEN_TCG:
64 return pa_subtype_tcg_names;
65 case PEN_FHH:
66 return pa_subtype_fhh_names;
67 case PEN_ITA:
68 return pa_subtype_ita_names;
69 default:
70 break;
71 }
72 return NULL;
73 }