2 * Copyright (C) 2011 Sansar Choinyambuu
3 * HSR Hochschule fuer Technik Rapperswil
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>.
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
18 * @defgroup imc_attestation_state_t imc_attestation_state
19 * @{ @ingroup imc_attestation_state
22 #ifndef IMC_ATTESTATION_STATE_H_
23 #define IMC_ATTESTATION_STATE_H_
25 #include <imc/imc_state.h>
27 #include <pts/components/pts_comp_evidence.h>
30 typedef struct imc_attestation_state_t imc_attestation_state_t
;
33 * Internal state of an imc_attestation_t connection instance
35 struct imc_attestation_state_t
{
38 * imc_state_t interface
40 imc_state_t interface
;
47 pts_t
* (*get_pts
)(imc_attestation_state_t
*this);
50 * Add an entry to the Component Evidence list
52 * @param entry Component Evidence entry
54 void (*add_evidence
)(imc_attestation_state_t
*this, pts_comp_evidence_t
*entry
);
57 * Get the number of entries in the Component Evidence list
59 * @return number of Component Evidence entries
61 int (*get_evid_count
)(imc_attestation_state_t
*this);
64 * Removes next Component Evidence entry from list and returns it
66 * @return Next Component Evidence entry
68 pts_comp_evidence_t
* (*next_evidence
)(imc_attestation_state_t
*this);
73 * Create an imc_attestation_state_t instance
75 * @param id connection ID
77 imc_state_t
* imc_attestation_state_create(TNC_ConnectionID id
);
79 #endif /** IMC_ATTESTATION_STATE_H_ @}*/