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
parent
ec4c6e0acb
commit
040643043b
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue