Wait for the arrival of the TCPG_PTS_DH_NONCE_PARAMS_RESP

This commit is contained in:
Andreas Steffen 2014-05-27 21:15:12 +02:00
parent 3a726816a2
commit 543447cb6b
3 changed files with 9 additions and 2 deletions

View File

@ -62,6 +62,11 @@ bool imv_attestation_build(imv_msg_t *out_msg, imv_state_t *state,
pts_meas_algorithms_t selected_algorithm;
chunk_t initiator_value, initiator_nonce;
if (!(state->get_action_flags(state) & IMV_ATTESTATION_DH_NONCE))
{
break;
}
/* Send DH nonce finish attribute */
selected_algorithm = pts->get_meas_algorithm(pts);
pts->get_my_public_value(pts, &initiator_value, &initiator_nonce);

View File

@ -142,6 +142,7 @@ bool imv_attestation_process(pa_tnc_attr_t *attr, imv_msg_t *out_msg,
{
return FALSE;
}
state->set_action_flags(state, IMV_ATTESTATION_DH_NONCE);
break;
}
case TCG_PTS_TPM_VERSION_INFO:

View File

@ -48,8 +48,9 @@ enum imv_attestation_flag_t {
IMV_ATTESTATION_ATTR_MUST = (1<<3)-1,
IMV_ATTESTATION_ATTR_REQ = (1<<3),
IMV_ATTESTATION_ALGO = (1<<4),
IMV_ATTESTATION_FILE_MEAS = (1<<5),
IMV_ATTESTATION_REC = (1<<6)
IMV_ATTESTATION_DH_NONCE = (1<<5),
IMV_ATTESTATION_FILE_MEAS = (1<<6),
IMV_ATTESTATION_REC = (1<<7)
};
/**