This patch adds two NVRAM-specific error messages that previously ended up in "Unknown" to be returned if their error codes were returned by the TPM and attemtped to be translated to a user readable error message.
Signed-off-by: Stefan Berger <[email protected]> --- src/trspi/trousers.c | 2 ++ 1 file changed, 2 insertions(+) Index: trousers/src/trspi/trousers.c =================================================================== --- trousers.orig/src/trspi/trousers.c +++ trousers/src/trspi/trousers.c @@ -1445,6 +1445,8 @@ Trspi_Error_String(TSS_RESULT r) case TSS_E_INVALID_KEYUSAGE: return "Invalid usage of key"; case TSS_E_VERIFICATION_FAILED: return "Internal validation of data failed"; case TSS_E_HASH_NO_IDENTIFIER: return "Hash algorithm identifier not set"; + case TSS_E_NV_AREA_EXIST: return "NVRAM area already exists"; + case TSS_E_NV_AREA_NOT_EXIST: return "NVRAM area does not exist"; default: return "Unknown"; } } ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 _______________________________________________ TrouSerS-tech mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/trousers-tech
