summaryrefslogtreecommitdiffstats
path: root/meta-tpm/recipes-tpm/tpm-tools/files/openssl1.1_fix.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-tpm/recipes-tpm/tpm-tools/files/openssl1.1_fix.patch')
-rw-r--r--meta-tpm/recipes-tpm/tpm-tools/files/openssl1.1_fix.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/meta-tpm/recipes-tpm/tpm-tools/files/openssl1.1_fix.patch b/meta-tpm/recipes-tpm/tpm-tools/files/openssl1.1_fix.patch
new file mode 100644
index 0000000..9ae3f72
--- /dev/null
+++ b/meta-tpm/recipes-tpm/tpm-tools/files/openssl1.1_fix.patch
@@ -0,0 +1,18 @@
1Upstream-Status: Pending
2Update to build with openssl 1.1.x
3
4Signed-off-by: Armin Kuster <akuster808@gmail.com>
5
6Index: git/src/cmds/tpm_extendpcr.c
7===================================================================
8--- git.orig/src/cmds/tpm_extendpcr.c
9+++ git/src/cmds/tpm_extendpcr.c
10@@ -136,7 +136,7 @@ int main(int argc, char **argv)
11
12 unsigned char msg[EVP_MAX_MD_SIZE];
13 unsigned int msglen;
14- EVP_MD_CTX ctx;
15+ EVP_MD_CTX *ctx = EVP_MD_CTX_new();
16 EVP_DigestInit(&ctx, EVP_sha1());
17 while ((lineLen = BIO_read(bin, line, sizeof(line))) > 0)
18 EVP_DigestUpdate(&ctx, line, lineLen);