TLS[openssl]: Bump minimum warning level to Critical on Win/macOS
On these platforms there is a platform-native plugin that can be used instead. If, as has happened, a developer uses the OpenSSL backend without OpenSSL being available they may be confused by the output of OpenSSL without it being of any concern. Leave the warning level low on other platforms since they have nothing to fall back to. Pick-to: 6.4.2 6.4 6.2 Change-Id: Ic36a0429a9e8eed728aa59ec9e028626d6579de1 Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
This commit is contained in:
parent
5da038ab51
commit
4af5f0b983
@ -31,7 +31,13 @@ QT_BEGIN_NAMESPACE
|
||||
|
||||
using namespace Qt::StringLiterals;
|
||||
|
||||
Q_LOGGING_CATEGORY(lcTlsBackend, "qt.tlsbackend.ossl");
|
||||
#if defined(Q_OS_WIN) || defined(Q_OS_MACOS)
|
||||
constexpr auto DefaultWarningLevel = QtCriticalMsg;
|
||||
#else
|
||||
constexpr auto DefaultWarningLevel = QtDebugMsg;
|
||||
#endif
|
||||
|
||||
Q_LOGGING_CATEGORY(lcTlsBackend, "qt.tlsbackend.ossl", DefaultWarningLevel);
|
||||
|
||||
static void q_loadCiphersForConnection(SSL *connection, QList<QSslCipher> &ciphers,
|
||||
QList<QSslCipher> &defaultCiphers)
|
||||
|
Loading…
x
Reference in New Issue
Block a user