Using the database entries for generating Functional Component Evidence Requests
Using database entries to match received component measurement hashes
This commit is contained in:
committed by
Andreas Steffen
parent
b4a9274ce1
commit
77cf6271ad
@@ -60,6 +60,8 @@ typedef struct pcr_entry_t pcr_entry_t;
|
||||
#define PCR_TGRUB_CHECKFILE 13
|
||||
#define PCR_TGRUB_LOADED_FILES 14
|
||||
|
||||
#define TBOOT_POLICY_STR (const char *)("tboot_pcr17")
|
||||
#define TBOOT_MLE_STR (const char *)("tboot_pcr18")
|
||||
|
||||
/**
|
||||
* Length of the generated nonce used for calculation of shared secret
|
||||
|
||||
@@ -76,11 +76,11 @@ METHOD(pts_database_t, create_comp_evid_enumerator, enumerator_t*,
|
||||
|
||||
/* look for all entries belonging to a product in the files table */
|
||||
e = this->db->query(this->db,
|
||||
"SELECT f.type, f.path FROM files AS f "
|
||||
"SELECT f.path FROM files AS f "
|
||||
"JOIN product_file AS pf ON f.id = pf.file "
|
||||
"JOIN products AS p ON p.id = pf.product "
|
||||
"WHERE p.name = ? AND f.component = 1",
|
||||
DB_TEXT, product, DB_INT, DB_TEXT);
|
||||
DB_TEXT, product, DB_TEXT);
|
||||
return e;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user