fix(message): correct wrong field type in StartAuthSession
PATCH 1/1 fix(message): correct wrong field type in StartAuthSession
Signed-off-by Jarkko Sakkinen <[email protected]>
---
Will be immediately applied.
src/macro/mod.rs | 1 + src/message/session.rs | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-)
src/macro/mod.rs +1 -0
@@ -172,6 +172,7 @@ macro_rules! tpm_dispatch { }/// A TPM command +#[allow(clippy::large_enum_variant)] #[derive( Debug , PartialEq , Eq , Clone )] pub enum TpmCommandBody { $( $variant($cmd), )*
src/message/session.rs +2 -2
@@ -5,7 +5,7 @@//! 11.2 `TPM2_PolicyRestart` use crate ::{ - data::{Tpm2b ,Tpm2bNonce ,TpmAlgId ,TpmCc ,TpmSe ,TpmtSymDefObject }, + data::{Tpm2bEncryptedSecret ,Tpm2bNonce ,TpmAlgId ,TpmCc ,TpmSe ,TpmtSymDefObject }, tpm_struct,TpmSession , };use core::fmt::Debug ;
@@ -23,7 +23,7 @@ tpm_struct! { }, parameters: { pub nonce_caller: Tpm2bNonce, - pub encrypted_salt: Tpm2b, + pub encrypted_salt: Tpm2bEncryptedSecret, pub session_type: TpmSe, pub symmetric: TpmtSymDefObject, pub auth_hash: TpmAlgId,
Signature · 1 line
2.39.5