From: Carlos Santos Date: Wed, 21 Mar 2018 08:49:26 -0300 (BRT) Subject: [Buildroot] [PATCH 4/5] tpm2-tools: new package In-Reply-To: <87lgepdnu6.fsf@dell.be.48ers.dk> References: <20180315125602.26186-1-casantos@datacom.ind.br> <20180315125602.26186-4-casantos@datacom.ind.br> <87lgepdnu6.fsf@dell.be.48ers.dk> Message-ID: <1224419897.494494.1521632966592.JavaMail.zimbra@datacom.ind.br> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net > From: "Peter Korsgaard" > To: "Carlos Santos" > Cc: "buildroot" > Sent: Sunday, March 18, 2018 7:24:17 PM > Subject: Re: [PATCH 4/5] tpm2-tools: new package >>>>>> "Carlos" == Carlos Santos writes: > > > TPM (Trusted Platform Module) 2.0 CLI tools based on system API of > > TPM2-TSS. These tools can be used to manage keys, perform > > encryption/decryption/signing/etc crypto operations, and manage > > non-volatile storage through a TPM2.0 HW implementation. > > > Signed-off-by: Carlos Santos > > --- > > package/Config.in | 1 + > > .../tpm2-tools/0001-Fix-build-with-LibreSSL.patch | 64 ++++++++++++++++++++++ > > package/tpm2-tools/Config.in | 16 ++++++ > > package/tpm2-tools/tpm2-tools.hash | 3 + > > package/tpm2-tools/tpm2-tools.mk | 13 +++++ > > 5 files changed, 97 insertions(+) > > create mode 100644 package/tpm2-tools/0001-Fix-build-with-LibreSSL.patch > > create mode 100644 package/tpm2-tools/Config.in > > create mode 100644 package/tpm2-tools/tpm2-tools.hash > > create mode 100644 package/tpm2-tools/tpm2-tools.mk > > > diff --git a/package/Config.in b/package/Config.in > > index af94c0ad91..58dfd6306d 100644 > > --- a/package/Config.in > > +++ b/package/Config.in > > @@ -2013,6 +2013,7 @@ menu "System tools" > > source "package/tar/Config.in" > > source "package/tpm-tools/Config.in" > > source "package/tpm2-abrmd/Config.in" > > + source "package/tpm2-tools/Config.in" > > source "package/unscd/Config.in" > > source "package/util-linux/Config.in" > > source "package/xen/Config.in" > > diff --git a/package/tpm2-tools/0001-Fix-build-with-LibreSSL.patch > > b/package/tpm2-tools/0001-Fix-build-with-LibreSSL.patch > > new file mode 100644 > > index 0000000000..0fdd2dc4dd > > --- /dev/null > > +++ b/package/tpm2-tools/0001-Fix-build-with-LibreSSL.patch > > @@ -0,0 +1,64 @@ > > +From 7f8d9359dcf9edbb13bb447f70234397afa4fb05 Mon Sep 17 00:00:00 2001 > > +From: Carlos Santos > > +Date: Tue, 30 Jan 2018 11:21:14 -0200 > > +Subject: [PATCH] Fix build with LibreSSL > > + > > +OPENSSL_VERSION_NUMBER is used to test the version of OpenSSL but this > > +test alone breaks the build with LibreSSL due to implicit declarations > > +of functions 'RSA_set0_key' and 'HMAC_CTX_free'. > > + > > +Test if OpenSSL < 1.1.0 or LIBRESSL_VERSION_NUMBER is defined, instead. > > + > > +Signed-off-by: Carlos Santos > > +--- > > + lib/conversion.c | 2 +- > > + lib/tpm_kdfa.c | 6 +++--- > > + 2 files changed, 4 insertions(+), 4 deletions(-) > > It would have been good to mention that this patch is now upstream: > > https://github.com/tpm2-software/tpm2-tools/commit/0899f5b7acfb0ef1b71518f7b94cf84776018edd > > I see that the upstream commit also patches a number of files under > tools/ - Why did you drop those here? This patch is for version 3.0.3. The patches submitted upstream were for the master branch on which those additional files exist. > Committed, thanks. Thanks [Sorry for the late answer. I was on vacations and on travel until last Monday.] -- Carlos Santos (Casantos) - DATACOM, P&D ?The greatest triumph that modern PR can offer is the transcendent success of having your words and actions judged by your reputation, rather than the other way about.? ? Christopher Hitchens