| 36 | } |
| 37 | |
| 38 | td::Result<RATLSAttestationReport> validate(const tde2e_core::PublicKey &public_key) const override { |
| 39 | // This is the special case when no expected extensions are present by client side |
| 40 | if (config_.tdx_config.allowed_image_hashes.empty() && config_.sev_config.allowed_image_hashes.empty()) { |
| 41 | // Just treat at tdx attestation report |
| 42 | return tdx::RATLSAttestationReport{}; |
| 43 | } |
| 44 | |
| 45 | return td::Status::Error("No extensions present and allowed image hashes aren't empty"); |
| 46 | } |
| 47 | |
| 48 | td::Result<RATLSAttestationReport> validate(const tde2e_core::PublicKey &public_key, |
| 49 | const tdx::RATLSExtensions &extensions) const override { |
nothing calls this directly
no test coverage detected