SHA256
1
0
forked from pool/tpm2.0-tools
tpm2.0-tools/fixes.patch

26 lines
836 B
Diff
Raw Normal View History

Accepting request 461444 from home:msmeissn:branches:security - Updated to 1.1.0 / 016-11-04 - Added * travis ci support. * Allow for unit tests to be enabled selectively. * tpm2_rc_decode tool: Decode TPM_RC error codes. * Android Make file * tpm2_listpersistent: list all persistent objects * test scripts for tpm2-tools * tpm2_nvreadlock * tpm2_getmanufec: retrieve EC from tpm manufacturer server. * Copy 'common' and 'sample' code from the TPM2.0-TSS repo. - Modified * tpm2_takeownership: update option -c to use lockout password to clear. * tpm2_listpcrs: add options -L and -s, rewrite to increase performance. * tpm2_quote: added -L option to support selection of multiple banks. * tpm2_quote: add -q option to get qualifying data. * configure: Use pkg-config to get info about libcurl and libcrypto. * configure: Use pkg-config to locate SAPI and TCTI headers / libraries. * tpm2_x: Add -X option to enable password input in Hex format. * tpm2_nvdefine: Change -X option to -I. * tpm2-nvwrite: fix for unable to write 1024B+ data. * tpm2_getmanufec: Fix base64 encoding. * tpm2_x: fixed a lot of TPM2B failures caused by wrong initialization. * tpm2_getmanufec: let configure handle libs. * tpm2_getmanufec: Convert from dos to unix format. * build: Check for TSS2 library @ configure time. * build: Detect required TSS2 and TCTI headers. * build: Use libtool to build the common library * build: Install all binaries into sbin. * build: Build common sources into library. OBS-URL: https://build.opensuse.org/request/show/461444 OBS-URL: https://build.opensuse.org/package/show/security/tpm2.0-tools?expand=0&rev=11
2017-03-01 17:18:06 +01:00
Index: tpm2.0-tools-1.1.0/src/tpm2_listpcrs.cpp
===================================================================
--- tpm2.0-tools-1.1.0.orig/src/tpm2_listpcrs.cpp
+++ tpm2.0-tools-1.1.0/src/tpm2_listpcrs.cpp
@@ -159,7 +159,7 @@ int readPcrValues()
return 0;
}
-int preparePcrSelections_g(TPMI_ALG_HASH algId)
+void preparePcrSelections_g(TPMI_ALG_HASH algId)
{
UINT32 pcrId = 0;
Index: tpm2.0-tools-1.1.0/src/tpm2_rc_decode.c
===================================================================
--- tpm2.0-tools-1.1.0.orig/src/tpm2_rc_decode.c
+++ tpm2.0-tools-1.1.0/src/tpm2_rc_decode.c
@@ -246,6 +246,7 @@ print_tpm_rc_tpm_error_code (TPM_RC rc)
fprintf (stderr, "Unknown TPM_RC format\n");
return -1;
}
+ return 0;
}
/* Top level function to dump human readable data about TPM_RCs.
*/