Update PCR even if measurement does not equal reference value
This commit is contained in:
@@ -683,7 +683,7 @@ METHOD(pts_component_t, verify, status_t,
|
|||||||
status = this->pts_db->check_comp_measurement(this->pts_db,
|
status = this->pts_db->check_comp_measurement(this->pts_db,
|
||||||
measurement, this->bios_cid, this->kid,
|
measurement, this->bios_cid, this->kid,
|
||||||
++this->seq_no, pcr, algo);
|
++this->seq_no, pcr, algo);
|
||||||
if (status != SUCCESS)
|
if (status == FAILED)
|
||||||
{
|
{
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
@@ -803,7 +803,7 @@ METHOD(pts_component_t, verify, status_t,
|
|||||||
}
|
}
|
||||||
if (pcrs->set(pcrs, pcr, pcr_after))
|
if (pcrs->set(pcrs, pcr, pcr_after))
|
||||||
{
|
{
|
||||||
return SUCCESS;
|
return status;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -811,7 +811,7 @@ METHOD(pts_component_t, verify, status_t,
|
|||||||
pcr_after = pcrs->extend(pcrs, pcr, measurement);
|
pcr_after = pcrs->extend(pcrs, pcr, measurement);
|
||||||
if (pcr_after.ptr)
|
if (pcr_after.ptr)
|
||||||
{
|
{
|
||||||
return SUCCESS;
|
return status;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return FAILED;
|
return FAILED;
|
||||||
|
|||||||
Reference in New Issue
Block a user