refactored PTS measurement algorithms
This commit is contained in:
@@ -203,18 +203,22 @@ static TNC_Result send_message(TNC_ConnectionID connection_id)
|
||||
{
|
||||
case IMV_ATTESTATION_STATE_INIT:
|
||||
{
|
||||
/* Send Request Protocol Capabilities attribute */
|
||||
pts_proto_caps_flag_t flags;
|
||||
flags = PTS_PROTO_CAPS_T | PTS_PROTO_CAPS_VER | PTS_PROTO_CAPS_CURRENT;
|
||||
|
||||
/* Send Request Protocol Capabilities attribute */
|
||||
flags = PTS_PROTO_CAPS_T | PTS_PROTO_CAPS_VER |
|
||||
PTS_PROTO_CAPS_CURRENT;
|
||||
attr = tcg_pts_attr_req_proto_caps_create(flags);
|
||||
break;
|
||||
}
|
||||
case IMV_ATTESTATION_STATE_PROTO_CAP:
|
||||
{
|
||||
/* Send Measurement Algorithms attribute */
|
||||
pts_meas_algorithms_t algorithms;
|
||||
algorithms = PTS_MEAS_ALGO_SHA1 | PTS_MEAS_ALGO_SHA256 | PTS_MEAS_ALGO_SHA384;
|
||||
attr = tcg_pts_attr_meas_algo_create(algorithms);
|
||||
|
||||
/* Send Measurement Algorithms attribute */
|
||||
algorithms = PTS_MEAS_ALGO_SHA1 | PTS_MEAS_ALGO_SHA256 |
|
||||
PTS_MEAS_ALGO_SHA384;
|
||||
attr = tcg_pts_attr_meas_algo_create(algorithms, FALSE);
|
||||
break;
|
||||
}
|
||||
case IMV_ATTESTATION_STATE_MEAS_ALGO:
|
||||
|
||||
Reference in New Issue
Block a user