From: Steve Brokenshire Date: Sat, 14 May 2016 08:53:06 +0000 (+0100) Subject: Win32 Support: Display certificate information and let the user make a decision if... X-Git-Tag: release-0.13~27 X-Git-Url: http://Server1/repobrowser/?p=xestiaab%2F.git;a=commitdiff_plain;h=e08b959edee3e2ef0a5bd1df2e3e015c71b68db1 Win32 Support: Display certificate information and let the user make a decision if the SSL connection isn't trusted when syncronising. --- 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.