scripts: mxsimage: Fix build with OpenSSL 1.1.x
The EVP_MD_CTX and EVP_CIPHER_CTX are made opaque since 1.1.x , so instead
of embedding them directly into struct sb_image_ctx and initializing them
using EVP_*_CTX_init(), we use pointers and allocate the crypto contexts
using EVP_*_CTX_new().

This is an adoption of the U-Boot commit 7bae13b7579a6b from Marek Vasut

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 76fd7b6 commit 2079d3866698bec202fdf50a60e96b65b0b42ad9
@Sascha Hauer Sascha Hauer authored on 9 Jan 2017
Showing 1 changed file
View
scripts/mxsimage.c