Factored IMC/V Attestation build/process of Component Functional Name
[strongswan.git] / src / libpts / tcg / tcg_pts_attr_req_funct_comp_evid.h
1 /*
2 * Copyright (C) 2011 Sansar Choinyambuu
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_pts_attr_req_funct_comp_evid tcg_pts_attr_req_funct_comp_evid
18 * @{ @ingroup tcg_pts_attr_req_funct_comp_evid
19 */
20
21 #ifndef TCG_PTS_ATTR_REQ_FUNCT_COMP_EVID_H_
22 #define TCG_PTS_ATTR_REQ_FUNCT_COMP_EVID_H_
23
24 typedef struct tcg_pts_attr_req_funct_comp_evid_t tcg_pts_attr_req_funct_comp_evid_t;
25
26 #include "tcg_attr.h"
27 #include "pts/components/pts_comp_func_name.h"
28 #include "pts/pts_funct_comp_evid_req.h"
29 #include "pa_tnc/pa_tnc_attr.h"
30
31 #define PTS_REQ_FUNCT_COMP_FAMILY_MASK 0xC0
32
33 /**
34 * Class implementing the TCG PTS Request Functional Component Evidence attribute
35 *
36 */
37 struct tcg_pts_attr_req_funct_comp_evid_t {
38
39 /**
40 * Public PA-TNC attribute interface
41 */
42 pa_tnc_attr_t pa_tnc_attribute;
43
44 /**
45 * Get PTS Functional Component Evidence Requests
46 *
47 * @return PTS Functional Component Evidence Requests
48 */
49 pts_funct_comp_evid_req_t* (*get_requests)(tcg_pts_attr_req_funct_comp_evid_t *this);
50
51 };
52
53 /**
54 * Creates an tcg_pts_attr_req_funct_comp_evid_t object
55 *
56 * @param requests Linked list of PTS Functional Component Evidence Requests
57 */
58 pa_tnc_attr_t* tcg_pts_attr_req_funct_comp_evid_create(pts_funct_comp_evid_req_t *requests);
59
60 /**
61 * Creates an tcg_pts_attr_req_funct_comp_evid_t object from received data
62 *
63 * @param value Unparsed attribute value
64 */
65 pa_tnc_attr_t* tcg_pts_attr_req_funct_comp_evid_create_from_data(chunk_t value);
66
67 #endif /** TCG_PTS_ATTR_REQ_FUNCT_COMP_EVID_H_ @}*/