Copy just 20 bytes of pcr after value
This commit is contained in:
committed by
Andreas Steffen
parent
b8017b5eba
commit
dbe7751a22
@@ -264,7 +264,7 @@ bool imv_attestation_process(pa_tnc_attr_t *attr, linked_list_t *attr_list,
|
||||
|
||||
entry = malloc_thing(pcr_entry_t);
|
||||
entry->pcr_number = extended_pcr;
|
||||
strcpy(entry->pcr_value, pcr_after.ptr);
|
||||
strncpy(entry->pcr_value, pcr_after.ptr, PCR_LEN);
|
||||
pts->add_pcr_entry(pts, entry);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user