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

2017-04-19 Thread Tom Rini
On Tue, Apr 18, 2017 at 05:58:35PM +0100, Peter Robinson wrote: > On Wed, Apr 5, 2017 at 10:49 AM, Mario Six wrote: > > Hi Jelle, > > > > On Tue, Apr 4, 2017 at 11:59 PM, Jelle van der Waa wrote: > >> @@ -20,6 +20,19 @@ > >> #define HAVE_ERR_REMOVE_THREAD_STATE > >> #endif > >> > >> +#if OPENSS

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

2017-04-18 Thread Peter Robinson
On Wed, Apr 5, 2017 at 10:49 AM, Mario Six wrote: > Hi Jelle, > > On Tue, Apr 4, 2017 at 11:59 PM, Jelle van der Waa wrote: >> @@ -20,6 +20,19 @@ >> #define HAVE_ERR_REMOVE_THREAD_STATE >> #endif >> >> +#if OPENSSL_VERSION_NUMBER < 0x1010L || defined(LIBRESSL_VERSION_NUMBER) >> +void RSA_ge

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

2017-04-05 Thread Mario Six
Hi Jelle, On Tue, Apr 4, 2017 at 11:59 PM, Jelle van der Waa wrote: > @@ -20,6 +20,19 @@ > #define HAVE_ERR_REMOVE_THREAD_STATE > #endif > > +#if OPENSSL_VERSION_NUMBER < 0x1010L || defined(LIBRESSL_VERSION_NUMBER) > +void RSA_get0_key(const RSA *r, > + const BIGNUM **n, con

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

2017-04-04 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. Tested-by: Peter Robinson --- lib/rsa/rsa-si