]> git.ipfire.org Git - thirdparty/strongswan.git/blame - src/libimcv/plugins/imc_attestation/imc_attestation_process.h
Update copyright headers after acquisition by secunet
[thirdparty/strongswan.git] / src / libimcv / plugins / imc_attestation / imc_attestation_process.h
CommitLineData
325704e1
AS
1/*
2 * Copyright (C) 2011 Sansar Choinyambuu
19ef2aec
TB
3 *
4 * Copyright (C) secunet Security Networks AG
325704e1
AS
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/**
325704e1 18 * @defgroup imc_attestation_process_t imc_attestation_process
11adf114 19 * @{ @ingroup imc_attestation
325704e1
AS
20 */
21
22#ifndef IMC_ATTESTATION_PROCESS_H_
23#define IMC_ATTESTATION_PROCESS_H_
24
25#include "imc_attestation_state.h"
26
27#include <library.h>
325704e1 28
f8a70254 29#include <imc/imc_msg.h>
325704e1
AS
30#include <pa_tnc/pa_tnc_attr.h>
31
32#include <pts/pts_dh_group.h>
33#include <pts/pts_meas_algo.h>
34
35/**
36 * Process a TCG PTS attribute
37 *
38 * @param attr PA-TNC attribute to be processed
f8a70254 39 * @param msg outbound PA-TNC message to be assembled
325704e1
AS
40 * @param attestation_state attestation state of a given connection
41 * @param supported_algorithms supported PTS measurement algorithms
42 * @param supported_dh_groups supported DH groups
325704e1
AS
43 * @return TRUE if successful
44 */
f8a70254 45bool imc_attestation_process(pa_tnc_attr_t *attr, imc_msg_t *msg,
325704e1
AS
46 imc_attestation_state_t *attestation_state,
47 pts_meas_algorithms_t supported_algorithms,
cb3ecd5a 48 pts_dh_group_t supported_dh_groups);
325704e1
AS
49
50#endif /** IMC_ATTESTATION_PROCESS_H_ @}*/