pcr_after = chunk_from_hex(
chunk_create(pcr_after_hex, strlen(pcr_after_hex)), NULL);
- evid = *evidence = pts_comp_evidence_create(this->name, 0,
- this->extended_pcr,
+ evid = *evidence = pts_comp_evidence_create(this->name->clone(this->name),
+ 0, this->extended_pcr,
PTS_MEAS_ALGO_SHA1, PTS_PCR_TRANSFORM_NO,
this->measurement_time, measurement);
evid->set_pcr_info(evid, pcr_before, pcr_after);
pcr_before = chunk_alloc(PCR_LEN);
memset(pcr_before.ptr, 0x00, pcr_before.len);
- evid = *evidence = pts_comp_evidence_create(this->name, 0, extended_pcr,
+ evid = *evidence = pts_comp_evidence_create(this->name->clone(this->name),
+ 0, extended_pcr,
PTS_MEAS_ALGO_SHA1, PTS_PCR_TRANSFORM_NO,
measurement_time, measurement);
evid->set_pcr_info(evid, pcr_before, pcr_after);
.set_validation = _set_validation,
.destroy = _destroy,
},
- .name = name->clone(name),
+ .name = name,
.depth = depth,
.extended_pcr = extended_pcr,
.hash_algorithm = algo,
entry = malloc_thing(entry_t);
entry->flags = flags;
entry->depth = depth;
- entry->name = name->clone(name);
+ entry->name = name;
this->list->insert_last(this->list, entry);
}