TLS backend (OpenSSL): add warning message

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 <marten.nordheim@qt.io>
bb10
Timur Pocheptsov 2022-03-28 10:50:40 +02:00
parent ec4c6e0acb
commit 040643043b
1 changed files with 3 additions and 2 deletions

View File

@ -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)