From 6435fe75ff4b4a123f7853daecdb98f2405edd0b Mon Sep 17 00:00:00 2001 From: Tyler Fanelli Date: Thu, 13 Feb 2025 18:32:55 -0500 Subject: [PATCH] Revert "ok: Update RMP_INIT check to account for other bitflags" This reverts commit a72d2ac8b1edd6420013db93436be84769fd3605. --- Cargo.lock | 3 ++- Cargo.toml | 2 +- src/ok.rs | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index c057a7c..14a35ba 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -545,7 +545,8 @@ dependencies = [ [[package]] name = "sev" version = "5.0.0" -source = "git+http://github.com/tylerfanelli/sev.git?branch=platform-status-alias-check#bf1888b00147f202bb0a7943d2b4281e6fefdc8e" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b06afe5192a43814047ea0072f4935f830a1de3c8cb43b56c90ae6918468b94d" dependencies = [ "base64", "bincode", diff --git a/Cargo.toml b/Cargo.toml index a069dac..d120b19 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,7 +25,7 @@ is-it-maintained-open-issues = { repository = "virtee/snphost" } [dependencies] anyhow = "1.0.83" -sev = { git = "http://github.com/tylerfanelli/sev.git" , branch = "platform-status-alias-check", features = ['openssl']} +sev = { version = "5.0.0" , features = ['openssl']} env_logger = "0.10.1" clap = { version = "4.5", features = [ "derive" ] } colorful = "0.2.2" diff --git a/src/ok.rs b/src/ok.rs index 3c1b557..a59aca7 100644 --- a/src/ok.rs +++ b/src/ok.rs @@ -815,7 +815,7 @@ fn snp_ioctl(test: SnpStatusTest) -> TestResult { } } SnpStatusTest::Rmp => { - if (status.is_rmp_init & PlatformInit::IS_RMP_INIT).bits() != 0 { + if status.is_rmp_init == 1 { TestResult { name: format!("{}", SnpStatusTest::Rmp), stat: TestState::Pass,