2 * Copyright (C) 2011 Sansar Choinyambuu
3 * HSR Hochschule fuer Technik Rapperswil
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>.
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
17 * @defgroup pts_ita_comp_func_name pts_ita_comp_func_name
21 #ifndef PTS_ITA_COMP_FUNC_NAME_H_
22 #define PTS_ITA_COMP_FUNC_NAME_H_
24 typedef enum pts_ita_qualifier_type_t pts_ita_qualifier_type_t
;
25 typedef enum pts_ita_comp_func_name_t pts_ita_comp_func_name_t
;
30 * PTS Component Functional Name Qualifier Flags for the ITA namespace
32 #define PTS_ITA_QUALIFIER_FLAG_KERNEL (1<<5)
33 #define PTS_ITA_QUALIFIER_FLAG_SUB (1<<4)
35 extern char pts_ita_qualifier_flag_names
[];
38 * Size of the PTS Component Functional Name Qualifier Type field
40 #define PTS_ITA_QUALIFIER_TYPE_SIZE 4
43 * PTS Component Functional Name Qualifier Types for the ITA namespace
44 * equal to section 5.2 of PTS Protocol: Binding to TNC IF-M Specification
46 enum pts_ita_qualifier_type_t
{
48 PTS_ITA_QUALIFIER_TYPE_UNKNOWN
= 0x0,
49 /** Trusted Platform */
50 PTS_ITA_QUALIFIER_TYPE_TRUSTED
= 0x1,
51 /** Operating System */
52 PTS_ITA_QUALIFIER_TYPE_OS
= 0x2,
53 /** Graphical User Interface */
54 PTS_ITA_QUALIFIER_TYPE_GUI
= 0x3,
56 PTS_ITA_QUALIFIER_TYPE_APP
= 0x4,
58 PTS_ITA_QUALIFIER_TYPE_NET
= 0x5,
60 PTS_ITA_QUALIFIER_TYPE_LIB
= 0x6,
61 /** TNC Defined Component */
62 PTS_ITA_QUALIFIER_TYPE_TNC
= 0x7,
63 /** All Matching Components */
64 PTS_ITA_QUALIFIER_TYPE_ALL
= 0xF,
67 extern enum_name_t
*pts_ita_qualifier_type_names
;
70 * PTS Component Functional Name Binary Enumeration for the ITA namespace
72 enum pts_ita_comp_func_name_t
{
74 PTS_ITA_COMP_FUNC_NAME_IGNORE
= 0x0000,
75 /** Trusted GRUB Boot Loader */
76 PTS_ITA_COMP_FUNC_NAME_TGRUB
= 0x0001,
78 PTS_ITA_COMP_FUNC_NAME_TBOOT
= 0x0002,
79 /** Linux Integrity Measurement Architecture */
80 PTS_ITA_COMP_FUNC_NAME_IMA
= 0x0003,
83 extern enum_name_t
*pts_ita_comp_func_names
;
85 #endif /** PTS_ITA_COMP_FUNC_NAME_H_ @}*/