Skip to content

Commit 3e81c68

Browse files
committed
refactor: use upstream ppid() accessor instead of supplemental()
dcap-qvl now provides QuoteVerificationResult::ppid() and report() accessors, avoiding the heavyweight supplemental() computation or clone+into_report_unchecked() just to read the PPID.
1 parent 6f22de1 commit 3e81c68

2 files changed

Lines changed: 11 additions & 14 deletions

File tree

Cargo.lock

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dstack-attest/src/attestation.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -390,10 +390,7 @@ impl GetDeviceId for () {
390390
impl GetDeviceId for DstackVerifiedReport {
391391
fn get_devide_id(&self) -> Vec<u8> {
392392
match self {
393-
DstackVerifiedReport::DstackTdx(qvr) => qvr
394-
.supplemental()
395-
.map(|s| s.platform.pck.ppid)
396-
.unwrap_or_default(),
393+
DstackVerifiedReport::DstackTdx(qvr) => qvr.ppid().to_vec(),
397394
DstackVerifiedReport::DstackGcpTdx => Vec::new(),
398395
DstackVerifiedReport::DstackNitroEnclave => Vec::new(),
399396
}

0 commit comments

Comments
 (0)