diff --git a/src/main.rs b/src/main.rs index 1484cd4..e10a528 100644 --- a/src/main.rs +++ b/src/main.rs @@ -16,7 +16,7 @@ use codicon::*; use ::sev::certs::*; use ::sev::firmware::host::{ - types::{PlatformStatusFlags, SnpStatus, Status}, + types::{PlatformStatusFlags, Status}, Firmware, }; use ::sev::Generation; @@ -201,13 +201,6 @@ fn platform_status() -> Result { .context("unable to fetch platform status") } -fn snp_platform_status() -> Result { - firmware()? - .snp_platform_status() - .map_err(|e| anyhow::anyhow!(format!("{:?}", e))) - .context("unable to fetch snp platform status") -} - fn chain() -> Result { const CEK_SVC: &str = "https://kdsintf.amd.com/cek/id"; @@ -296,12 +289,6 @@ mod show { #[structopt(about = "Show the platform identifier")] Identifier, - #[structopt(about = "Show the SNP platform status")] - SnpStatus, - - #[structopt(about = "Show the VCEK DER download URL")] - VcekUrl, - #[structopt(about = "Show the platform's firmware version")] Version, } @@ -319,19 +306,6 @@ mod show { .context("error fetching identifier")?; println!("{}", id); } - Show::SnpStatus => { - let snp_status = snp_platform_status()?; - println!("{:#?}", snp_status); - } - Show::VcekUrl => { - let id = firmware()? - .get_identifier() - .map_err(|e| anyhow::anyhow!(format!("{:?}", e))) - .context("error fetching identifier")?; - let snp_status = snp_platform_status()?; - println!("https://kdsintf.amd.com/vcek/v1/Milan/{}?blSPL={:02}&teeSPL={:02}&snpSPL={:02}&ucodeSPL={:02}", - id, snp_status.tcb.platform_version.bootloader, snp_status.tcb.platform_version.tee, snp_status.tcb.platform_version.snp, snp_status.tcb.platform_version.microcode); - } Show::Flags => { for f in [ PlatformStatusFlags::OWNED,