]> git.ipfire.org Git - thirdparty/strongswan.git/blame - src/libimcv/tcg/pts/tcg_pts_attr_simple_comp_evid.h
Update copyright headers after acquisition by secunet
[thirdparty/strongswan.git] / src / libimcv / tcg / pts / tcg_pts_attr_simple_comp_evid.h
CommitLineData
b38d9d5a
AS
1/*
2 * Copyright (C) 2011 Sansar Choinyambuu
e77df5a1 3 * Copyright (C) 2014 Andreas Steffen
19ef2aec
TB
4 *
5 * Copyright (C) secunet Security Networks AG
b38d9d5a
AS
6 *
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by the
9 * Free Software Foundation; either version 2 of the License, or (at your
10 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
11 *
12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15 * for more details.
16 */
17
18/**
19 * @defgroup tcg_pts_attr_simple_comp_evid tcg_pts_attr_simple_comp_evid
20 * @{ @ingroup tcg_attr
21 */
22
23#ifndef TCG_PTS_ATTR_SIMPLE_COMP_EVID_H_
24#define TCG_PTS_ATTR_SIMPLE_COMP_EVID_H_
25
26typedef struct tcg_pts_attr_simple_comp_evid_t tcg_pts_attr_simple_comp_evid_t;
27
28#include "tcg/tcg_attr.h"
29#include "pts/components/pts_comp_evidence.h"
30#include "pa_tnc/pa_tnc_attr.h"
31
32/**
33 * Class implementing the TCG PTS Simple Component Evidence attribute
34 *
35 */
36struct tcg_pts_attr_simple_comp_evid_t {
37
38 /**
39 * Public PA-TNC attribute interface
40 */
41 pa_tnc_attr_t pa_tnc_attribute;
42
43 /**
44 * Get Component Evidence
45 *
46 * @return Component Evidence
47 */
48 pts_comp_evidence_t* (*get_comp_evidence)(tcg_pts_attr_simple_comp_evid_t *this);
49
50};
51
52/**
53 * Creates an tcg_pts_attr_simple_comp_evid_t object
54 *
55 * @param evid Component Evidence
56 */
57pa_tnc_attr_t* tcg_pts_attr_simple_comp_evid_create(pts_comp_evidence_t *evid);
58
59/**
60 * Creates an tcg_pts_attr_simple_comp_evid_t object from received data
61 *
e77df5a1
AS
62 * @param length Total length of attribute value
63 * @param value Unparsed attribute value (might be a segment)
b38d9d5a 64 */
e77df5a1
AS
65pa_tnc_attr_t* tcg_pts_attr_simple_comp_evid_create_from_data(size_t length,
66 chunk_t value);
b38d9d5a
AS
67
68#endif /** TCG_PTS_ATTR_SIMPLE_COMP_EVID_H_ @}*/