handling of missing component measurement
This commit is contained in:
committed by
Andreas Steffen
parent
8f1a6d50b4
commit
da1ec62352
@@ -189,6 +189,16 @@ METHOD(pts_component_t, verify, status_t,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* check measurement in database */
|
/* check measurement in database */
|
||||||
|
enumerator = pts_db->create_comp_hash_enumerator(pts_db, file,
|
||||||
|
platform_info, this->name, TRUSTED_HASH_ALGO);
|
||||||
|
if (!enumerator->enumerate(enumerator, &hash))
|
||||||
|
{
|
||||||
|
DBG1(DBG_PTS, "No Measurement found in database for component:%s ,"
|
||||||
|
" on platform: %s with hashing algorithm: %N",
|
||||||
|
file, platform_info, pts_meas_algorithm_names, TRUSTED_HASH_ALGO);
|
||||||
|
}
|
||||||
|
enumerator->destroy(enumerator);
|
||||||
|
|
||||||
enumerator = pts_db->create_comp_hash_enumerator(pts_db, file,
|
enumerator = pts_db->create_comp_hash_enumerator(pts_db, file,
|
||||||
platform_info, this->name, TRUSTED_HASH_ALGO);
|
platform_info, this->name, TRUSTED_HASH_ALGO);
|
||||||
while (enumerator->enumerate(enumerator, &hash))
|
while (enumerator->enumerate(enumerator, &hash))
|
||||||
|
|||||||
Reference in New Issue
Block a user