From 040643043bf238b4aece9caab5d95fd81503e908 Mon Sep 17 00:00:00 2001 From: Timur Pocheptsov Date: Mon, 28 Mar 2022 10:50:40 +0200 Subject: [PATCH] TLS backend (OpenSSL): add warning message MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To make a failure to load libssl or libcrypto more obvious (so that, for example, failing auto-tests are immediately correctly diagnosed). Pick-to: 6.3 6.2 Change-Id: I2b1874cc6a04005d286382bb9cd28ee3681aa4e4 Reviewed-by: MÃ¥rten Nordheim --- src/plugins/tls/openssl/qsslsocket_openssl_symbols.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/plugins/tls/openssl/qsslsocket_openssl_symbols.cpp b/src/plugins/tls/openssl/qsslsocket_openssl_symbols.cpp index c9d788bb3e..e85c9ca051 100644 --- a/src/plugins/tls/openssl/qsslsocket_openssl_symbols.cpp +++ b/src/plugins/tls/openssl/qsslsocket_openssl_symbols.cpp @@ -884,9 +884,10 @@ bool q_resolveOpenSslSymbols() triedToResolveSymbols = true; LoadedOpenSsl libs = loadOpenSsl(); - if (!libs.ssl || !libs.crypto) - // failed to load them + if (!libs.ssl || !libs.crypto) { + qCWarning(lcTlsBackend, "Failed to load libssl/libcrypto."); return false; + } RESOLVEFUNC(OPENSSL_init_ssl) RESOLVEFUNC(OPENSSL_init_crypto)