tpm2_protocol/message/
audit.rs1use crate::{
7 data::{TpmCc, TpmiAlgHash, TpmlCc},
8 tpm_struct,
9};
10use core::fmt::Debug;
11
12tpm_struct! {
13 #[derive(Debug, PartialEq, Eq, Clone)]
14 kind: Command,
15 name: TpmSetCommandCodeAuditStatusCommand,
16 cc: TpmCc::SetCommandCodeAuditStatus,
17 no_sessions: false,
18 with_sessions: true,
19 handles: {
20 pub auth: crate::data::TpmiRhHierarchy,
21 },
22 parameters: {
23 pub audit_alg: TpmiAlgHash,
24 pub set_list: TpmlCc,
25 pub clear_list: TpmlCc,
26 }
27}
28
29tpm_struct! {
30 #[derive(Debug, Default, PartialEq, Eq, Copy, Clone)]
31 kind: Response,
32 name: TpmSetCommandCodeAuditStatusResponse,
33 cc: TpmCc::SetCommandCodeAuditStatus,
34 no_sessions: false,
35 with_sessions: true,
36 handles: {},
37 parameters: {}
38}