(v0: CertSigningRequestV1)
| 294 | impl TryFrom<CertSigningRequestV1> for CertSigningRequestV2 { |
| 295 | type Error = anyhow::Error; |
| 296 | fn try_from(v0: CertSigningRequestV1) -> Result<Self, Self::Error> { |
| 297 | Ok(Self { |
| 298 | confirm: v0.confirm, |
| 299 | pubkey: v0.pubkey, |
| 300 | config: v0.config.into(), |
| 301 | attestation: Attestation::from_tdx_quote(v0.quote, &v0.event_log)?.into_versioned(), |
| 302 | }) |
| 303 | } |
| 304 | } |
| 305 | |
| 306 | impl Csr for CertSigningRequestV2 { |
nothing calls this directly
no test coverage detected