Use global status variable for IMA runtime
This commit is contained in:
@@ -869,7 +869,7 @@ METHOD(pts_component_t, verify, status_t,
|
|||||||
pts_pcr_t *pcrs;
|
pts_pcr_t *pcrs;
|
||||||
time_t measurement_time;
|
time_t measurement_time;
|
||||||
chunk_t measurement, pcr_before, pcr_after;
|
chunk_t measurement, pcr_before, pcr_after;
|
||||||
status_t status;
|
status_t status = NOT_FOUND;
|
||||||
|
|
||||||
this->aik_id = pts->get_aik_id(pts);
|
this->aik_id = pts->get_aik_id(pts);
|
||||||
pcrs = pts->get_pcrs(pts);
|
pcrs = pts->get_pcrs(pts);
|
||||||
@@ -1005,7 +1005,6 @@ METHOD(pts_component_t, verify, status_t,
|
|||||||
break;
|
break;
|
||||||
case IMA_STATE_RUNTIME:
|
case IMA_STATE_RUNTIME:
|
||||||
{
|
{
|
||||||
status_t status = NOT_FOUND;
|
|
||||||
uint8_t hash_buf[HASH_SIZE_SHA512];
|
uint8_t hash_buf[HASH_SIZE_SHA512];
|
||||||
chunk_t digest, hash;
|
chunk_t digest, hash;
|
||||||
enumerator_t *e;
|
enumerator_t *e;
|
||||||
|
|||||||
Reference in New Issue
Block a user