pki: Add pki --signcrl man page
[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 /**
16 * @defgroup tncif_pa_subtypes tncif_pa_subtypes
17 * @{ @ingroup libtncif
18 */
19
20 #ifndef TNCIF_PA_SUBTYPES_H_
21 #define TNCIF_PA_SUBTYPES_H_
22
23 typedef enum pa_subtype_ietf_t pa_subtype_ietf_t;
24 typedef enum pa_subtype_tcg_t pa_subtype_tcg_t;
25 typedef enum pa_subtype_fhh_t pa_subtype_fhh_t;
26 typedef enum pa_subtype_ita_t pa_subtype_ita_t;
27
28 #include <library.h>
29 #include <pen/pen.h>
30
31 /**
32 * PA-TNC IETF Standard Subtypes as defined in section 3.5 of RFC 5792
33 */
34 enum pa_subtype_ietf_t {
35 PA_SUBTYPE_IETF_TESTING = 0x00,
36 PA_SUBTYPE_IETF_OPERATING_SYSTEM = 0x01,
37 PA_SUBTYPE_IETF_ANTI_VIRUS = 0x02,
38 PA_SUBTYPE_IETF_ANTI_SPYWARE = 0x03,
39 PA_SUBTYPE_IETF_ANTI_MALWARE = 0x04,
40 PA_SUBTYPE_IETF_FIREWALL = 0x05,
41 PA_SUBTYPE_IETF_IDPS = 0x06,
42 PA_SUBTYPE_IETF_VPN = 0x07,
43 PA_SUBTYPE_IETF_NEA_CLIENT = 0x08,
44 PA_SUBTYPE_IETF_ANY = 0xff
45 };
46
47 /**
48 * enum name for pa_subtype_ietf_t.
49 */
50 extern enum_name_t *pa_subtype_ietf_names;
51
52 /**
53 * PA-TNC TCG Subtypes
54 */
55 enum pa_subtype_tcg_t {
56 PA_SUBTYPE_TCG_PTS = 0x01,
57 PA_SUBTYPE_TCG_SCAP = 0x02,
58 PA_SUBTYPE_TCG_SWID = 0x03,
59 PA_SUBTYPE_TCG_ANY = 0xff
60 };
61
62 /**
63 * enum name for pa_subtype_tcg_t.
64 */
65 extern enum_name_t *pa_subtype_tcg_names;
66
67 /**
68 * PA-TNC FHH Subtypes
69 */
70 enum pa_subtype_fhh_t {
71 PA_SUBTYPE_FHH_HOSTSCANNER = 0x30,
72 PA_SUBTYPE_FHH_DUMMY = 0x31,
73 PA_SUBTYPE_FHH_PLATID = 0x33,
74 PA_SUBTYPE_FHH_ATTESTATION = 0x34,
75 PA_SUBTYPE_FHH_CLAMAV = 0x41,
76 PA_SUBTYPE_FHH_ANY = 0xff
77 };
78
79 /**
80 * enum name for pa_subtype_fhh_t.
81 */
82 extern enum_name_t *pa_subtype_fhh_names;
83
84 /**
85 * PA-TNC ITA-HSR Subtypes
86 */
87 enum pa_subtype_ita_t {
88 PA_SUBTYPE_ITA_TEST = 0x01,
89 PA_SUBTYPE_ITA_ECHO = 0x02,
90 PA_SUBTYPE_ITA_ANY = 0xff
91 };
92
93 /**
94 * enum name for pa_subtype_ita_t.
95 */
96 extern enum_name_t *pa_subtype_ita_names;
97
98 /**
99 * Return the pa_subtype_names for a given PEN
100 *
101 * @param pen Private Enterprise Number (PEN)
102 * @return pa_subtype_names if found, NULL else
103 */
104 extern enum_name_t* get_pa_subtype_names(pen_t pen);
105
106 #endif /** TNCIF_PA_SUBTYPES_H_ @}*/