All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] tools/kwbimage: Support building with LibreSSL
@ 2017-06-06 13:17 Marek Behun
  2017-06-10 13:47 ` [U-Boot] " Tom Rini
  0 siblings, 1 reply; 2+ messages in thread
From: Marek Behun @ 2017-06-06 13:17 UTC (permalink / raw)
  To: u-boot

From: Marek Behún <marek.behun@nic.cz>

The kwbimage utility fails to compile when LibreSSL is present on
the host system instead of OpenSSL. This one-line patch resolves
this.

Signed-off-by: Marek Behun <marek.behun@nic.cz>

diff --git a/tools/kwbimage.c b/tools/kwbimage.c
index edef560faf..5830549d26 100644
--- a/tools/kwbimage.c
+++ b/tools/kwbimage.c
@@ -24,7 +24,7 @@
 #include <openssl/err.h>
 #include <openssl/evp.h>
 
-#if OPENSSL_VERSION_NUMBER < 0x10100000L
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
 static void RSA_get0_key(const RSA *r,
                  const BIGNUM **n, const BIGNUM **e, const BIGNUM **d)
 {
-- 
2.13.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [U-Boot] tools/kwbimage: Support building with LibreSSL
  2017-06-06 13:17 [U-Boot] [PATCH] tools/kwbimage: Support building with LibreSSL Marek Behun
@ 2017-06-10 13:47 ` Tom Rini
  0 siblings, 0 replies; 2+ messages in thread
From: Tom Rini @ 2017-06-10 13:47 UTC (permalink / raw)
  To: u-boot

On Tue, Jun 06, 2017 at 03:17:27PM +0200, Marek Behún wrote:

> From: Marek Behún <marek.behun@nic.cz>
> 
> The kwbimage utility fails to compile when LibreSSL is present on
> the host system instead of OpenSSL. This one-line patch resolves
> this.
> 
> Signed-off-by: Marek Behun <marek.behun@nic.cz>
> 
> diff --git a/tools/kwbimage.c b/tools/kwbimage.c
> index edef560faf..5830549d26 100644

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170610/b3e5a998/attachment.sig>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-06-10 13:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-06 13:17 [U-Boot] [PATCH] tools/kwbimage: Support building with LibreSSL Marek Behun
2017-06-10 13:47 ` [U-Boot] " Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.