Register the reception of the AIK attribute
This commit is contained in:
parent
4f5b435fe9
commit
95e1524a64
|
@ -98,6 +98,11 @@ bool imv_attestation_build(imv_msg_t *out_msg, imv_state_t *state,
|
|||
uint32_t depth;
|
||||
bool first_component = TRUE;
|
||||
|
||||
if (!(state->get_action_flags(state) & IMV_ATTESTATION_AIK))
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
attestation_state->set_handshake_state(attestation_state,
|
||||
IMV_ATTESTATION_STATE_END);
|
||||
|
||||
|
|
|
@ -218,6 +218,7 @@ bool imv_attestation_process(pa_tnc_attr_t *attr, imv_msg_t *out_msg,
|
|||
}
|
||||
session->get_session_id(session, NULL, &aik_id);
|
||||
pts->set_aik(pts, aik, aik_id);
|
||||
state->set_action_flags(state, IMV_ATTESTATION_AIK);
|
||||
break;
|
||||
}
|
||||
case TCG_PTS_FILE_MEAS:
|
||||
|
|
|
@ -49,8 +49,9 @@ enum imv_attestation_flag_t {
|
|||
IMV_ATTESTATION_ATTR_REQ = (1<<3),
|
||||
IMV_ATTESTATION_ALGO = (1<<4),
|
||||
IMV_ATTESTATION_DH_NONCE = (1<<5),
|
||||
IMV_ATTESTATION_FILE_MEAS = (1<<6),
|
||||
IMV_ATTESTATION_REC = (1<<7)
|
||||
IMV_ATTESTATION_AIK = (1<<6),
|
||||
IMV_ATTESTATION_FILE_MEAS = (1<<7),
|
||||
IMV_ATTESTATION_REC = (1<<8)
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue