Re: [U-Boot] [PATCH 1/2] rsa: Fix build with OpenSSL 1.1.x

2017-02-15 Thread Jonathan Gray
These version tests should be #if (OPENSSL_VERSION_NUMBER < 0x1010L) || defined(LIBRESSL_VERSION_NUMBER) or better yet have tests based on functionality rather than version. opensslv.h on OpenBSD-current/LibreSSL portable master has /* $OpenBSD: opensslv.h,v 1.39 2017/02/14 03:50:25 bcook

Re: [U-Boot] [PATCH 1/2] rsa: Fix build with OpenSSL 1.1.x

2017-02-14 Thread Jelle van der Waa
On 02/14/17 at 12:43pm, Peter Robinson wrote: > On Mon, Feb 13, 2017 at 9:57 AM, Peter Robinson wrote: > > On Mon, Feb 13, 2017 at 9:00 AM, Jelle van der Waa wrote: > >> The rsa_st struct has been made opaque in 1.1.x, add forward compatible > >> code to

Re: [U-Boot] [PATCH 1/2] rsa: Fix build with OpenSSL 1.1.x

2017-02-14 Thread Peter Robinson
On Mon, Feb 13, 2017 at 9:57 AM, Peter Robinson wrote: > On Mon, Feb 13, 2017 at 9:00 AM, Jelle van der Waa wrote: >> The rsa_st struct has been made opaque in 1.1.x, add forward compatible >> code to access the n, e, d members of rsa_struct. >> >>

Re: [U-Boot] [PATCH 1/2] rsa: Fix build with OpenSSL 1.1.x

2017-02-13 Thread Peter Robinson
On Mon, Feb 13, 2017 at 9:00 AM, Jelle van der Waa wrote: > The rsa_st struct has been made opaque in 1.1.x, add forward compatible > code to access the n, e, d members of rsa_struct. > > EVP_MD_CTX_cleanup has been removed in 1.1.x and EVP_MD_CTX_reset should be > called to

[U-Boot] [PATCH 1/2] rsa: Fix build with OpenSSL 1.1.x

2017-02-13 Thread Jelle van der Waa
The rsa_st struct has been made opaque in 1.1.x, add forward compatible code to access the n, e, d members of rsa_struct. EVP_MD_CTX_cleanup has been removed in 1.1.x and EVP_MD_CTX_reset should be called to reinitialise an already created structure. --- lib/rsa/rsa-sign.c | 33