From 7dc80bc599c985d45470f8c7f3b615d57f20878e Mon Sep 17 00:00:00 2001 From: pajlada Date: Fri, 21 Jun 2024 14:48:51 +0200 Subject: [PATCH] chore: post some ssl info on startup (#5475) --- src/main.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 8da92a45c..0e4d49968 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -18,6 +18,7 @@ #include #include #include +#include #include #include @@ -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());