Skip to content

Commit

Permalink
Merge pull request #47 from arvindskumar99/snpguestok-arvind
Browse files Browse the repository at this point in the history
Adding snpguest ok
  • Loading branch information
larrydewey authored Mar 28, 2024
2 parents a4b9ca0 + a01a360 commit 9579368
Show file tree
Hide file tree
Showing 5 changed files with 395 additions and 1 deletion.
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

0 comments on commit 9579368

Please sign in to comment.