From e08b959edee3e2ef0a5bd1df2e3e015c71b68db1 Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Sat, 14 May 2016 09:53:06 +0100 Subject: [PATCH] Win32 Support: Display certificate information and let the user make a decision if the SSL connection isn't trusted when syncronising. --- source/actmgr/frmActivityMgr.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/source/actmgr/frmActivityMgr.cpp b/source/actmgr/frmActivityMgr.cpp index 9bef583..27960b7 100644 --- a/source/actmgr/frmActivityMgr.cpp +++ b/source/actmgr/frmActivityMgr.cpp @@ -1052,6 +1052,16 @@ void frmActivityMgr::ProcessTasksThread() frmMainPtrGet->UpdateSSLAccountStatus(AccountID, 0, ConnHandle.GetTrustObject()); } + +#elif defined(__WIN32__) + + BOOL ModifiedCertificateData; + CRYPTUI_VIEWCERTIFICATE_STRUCTW CertificateData = BuildCertificateData(&ConnHandle, (HWND)frmMainPtrGet->GetHandle()); + + if (!CryptUIDlgViewCertificate(&CertificateData, &ModifiedCertificateData)){ + wxMessageBox(_("An error occured while trying to open the certificate dialog."), _("Error opening Certificate Information dialog")); + } + #else // Setup the data to be sent in the wxPostEvent command. -- 2.39.5