chore: post some ssl info on startup (#5475)

This commit is contained in:
pajlada 2024-06-21 14:48:51 +02:00 committed by GitHub
parent 052dbd7d2c
commit 7dc80bc599
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -18,6 +18,7 @@
#include <QApplication>
#include <QCommandLineParser>
#include <QMessageBox>
#include <QSslSocket>
#include <QStringList>
#include <memory>
@ -90,6 +91,25 @@ int main(int argc, char **argv)
attachToConsole();
}
qCInfo(chatterinoApp).noquote()
<< "Chatterino Qt SSL library build version:"
<< QSslSocket::sslLibraryBuildVersionString();
qCInfo(chatterinoApp).noquote()
<< "Chatterino Qt SSL library version:"
<< QSslSocket::sslLibraryVersionString();
#if QT_VERSION >= QT_VERSION_CHECK(6, 1, 0)
qCInfo(chatterinoApp).noquote()
<< "Chatterino Qt SSL active backend:"
<< QSslSocket::activeBackend() << "of"
<< QSslSocket::availableBackends().join(", ");
# if QT_VERSION >= QT_VERSION_CHECK(6, 7, 0)
qCInfo(chatterinoApp) << "Chatterino Qt SSL active backend features:"
<< QSslSocket::supportedFeatures();
# endif
qCInfo(chatterinoApp) << "Chatterino Qt SSL active backend protocols:"
<< QSslSocket::supportedProtocols();
#endif
Updates updates(*paths);
NetworkConfigurationProvider::applyFromEnv(Env::get());