From 40b86b63fbb990b26cc083ced32cb55f11ad263c Mon Sep 17 00:00:00 2001
From: baldurk
Date: Wed, 27 Jan 2021 17:06:09 +0000
Subject: [PATCH] Update code for new SSL libraries in new Qt version
---
qrenderdoc/Windows/Dialogs/CrashDialog.cpp | 17 +++++++++++++++++
qrenderdoc/qrenderdoc_local.vcxproj | 20 ++++++++++++++++++++
util/installer/Installer32.wxs | 4 ++--
util/installer/Installer64.wxs | 4 ++--
4 files changed, 41 insertions(+), 4 deletions(-)
diff --git a/qrenderdoc/Windows/Dialogs/CrashDialog.cpp b/qrenderdoc/Windows/Dialogs/CrashDialog.cpp
index f8f3afbd5..f89503c82 100644
--- a/qrenderdoc/Windows/Dialogs/CrashDialog.cpp
+++ b/qrenderdoc/Windows/Dialogs/CrashDialog.cpp
@@ -184,10 +184,27 @@ CrashDialog::CrashDialog(PersistantConfig &cfg, QVariantMap crashReportJSON, QWi
"libraries needed for SSL support. "
"If you are building locally, check that ");
+#if(QT_VERSION >= QT_VERSION_CHECK(5, 14, 0))
+
+#if defined(Q_OS_WIN32)
+#if QT_POINTER_SIZE == 8
+ text +=
+ tr("you have libcrypto-1_1-64.dll and libssl-1_1-64.dll available next to qrenderdoc.exe.");
+#else
+ text += tr("you have libcrypto-1_1.dll and libssl-1_1.dll available next to qrenderdoc.exe.");
+#endif
+#else
+ text += tr("you have the runtime libopenssl library >= 1.1.1 available in your system.");
+#endif
+
+#else
+
#if defined(Q_OS_WIN32)
text += tr("you have libeay32.dll and ssleay32.dll available next to qrenderdoc.exe.");
#else
text += tr("you have the runtime libopenssl library >= 1.0.0 available in your system.");
+#endif
+
#endif
text += lit("