From: Sansar Choinyambuu Date: Fri, 30 Sep 2011 12:57:29 +0000 (+0200) Subject: Implemented hasndling of Request Functional Component Evidence and creation of Simple... X-Git-Tag: 4.6.2~251 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0bfdae3b9004e628c3975caeebc35fe107fb14a4;p=thirdparty%2Fstrongswan.git Implemented hasndling of Request Functional Component Evidence and creation of Simple Component Evidences --- diff --git a/src/libimcv/plugins/imc_attestation/imc_attestation.c b/src/libimcv/plugins/imc_attestation/imc_attestation.c index 4d7d800768..0109c29457 100644 --- a/src/libimcv/plugins/imc_attestation/imc_attestation.c +++ b/src/libimcv/plugins/imc_attestation/imc_attestation.c @@ -13,6 +13,8 @@ * for more details. */ +#define _GNU_SOURCE + #include "imc_attestation_state.h" #include "imc_attestation_process.h" @@ -43,6 +45,7 @@ static const char imc_name[] = "Attestation"; #define IMC_VENDOR_ID PEN_TCG #define IMC_SUBTYPE PA_SUBTYPE_TCG_PTS +#define EXTEND_PCR 16 static imc_agent_t *imc_attestation; @@ -73,6 +76,12 @@ static pts_dh_group_t supported_dh_groups = 0; */ static char *responder_nonce = NULL; +/** + * List of buffered Simple Component Evidences + * To be sent on reception of Generate Attestation Evidence attribute + */ +static linked_list_t *evidences = NULL; + /** * see section 3.7.1 of TCG TNC IF-IMC Specification 1.2 */