From: Andreas Steffen Date: Wed, 19 Mar 2014 19:26:31 +0000 (+0100) Subject: Added TPMRA workitem support for [dummy] Trusted Boot measurements X-Git-Tag: 5.1.3dr1~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0b408faef1878f0b7eb2f9fdc5db28d88553dad1;p=thirdparty%2Fstrongswan.git Added TPMRA workitem support for [dummy] Trusted Boot measurements --- diff --git a/src/libpts/plugins/imv_attestation/imv_attestation_agent.c b/src/libpts/plugins/imv_attestation/imv_attestation_agent.c index 03e82db702..ae2660bae4 100644 --- a/src/libpts/plugins/imv_attestation/imv_attestation_agent.c +++ b/src/libpts/plugins/imv_attestation/imv_attestation_agent.c @@ -482,6 +482,22 @@ METHOD(imv_agent_if_t, batch_ending, TNC_Result, } } + /* do TPM TRUSTED BOOT measurements */ + if (strchr(workitem->get_arg_str(workitem), 'T')) + { + comp_name = pts_comp_func_name_create(PEN_ITA, + PTS_ITA_COMP_FUNC_NAME_TBOOT, + PTS_ITA_QUALIFIER_FLAG_KERNEL | + PTS_ITA_QUALIFIER_TYPE_TRUSTED); + comp = attestation_state->create_component( + attestation_state, comp_name, + 0, this->pts_db); + if (!comp) + { + comp_name->log(comp_name, "unregistered "); + comp_name->destroy(comp_name); + } + } attestation_state->set_handshake_state(attestation_state, IMV_ATTESTATION_STATE_NONCE_REQ); continue;