Annotation of embedaddon/strongswan/src/libimcv/tcg/tcg_attr.h, revision 1.1.1.1
1.1 misho 1: /*
2: * Copyright (C) 2011-2014 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 tcg_attr tcg_attr
18: * @{ @ingroup libimcv
19: */
20:
21: #ifndef TCG_ATTR_H_
22: #define TCG_ATTR_H_
23:
24: #include <pa_tnc/pa_tnc_attr.h>
25: #include <library.h>
26:
27: typedef enum tcg_attr_t tcg_attr_t;
28:
29: /**
30: * TCG PTS IF-M Attributes (section 4 of PTS PROTO: Binding to TNC IF-M)
31: */
32: enum tcg_attr_t {
33:
34: /* SCAP Attributes */
35: TCG_SCAP_REFERENCES = 0x00000001,
36: TCG_SCAP_CAPS_AND_INVENTORY = 0x00000002,
37: TCG_SCAP_CONTENT = 0x00000003,
38: TCG_SCAP_ASSESSMENT = 0x00000004,
39: TCG_SCAP_RESULTS = 0x00000005,
40: TCG_SCAP_SUMMARY_RESULTS = 0x00000006,
41:
42: /* SWID Attributes */
43: TCG_SWID_REQUEST = 0x00000011,
44: TCG_SWID_TAG_ID_INVENTORY = 0x00000012,
45: TCG_SWID_TAG_ID_EVENTS = 0x00000013,
46: TCG_SWID_TAG_INVENTORY = 0x00000014,
47: TCG_SWID_TAG_EVENTS = 0x00000015,
48: TCG_SWID_SUBSCRIPTION_STATUS_REQ = 0x00000016,
49: TCG_SWID_SUBSCRIPTION_STATUS_RESP = 0x00000017,
50:
51: /* IF-M Attribute Segmentation */
52: TCG_SEG_MAX_ATTR_SIZE_REQ = 0x00000021,
53: TCG_SEG_MAX_ATTR_SIZE_RESP = 0x00000022,
54: TCG_SEG_ATTR_SEG_ENV = 0x00000023,
55: TCG_SEG_NEXT_SEG_REQ = 0x00000024,
56: TCG_SEG_CANCEL_SEG_EXCH = 0x00000025,
57:
58: /* PTS Protocol Negotiations */
59: TCG_PTS_REQ_PROTO_CAPS = 0x01000000,
60: TCG_PTS_PROTO_CAPS = 0x02000000,
61: TCG_PTS_DH_NONCE_PARAMS_REQ = 0x03000000,
62: TCG_PTS_DH_NONCE_PARAMS_RESP = 0x04000000,
63: TCG_PTS_DH_NONCE_FINISH = 0x05000000,
64: TCG_PTS_MEAS_ALGO = 0x06000000,
65: TCG_PTS_MEAS_ALGO_SELECTION = 0x07000000,
66: TCG_PTS_GET_TPM_VERSION_INFO = 0x08000000,
67: TCG_PTS_TPM_VERSION_INFO = 0x09000000,
68: TCG_PTS_REQ_TEMPL_REF_MANI_SET_META = 0x0A000000,
69: TCG_PTS_TEMPL_REF_MANI_SET_META = 0x0B000000,
70: TCG_PTS_UPDATE_TEMPL_REF_MANI = 0x0C000000,
71: TCG_PTS_GET_AIK = 0x0D000000,
72: TCG_PTS_AIK = 0x0E000000,
73:
74: /* PTS-based Attestation Evidence */
75: TCG_PTS_REQ_FUNC_COMP_EVID = 0x00100000,
76: TCG_PTS_GEN_ATTEST_EVID = 0x00200000,
77: TCG_PTS_SIMPLE_COMP_EVID = 0x00300000,
78: TCG_PTS_SIMPLE_EVID_FINAL = 0x00400000,
79: TCG_PTS_VERIFICATION_RESULT = 0x00500000,
80: TCG_PTS_INTEG_REPORT = 0x00600000,
81: TCG_PTS_REQ_FILE_META = 0x00700000,
82: TCG_PTS_WIN_FILE_META = 0x00800000,
83: TCG_PTS_UNIX_FILE_META = 0x00900000,
84: TCG_PTS_REQ_REGISTRY_VALUE = 0x00A00000,
85: TCG_PTS_REGISTRY_VALUE = 0x00B00000,
86: TCG_PTS_REQ_FILE_MEAS = 0x00C00000,
87: TCG_PTS_FILE_MEAS = 0x00D00000,
88: TCG_PTS_REQ_INTEG_MEAS_LOG = 0x00E00000,
89: TCG_PTS_INTEG_MEAS_LOG = 0x00F00000,
90: };
91:
92: /**
93: * enum name for tcg_attr_t.
94: */
95: extern enum_name_t *tcg_attr_names;
96:
97: /**
98: * Create a TCG PA-TNC attribute from data
99: *
100: * @param type attribute type
101: * @param length attribute length
102: * @param value attribute value or segment
103: */
104: pa_tnc_attr_t* tcg_attr_create_from_data(uint32_t type, size_t length,
105: chunk_t value);
106:
107: #endif /** TCG_ATTR_H_ @}*/
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>