]> git.ipfire.org Git - thirdparty/hostap.git/commit
Fix ENGINE support with OpenSSL 1.1+
authorDavid Woodhouse <dwmw2@infradead.org>
Sun, 28 Apr 2019 18:56:34 +0000 (21:56 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 30 Apr 2019 09:10:40 +0000 (12:10 +0300)
commit6326fa0c408c266275f600d2a71eb974ab22be7e
treede92e243564a8902258423141634e51d56daa540
parent099224c18e26161560f8313bced13930fdb832af
Fix ENGINE support with OpenSSL 1.1+

Commit 373c7969485 ("OpenSSL: Fix compile with OpenSSL 1.1.0 and
deprecated APIs") removed a call to ENGINE_load_dynamic() for newer
versions of OpenSSL, asserting that it should happen automatically.

That appears not to be the case, and loading engines now fails because
the dynamic engine isn't present.

Fix it by calling ENGINE_load_builtin_engines(), which works for all
versions of OpenSSL. Also remove the call to ERR_load_ENGINE_strings()
because that should have happened when SSL_load_error_strings() is
called anyway.

Fixes: 373c79694859 ("OpenSSL: Fix compile with OpenSSL 1.1.0 and deprecated APIs")
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
src/crypto/tls_openssl.c