From: Carlos Santos <casantos@datacom.ind.br>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 4/5] tpm2-tools: new package
Date: Wed, 21 Mar 2018 08:49:26 -0300 (BRT) [thread overview]
Message-ID: <1224419897.494494.1521632966592.JavaMail.zimbra@datacom.ind.br> (raw)
In-Reply-To: <87lgepdnu6.fsf@dell.be.48ers.dk>
> From: "Peter Korsgaard" <peter@korsgaard.com>
> To: "Carlos Santos" <casantos@datacom.ind.br>
> Cc: "buildroot" <buildroot@buildroot.org>
> Sent: Sunday, March 18, 2018 7:24:17 PM
> Subject: Re: [PATCH 4/5] tpm2-tools: new package
>>>>>> "Carlos" == Carlos Santos <casantos@datacom.ind.br> 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 <casantos@datacom.ind.br>
> > ---
> > 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 <casantos@datacom.ind.br>
> > +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 <casantos@datacom.ind.br>
> > +---
> > + 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
next prev parent reply other threads:[~2018-03-21 11:49 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-15 12:55 [Buildroot] [PATCH 1/5] tmp2-tss: remove architecture restriction Carlos Santos
2018-03-15 12:55 ` [Buildroot] [PATCH 2/5] tmp2-tss: bump to version 1.4.0 Carlos Santos
2018-03-18 21:03 ` Peter Korsgaard
2018-03-20 6:23 ` Peter Korsgaard
2018-03-21 11:54 ` Carlos Santos
2018-03-21 13:18 ` Peter Korsgaard
2018-03-15 12:56 ` [Buildroot] [PATCH 3/5] tpm2-abrmd: new package Carlos Santos
2018-03-18 22:15 ` Peter Korsgaard
2018-03-15 12:56 ` [Buildroot] [PATCH 4/5] tpm2-tools: " Carlos Santos
2018-03-18 22:24 ` Peter Korsgaard
2018-03-21 11:49 ` Carlos Santos [this message]
2018-03-15 12:56 ` [Buildroot] [PATCH 5/5] DEVELOPERS: add myself for tpm2-{abrmd, tools, tss} Carlos Santos
2018-03-18 22:24 ` Peter Korsgaard
2018-03-18 21:02 ` [Buildroot] [PATCH 1/5] tmp2-tss: remove architecture restriction Peter Korsgaard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1224419897.494494.1521632966592.JavaMail.zimbra@datacom.ind.br \
--to=casantos@datacom.ind.br \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox