From 43ba9e2676ed9f7988acd0422d7fdbcfc4593571 Mon Sep 17 00:00:00 2001 From: "Cliff L. Biffle" Date: Thu, 4 Apr 2024 15:40:56 -0700 Subject: [PATCH] lib/dice: remove dead traits These traits are newly detected as dead by the new toolchain, so after discussion with @flihp I'm removing them -- we can always get them out of git if we need them. --- lib/dice/src/cert.rs | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/lib/dice/src/cert.rs b/lib/dice/src/cert.rs index b69b69651..e50586915 100644 --- a/lib/dice/src/cert.rs +++ b/lib/dice/src/cert.rs @@ -65,24 +65,6 @@ pub trait Cert: AsBytes { } } -pub trait IssuerCnCert: Cert { - const ISSUER_CN_RANGE: Range; - - fn get_issuer_cn(&self) -> PlatformId { - PlatformId::try_from(self.get_range::<&[u8]>(Self::ISSUER_CN_RANGE)) - .unwrap_lite() - } -} - -pub trait SubjectCnCert: Cert { - const SUBJECT_CN_RANGE: Range; - - fn get_subject_cn(&self) -> PlatformId { - PlatformId::try_from(self.get_range::<&[u8]>(Self::SUBJECT_CN_RANGE)) - .unwrap_lite() - } -} - /// Trait for Certs with the TCG DICE TcbInfo structure w/ the FWID member. pub trait FwidCert: Cert { const FWID_RANGE: Range;