From 9c8fde74fef4780633e8dce6d2f26636482d6515 Mon Sep 17 00:00:00 2001 From: Suraj Deshmukh Date: Fri, 26 Jan 2024 00:36:12 +0000 Subject: [PATCH] vtpm: Expose VerifyError This patch exposes the VerifyError type from the vtpm crate. Signed-off-by: Suraj Deshmukh --- az-cvm-vtpm/Cargo.toml | 2 +- az-cvm-vtpm/az-snp-vtpm/Cargo.toml | 4 ++-- az-cvm-vtpm/az-tdx-vtpm/Cargo.toml | 4 ++-- az-cvm-vtpm/src/vtpm/mod.rs | 3 +++ 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/az-cvm-vtpm/Cargo.toml b/az-cvm-vtpm/Cargo.toml index ae07219..3c63359 100644 --- a/az-cvm-vtpm/Cargo.toml +++ b/az-cvm-vtpm/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "az-cvm-vtpm" -version = "0.5.0" +version = "0.5.1" edition = "2021" repository = "https://github.com/kinvolk/azure-cvm-tooling/" license = "MIT" diff --git a/az-cvm-vtpm/az-snp-vtpm/Cargo.toml b/az-cvm-vtpm/az-snp-vtpm/Cargo.toml index c04f9a1..b9fcade 100644 --- a/az-cvm-vtpm/az-snp-vtpm/Cargo.toml +++ b/az-cvm-vtpm/az-snp-vtpm/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "az-snp-vtpm" -version = "0.5.0" +version = "0.5.1" edition = "2021" repository = "https://github.com/kinvolk/azure-cvm-tooling/" license = "MIT" @@ -17,7 +17,7 @@ path = "src/main.rs" required-features = ["attester", "verifier"] [dependencies] -az-cvm-vtpm = { path = "..", version = "0.5.0" } +az-cvm-vtpm = { path = "..", version = "0.5.1" } bincode.workspace = true clap.workspace = true openssl = { workspace = true, optional = true } diff --git a/az-cvm-vtpm/az-tdx-vtpm/Cargo.toml b/az-cvm-vtpm/az-tdx-vtpm/Cargo.toml index 52bb46a..f0c6e0e 100644 --- a/az-cvm-vtpm/az-tdx-vtpm/Cargo.toml +++ b/az-cvm-vtpm/az-tdx-vtpm/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "az-tdx-vtpm" -version = "0.5.0" +version = "0.5.1" edition = "2021" repository = "https://github.com/kinvolk/azure-cvm-tooling/" license = "MIT" @@ -16,7 +16,7 @@ name = "tdx-vtpm" path = "src/main.rs" [dependencies] -az-cvm-vtpm = { path = "..", version = "0.5.0" } +az-cvm-vtpm = { path = "..", version = "0.5.1" } base64-url = "2.0.0" bincode.workspace = true serde.workspace = true diff --git a/az-cvm-vtpm/src/vtpm/mod.rs b/az-cvm-vtpm/src/vtpm/mod.rs index 5f577dd..0a50e31 100644 --- a/az-cvm-vtpm/src/vtpm/mod.rs +++ b/az-cvm-vtpm/src/vtpm/mod.rs @@ -21,6 +21,9 @@ use tss_esapi::Context; #[cfg(feature = "verifier")] mod verify; +#[cfg(feature = "verifier")] +pub use verify::VerifyError; + const VTPM_HCL_REPORT_NV_INDEX: u32 = 0x01400001; const VTPM_AK_HANDLE: u32 = 0x81000003; const VTPM_QUOTE_PCR_SLOTS: [PcrSlot; 24] = [