summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHongxu Jia <hongxu.jia@windriver.com>2018-09-25 21:43:17 +0800
committerJia Zhang <zhang.jia@linux.alibaba.com>2018-09-26 08:28:11 +0800
commit896365daea9f61f8209aec71cca2c1adb5a5590c (patch)
treef492900559ac7739d996778707302aaab9a83ce2
parent139a9b656d789db5a3caa40fe719e5e736add9da (diff)
downloadmeta-secure-core-896365daea9f61f8209aec71cca2c1adb5a5590c.tar.gz
tpm-tools: refresh patch to fix QA WARNING
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
-rw-r--r--meta-tpm/recipes-tpm/tpm-tools/files/tpm-tools-extendpcr.patch57
1 files changed, 37 insertions, 20 deletions
diff --git a/meta-tpm/recipes-tpm/tpm-tools/files/tpm-tools-extendpcr.patch b/meta-tpm/recipes-tpm/tpm-tools/files/tpm-tools-extendpcr.patch
index ab5e683..1ba8e14 100644
--- a/meta-tpm/recipes-tpm/tpm-tools/files/tpm-tools-extendpcr.patch
+++ b/meta-tpm/recipes-tpm/tpm-tools/files/tpm-tools-extendpcr.patch
@@ -1,8 +1,21 @@
1Index: tpm-tools-1.3.8/include/tpm_tspi.h 1Subject: [PATCH] tpm tools extendpcr
2=================================================================== 2
3--- tpm-tools-1.3.8.orig/include/tpm_tspi.h 2011-08-17 08:20:35.000000000 -0400 3Upstream-Status: Pending
4+++ tpm-tools-1.3.8/include/tpm_tspi.h 2013-01-05 23:26:31.571598217 -0500 4
5@@ -117,6 +117,10 @@ 5Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
6---
7 include/tpm_tspi.h | 4 ++
8 lib/tpm_tspi.c | 14 ++++
9 src/cmds/Makefile.am | 2 +
10 src/cmds/tpm_extendpcr.c | 181 +++++++++++++++++++++++++++++++++++++++++++++++
11 4 files changed, 201 insertions(+)
12 create mode 100644 src/cmds/tpm_extendpcr.c
13
14diff --git a/include/tpm_tspi.h b/include/tpm_tspi.h
15index d1a86dc..d98921c 100644
16--- a/include/tpm_tspi.h
17+++ b/include/tpm_tspi.h
18@@ -117,6 +117,10 @@ TSS_RESULT tpmPcrRead(TSS_HTPM a_hTpm, UINT32 a_Idx,
6 UINT32 *a_PcrSize, BYTE **a_PcrValue); 19 UINT32 *a_PcrSize, BYTE **a_PcrValue);
7 TSS_RESULT pcrcompositeSetPcrValue(TSS_HPCRS a_hPcrs, UINT32 a_Idx, 20 TSS_RESULT pcrcompositeSetPcrValue(TSS_HPCRS a_hPcrs, UINT32 a_Idx,
8 UINT32 a_PcrSize, BYTE *a_PcrValue); 21 UINT32 a_PcrSize, BYTE *a_PcrValue);
@@ -13,11 +26,11 @@ Index: tpm-tools-1.3.8/include/tpm_tspi.h
13 #ifdef TSS_LIB_IS_12 26 #ifdef TSS_LIB_IS_12
14 TSS_RESULT unloadVersionInfo(UINT64 *offset, BYTE *blob, TPM_CAP_VERSION_INFO *v); 27 TSS_RESULT unloadVersionInfo(UINT64 *offset, BYTE *blob, TPM_CAP_VERSION_INFO *v);
15 TSS_RESULT pcrcompositeSetPcrLocality(TSS_HPCRS a_hPcrs, UINT32 localityValue); 28 TSS_RESULT pcrcompositeSetPcrLocality(TSS_HPCRS a_hPcrs, UINT32 localityValue);
16Index: tpm-tools-1.3.8/lib/tpm_tspi.c 29diff --git a/lib/tpm_tspi.c b/lib/tpm_tspi.c
17=================================================================== 30index 91184ae..bb94cac 100644
18--- tpm-tools-1.3.8.orig/lib/tpm_tspi.c 2011-08-17 08:20:35.000000000 -0400 31--- a/lib/tpm_tspi.c
19+++ tpm-tools-1.3.8/lib/tpm_tspi.c 2013-01-05 23:27:37.731593490 -0500 32+++ b/lib/tpm_tspi.c
20@@ -594,6 +594,20 @@ 33@@ -594,6 +594,20 @@ pcrcompositeSetPcrValue(TSS_HPCRS a_hPcrs, UINT32 a_Idx,
21 return result; 34 return result;
22 } 35 }
23 36
@@ -38,10 +51,10 @@ Index: tpm-tools-1.3.8/lib/tpm_tspi.c
38 #ifdef TSS_LIB_IS_12 51 #ifdef TSS_LIB_IS_12
39 /* 52 /*
40 * These getPasswd functions will wrap calls to the other functions and check to see if the TSS 53 * These getPasswd functions will wrap calls to the other functions and check to see if the TSS
41Index: tpm-tools-1.3.8/src/cmds/Makefile.am 54diff --git a/src/cmds/Makefile.am b/src/cmds/Makefile.am
42=================================================================== 55index 27fc9ef..4f6d581 100644
43--- tpm-tools-1.3.8.orig/src/cmds/Makefile.am 2011-08-15 13:52:08.000000000 -0400 56--- a/src/cmds/Makefile.am
44+++ tpm-tools-1.3.8/src/cmds/Makefile.am 2013-01-05 23:30:46.223593698 -0500 57+++ b/src/cmds/Makefile.am
45@@ -22,6 +22,7 @@ 58@@ -22,6 +22,7 @@
46 # 59 #
47 60
@@ -50,16 +63,17 @@ Index: tpm-tools-1.3.8/src/cmds/Makefile.am
50 tpm_unsealdata 63 tpm_unsealdata
51 64
52 if TSS_LIB_IS_12 65 if TSS_LIB_IS_12
53@@ -33,4 +34,5 @@ 66@@ -33,4 +34,5 @@ endif
54 LDADD = $(top_builddir)/lib/libtpm_tspi.la -ltspi $(top_builddir)/lib/libtpm_unseal.la -ltpm_unseal -lcrypto 67 LDADD = $(top_builddir)/lib/libtpm_tspi.la -ltspi $(top_builddir)/lib/libtpm_unseal.la -ltpm_unseal -lcrypto @INTLLIBS@
55 68
56 tpm_sealdata_SOURCES = tpm_sealdata.c 69 tpm_sealdata_SOURCES = tpm_sealdata.c
57+tpm_extendpcr_SOURCES = tpm_extendpcr.c 70+tpm_extendpcr_SOURCES = tpm_extendpcr.c
58 tpm_unsealdata_SOURCES = tpm_unsealdata.c 71 tpm_unsealdata_SOURCES = tpm_unsealdata.c
59Index: tpm-tools-1.3.8/src/cmds/tpm_extendpcr.c 72diff --git a/src/cmds/tpm_extendpcr.c b/src/cmds/tpm_extendpcr.c
60=================================================================== 73new file mode 100644
61--- /dev/null 1970-01-01 00:00:00.000000000 +0000 74index 0000000..e19b271
62+++ tpm-tools-1.3.8/src/cmds/tpm_extendpcr.c 2013-01-05 23:37:43.403585514 -0500 75--- /dev/null
76+++ b/src/cmds/tpm_extendpcr.c
63@@ -0,0 +1,181 @@ 77@@ -0,0 +1,181 @@
64+/* 78+/*
65+ * The Initial Developer of the Original Code is International 79+ * The Initial Developer of the Original Code is International
@@ -242,3 +256,6 @@ Index: tpm-tools-1.3.8/src/cmds/tpm_extendpcr.c
242+ BIO_free(bin); 256+ BIO_free(bin);
243+ return iRc; 257+ return iRc;
244+} 258+}
259--
2602.7.4
261