You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds tests for display trait implementation TpmFormatZeroWarningResponseCode.
- Changes text in display trait implementation of the
TpmFormatZeroWarningResponseCode struct.
- Adds test for display trait implementation of the
TpmFormatZeroWarningResponseCode struct.
Signed-off-by: Jesper Brynolf <[email protected]>
// These display values are taken from the specification. Some have been
53
+
// changed so that the sentence starts with a capital letter and ends with
54
+
// period.
52
55
matchself.error_number{
53
-
TpmFormatZeroWarning::ContextGap => write!(f,"gap for context ID is too large"),
54
-
TpmFormatZeroWarning::ObjectMemory => write!(f,"out of memory for object contexts"),
55
-
TpmFormatZeroWarning::SessionMemory => write!(f,"out of memory for session contexts"),
56
-
TpmFormatZeroWarning::Memory => write!(f,"out of shared object/session memory or need space for internal operations"),
57
-
TpmFormatZeroWarning::SessionHandles => write!(f,"out of session handles - a session must be flushed before a new session may be created"),
58
-
TpmFormatZeroWarning::ObjectHandles => write!(f,"out of object handles - the handle space for objects is depleted and a reboot is required. NOTE 1: This cannot occur on the reference implementation. NOTE 2: There is no reason why an implementation would implement a design that would delete handle space. Platform specifications are encouraged to forbid it."),
TpmFormatZeroWarning::Yielded => write!(f,"the TPM has suspended operation on the command; forward progress was made and the command may be retried. See TPM 2.0 Part 1, “Multi-tasking.” NOTE: This cannot occur on the reference implementation."),
61
-
TpmFormatZeroWarning::Canceled => write!(f,"the command was canceled"),
62
-
TpmFormatZeroWarning::Testing => write!(f,"TPM is performing self-tests"),
63
-
TpmFormatZeroWarning::ReferenceH0 => write!(f,"the 1st handle in the handle area references a transient object or session that is not loaded"),
64
-
TpmFormatZeroWarning::ReferenceH1 => write!(f,"the 2nd handle in the handle area references a transient object or session that is not loaded"),
65
-
TpmFormatZeroWarning::ReferenceH2 => write!(f,"the 3rd handle in the handle area references a transient object or session that is not loaded"),
66
-
TpmFormatZeroWarning::ReferenceH3 => write!(f,"the 4th handle in the handle area references a transient object or session that is not loaded"),
67
-
TpmFormatZeroWarning::ReferenceH4 => write!(f,"the 5th handle in the handle area references a transient object or session that is not loaded"),
68
-
TpmFormatZeroWarning::ReferenceH5 => write!(f,"the 6th handle in the handle area references a transient object or session that is not loaded"),
69
-
TpmFormatZeroWarning::ReferenceH6 => write!(f,"the 7th handle in the handle area references a transient object or session that is not loaded"),
70
-
TpmFormatZeroWarning::ReferenceS0 => write!(f,"the 1st authorization session handle references a session that is not loaded"),
71
-
TpmFormatZeroWarning::ReferenceS1 => write!(f,"the 2nd authorization session handle references a session that is not loaded"),
72
-
TpmFormatZeroWarning::ReferenceS2 => write!(f,"the 3rd authorization session handle references a session that is not loaded"),
73
-
TpmFormatZeroWarning::ReferenceS3 => write!(f,"the 4th authorization session handle references a session that is not loaded"),
74
-
TpmFormatZeroWarning::ReferenceS4 => write!(f,"the 5th session handle references a session that is not loaded"),
75
-
TpmFormatZeroWarning::ReferenceS5 => write!(f,"the 6th session handle references a session that is not loaded"),
76
-
TpmFormatZeroWarning::ReferenceS6 => write!(f,"the 7th authorization session handle references a session that is not loaded"),
77
-
TpmFormatZeroWarning::NvRate => write!(f,"the TPM is rate-limiting accesses to prevent wearout of NV"),
78
-
TpmFormatZeroWarning::Lockout => write!(f,"authorizations for objects subject to DA protection are not allowed at this time because the TPM is in DA lockout mode"),
79
-
TpmFormatZeroWarning::Retry => write!(f,"the TPM was not able to start the command"),
80
-
TpmFormatZeroWarning::NvUnavailable => write!(f,"the command may require writing of NV and NV is not current accessible"),
56
+
TpmFormatZeroWarning::ContextGap => write!(f,"Gap for context ID is too large."),
57
+
TpmFormatZeroWarning::ObjectMemory => write!(f,"Out of memory for object contexts."),
58
+
TpmFormatZeroWarning::SessionMemory => write!(f,"Out of memory for session contexts."),
59
+
TpmFormatZeroWarning::Memory => write!(f,"Out of shared object or session memory or need space for internal operations."),
60
+
TpmFormatZeroWarning::SessionHandles => write!(f,"Out of session handles."),
61
+
TpmFormatZeroWarning::ObjectHandles => write!(f,"Out of object handles."),
TpmFormatZeroWarning::Yielded => write!(f,"The TPM has suspended operation on the command; forward progress was made and the command may be retried."),
64
+
TpmFormatZeroWarning::Canceled => write!(f,"The command was canceled."),
65
+
TpmFormatZeroWarning::Testing => write!(f,"TPM is performing self-tests."),
66
+
TpmFormatZeroWarning::ReferenceH0 => write!(f,"The 1st handle in the handle area references a transient object or session that is not loaded."),
67
+
TpmFormatZeroWarning::ReferenceH1 => write!(f,"The 2nd handle in the handle area references a transient object or session that is not loaded."),
68
+
TpmFormatZeroWarning::ReferenceH2 => write!(f,"The 3rd handle in the handle area references a transient object or session that is not loaded."),
69
+
TpmFormatZeroWarning::ReferenceH3 => write!(f,"The 4th handle in the handle area references a transient object or session that is not loaded."),
70
+
TpmFormatZeroWarning::ReferenceH4 => write!(f,"The 5th handle in the handle area references a transient object or session that is not loaded."),
71
+
TpmFormatZeroWarning::ReferenceH5 => write!(f,"The 6th handle in the handle area references a transient object or session that is not loaded."),
72
+
TpmFormatZeroWarning::ReferenceH6 => write!(f,"The 7th handle in the handle area references a transient object or session that is not loaded."),
73
+
TpmFormatZeroWarning::ReferenceS0 => write!(f,"The 1st authorization session handle references a session that is not loaded."),
74
+
TpmFormatZeroWarning::ReferenceS1 => write!(f,"The 2nd authorization session handle references a session that is not loaded."),
75
+
TpmFormatZeroWarning::ReferenceS2 => write!(f,"The 3rd authorization session handle references a session that is not loaded."),
76
+
TpmFormatZeroWarning::ReferenceS3 => write!(f,"The 4th authorization session handle references a session that is not loaded."),
77
+
TpmFormatZeroWarning::ReferenceS4 => write!(f,"The 5th session handle references a session that is not loaded."),
78
+
TpmFormatZeroWarning::ReferenceS5 => write!(f,"The 6th session handle references a session that is not loaded."),
79
+
TpmFormatZeroWarning::ReferenceS6 => write!(f,"The 7th authorization session handle references a session that is not loaded."),
80
+
TpmFormatZeroWarning::NvRate => write!(f,"The TPM is rate-limiting accesses to prevent wearout of NV."),
81
+
TpmFormatZeroWarning::Lockout => write!(f,"Authorizations for objects subject to DA protection are not allowed at this time because the TPM is in DA lockout mode."),
82
+
TpmFormatZeroWarning::Retry => write!(f,"The TPM was not able to start the command."),
83
+
TpmFormatZeroWarning::NvUnavailable => write!(f,"The command may require writing of NV and NV is not current accessible."),
Copy file name to clipboardExpand all lines: tss-esapi/tests/integration_tests/error_tests/return_code_tests/tpm_tests/tpm_format_zero_warning_tests.rs
0 commit comments