]> git.ipfire.org Git - thirdparty/strongswan.git/blob - src/libimcv/plugins/imv_attestation/imv_attestation_process.h
Update copyright headers after acquisition by secunet
[thirdparty/strongswan.git] / src / libimcv / plugins / imv_attestation / imv_attestation_process.h
1 /*
2 * Copyright (C) 2011 Sansar Choinyambuu
3 *
4 * Copyright (C) secunet Security Networks AG
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation; either version 2 of the License, or (at your
9 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
10 *
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * for more details.
15 */
16
17 /**
18 * @defgroup imv_attestation_process_t imv_attestation_process
19 * @{ @ingroup imv_attestation
20 */
21
22 #ifndef IMV_ATTESTATION_PROCESS_H_
23 #define IMV_ATTESTATION_PROCESS_H_
24
25 #include "imv_attestation_state.h"
26
27 #include <library.h>
28 #include <collections/linked_list.h>
29 #include <credentials/credential_manager.h>
30 #include <crypto/hashers/hasher.h>
31
32 #include <imv/imv_msg.h>
33 #include <pa_tnc/pa_tnc_attr.h>
34
35 #include <pts/pts_database.h>
36 #include <pts/pts_dh_group.h>
37 #include <pts/pts_meas_algo.h>
38
39 /**
40 * Process a TCG PTS attribute
41 *
42 * @param attr PA-TNC attribute to be processed
43 * @param out_msg PA-TNC message containing error messages
44 * @param state state of a given connection
45 * @param supported_algorithms supported PTS measurement algorithms
46 * @param supported_dh_groups supported DH groups
47 * @param pts_db PTS configuration database
48 * @param pts_credmgr PTS credential manager
49 * @return TRUE if successful
50 */
51 bool imv_attestation_process(pa_tnc_attr_t *attr, imv_msg_t *out_msg,
52 imv_state_t *state,
53 pts_meas_algorithms_t supported_algorithms,
54 pts_dh_group_t supported_dh_groups,
55 pts_database_t *pts_db,
56 credential_manager_t *pts_credmgr);
57
58 #endif /** IMV_ATTESTATION_PROCESS_H_ @}*/