diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2018-03-18 16:03:47 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-04-06 20:45:28 -0400 |
commit | c5b0bca4c3ca5c3d1d8ee99fdbf3b494a3986dbd (patch) | |
tree | 225bdefa6a1e29722625805bb0fde1900b6be71e /tools/imximage.c | |
parent | c57b6b7090eab6a83c57175185e53166ab532675 (diff) |
tools/mxsimage: Support building with LibreSSL
The mxsimage utility fails to compile against LibreSSL version < 2.7.0
because LibreSSL says it is OpenSSL 2.0, but it does not support the
complete OpenSSL 1.1 interface.
LibreSSL defines OPENSSL_VERSION_NUMBER with 0x20000000L and therefor
claims to have an API compatible with OpenSSL 2.0, but it implements
EVP_MD_CTX_new(), EVP_MD_CTX_free() and EVP_CIPHER_CTX_reset() only
starting with version 2.7.0, which is not yet released. OpenSSL
implements this function since version 1.1.0.
This commit will activate the compatibility code meant for
OpenSSL < 1.1.0 also for LibreSSL version < 2.7.0.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Reviewed-by: Jonathan Gray <jsg@jsg.id.au>
Diffstat (limited to 'tools/imximage.c')
0 files changed, 0 insertions, 0 deletions