Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding snpguest ok #47

Merged
merged 2 commits into from
Mar 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/target
Cargo.lock
Cargo.lock
.vscode
15 changes: 15 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,6 @@ x509-parser = { version="^0.14", features=["verify"] }
asn1-rs = "0.5.2"
rand = "0.8.5"
tss-esapi = { version = "7.2", optional=true }
msru = "0.2.0"
colorful = "0.2.2"
bitfield = "0.13.2"
5 changes: 5 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ mod certs;
mod display;
mod fetch;
mod key;
mod ok;
mod report;
mod verify;

Expand Down Expand Up @@ -54,6 +55,9 @@ enum SnpGuestCmd {

#[structopt(about = "Key command to generate derived key.")]
Key(KeyArgs),

#[structopt(about = "Probe system for SEV-SNP support")]
Ok,
}

fn main() -> Result<()> {
Expand All @@ -74,6 +78,7 @@ fn main() -> Result<()> {
SnpGuestCmd::Verify(subcmd) => verify::cmd(subcmd, snpguest.quiet),
SnpGuestCmd::Display(subcmd) => display::cmd(subcmd, snpguest.quiet),
SnpGuestCmd::Key(args) => key::get_derived_key(args),
SnpGuestCmd::Ok => ok::cmd(snpguest.quiet),
};

if let Err(ref e) = status {
Expand Down
Loading