]> git.ipfire.org Git - thirdparty/strongswan.git/blame - src/libimcv/tcg/pts/tcg_pts_attr_meas_algo.h
Update copyright headers after acquisition by secunet
[thirdparty/strongswan.git] / src / libimcv / tcg / pts / tcg_pts_attr_meas_algo.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_meas_algo tcg_pts_attr_meas_algo
20 * @{ @ingroup tcg_attr
21 */
22
23#ifndef TCG_PTS_ATTR_MEAS_ALGO_H_
24#define TCG_PTS_ATTR_MEAS_ALGO_H_
25
26typedef struct tcg_pts_attr_meas_algo_t tcg_pts_attr_meas_algo_t;
27
28#include "tcg/tcg_attr.h"
29#include "pts/pts_meas_algo.h"
30#include "pa_tnc/pa_tnc_attr.h"
31
32/**
33 * Class implementing the TCG Measurement Algorithm Attribute
34 *
35 */
36struct tcg_pts_attr_meas_algo_t {
37
38 /**
39 * Public PA-TNC attribute interface
40 */
41 pa_tnc_attr_t pa_tnc_attribute;
42
43 /**
44 * Get PTS Measurement Algorithm Set
45 *
46 * @return set of algorithms
47 */
48 pts_meas_algorithms_t (*get_algorithms)(tcg_pts_attr_meas_algo_t *this);
49
50};
51
52/**
53 * Creates an tcg_pts_attr_meas_algo_t object
54 *
55 * @param algorithms set of algorithms
56 * @param selection TRUE if a selection
57 */
58pa_tnc_attr_t* tcg_pts_attr_meas_algo_create(pts_meas_algorithms_t algorithms,
59 bool selection);
60
61/**
62 * Creates an tcg_pts_attr_meas_algo_t object from received data
63 *
e77df5a1
AS
64 * @param length Total length of attribute value
65 * @param value Unparsed attribute value (might be a segment)
b38d9d5a
AS
66 * @param selection TRUE if a selection
67 */
e77df5a1
AS
68pa_tnc_attr_t* tcg_pts_attr_meas_algo_create_from_data(size_t length,
69 chunk_t value,
b38d9d5a
AS
70 bool selection);
71
72#endif /** TCG_PTS_ATTR_MEAS_ALGO_H_ @}*/