Updated ITA-IMA finalize messages
This commit is contained in:
@@ -796,7 +796,7 @@ METHOD(imv_agent_if_t, solicit_recommendation, TNC_Result,
|
|||||||
attestation_state->finalize_components(attestation_state,
|
attestation_state->finalize_components(attestation_state,
|
||||||
result);
|
result);
|
||||||
result->write_data(result,
|
result->write_data(result,
|
||||||
chunk_from_str("; Pending component evidence"));
|
chunk_from_str("; pending component evidence"));
|
||||||
result->write_uint8(result, '\0');
|
result->write_uint8(result, '\0');
|
||||||
result_buf = result->get_buf(result);
|
result_buf = result->get_buf(result);
|
||||||
result_str = result_buf.ptr;
|
result_str = result_buf.ptr;
|
||||||
|
|||||||
@@ -1153,22 +1153,22 @@ METHOD(pts_component_t, finalize, bool,
|
|||||||
/* close registration */
|
/* close registration */
|
||||||
this->is_ima_registering = FALSE;
|
this->is_ima_registering = FALSE;
|
||||||
|
|
||||||
written = snprintf(pos, len, "registered boot aggregate evidence "
|
written = snprintf(pos, len, "registered IMA boot aggregate "
|
||||||
"measurement; ");
|
"evidence measurement; ");
|
||||||
pos += written;
|
pos += written;
|
||||||
len -= written;
|
len -= written;
|
||||||
}
|
}
|
||||||
if (this->count)
|
if (this->count)
|
||||||
{
|
{
|
||||||
snprintf(pos, len, "processed %d file evidence measurements: "
|
snprintf(pos, len, "processed %d IMA file evidence measurements: "
|
||||||
"%d ok, %d unknown, %d differ, %d failed",
|
"%d ok, %d unknown, %d differ, %d failed",
|
||||||
this->count, this->count_ok, this->count_unknown,
|
this->count, this->count_ok, this->count_unknown,
|
||||||
this->count_differ, this->count_failed);
|
this->count_differ, this->count_failed);
|
||||||
success = !this->count_differ && !this->count_failed;
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
snprintf(pos, len, "no boot aggregate evidence measurement");
|
snprintf(pos, len, "no IMA file evidence measurements");
|
||||||
|
success = FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user