(
attestation: &VersionedAttestation,
report_data: [u8; 64],
patch_report_data: bool,
context: &str,
)
| 75 | } |
| 76 | |
| 77 | fn maybe_patch_report_data( |
| 78 | attestation: &VersionedAttestation, |
| 79 | report_data: [u8; 64], |
| 80 | patch_report_data: bool, |
| 81 | context: &str, |
| 82 | ) -> AttestationV1 { |
| 83 | if !patch_report_data { |
| 84 | warn!( |
| 85 | context = context, |
| 86 | requested_report_data = ?report_data, |
| 87 | "simulator is preserving fixture report_data; returned attestation may not match the current request" |
| 88 | ); |
| 89 | return attestation.clone().into_v1(); |
| 90 | } |
| 91 | attestation.clone().into_v1().with_report_data(report_data) |
| 92 | } |
no test coverage detected