minor fixes in imc_attestation.c
[strongswan.git] / src / libpts / plugins / imv_attestation / imv_attestation_build.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 *
18 * @defgroup imv_attestation_build_t imv_attestation_build
19 * @{ @ingroup imv_attestation_build
20 */
21
22 #ifndef IMV_ATTESTATION_BUILD_H_
23 #define IMV_ATTESTATION_BUILD_H_
24
25 #include "imv_attestation_state.h"
26
27 #include <pa_tnc/pa_tnc_msg.h>
28 #include <library.h>
29
30 #include <pts/pts_database.h>
31 #include <pts/pts_dh_group.h>
32 #include <pts/pts_meas_algo.h>
33
34 /**
35 * Process a TCG PTS attribute
36 *
37 * @param attr_list list of PA-TNC attriubutes to be built
38 * @param attestation_state attestation state of a given connection
39 * @param supported_algorithms supported PTS measurement algorithms
40 * @param supported_dh_groups supported DH groups
41 * @param pts_db PTS configuration database
42 * @return TRUE if successful
43 */
44 bool imv_attestation_build(linked_list_t *attr_list,
45 imv_attestation_state_t *attestation_state,
46 pts_meas_algorithms_t supported_algorithms,
47 pts_dh_group_t supported_dh_groups,
48 pts_database_t *pts_db);
49
50 #endif /** IMV_ATTESTATION_BUILD_H_ @}*/