Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Win32 Support: Added initial Windows support for frmMain
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sun, 15 May 2016 11:49:22 +0000 (12:49 +0100)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sun, 15 May 2016 11:49:22 +0000 (12:49 +0100)
source/frmMain.cpp
source/frmMain.h

index 59c3770..9685929 100644 (file)
@@ -2662,6 +2662,22 @@ void frmMain::ResumeAllTimers(){
 
 #if defined(__APPLE__)
 
+#elif defined(__WIN32__)
+
+void frmMain::UpdateSSLAccountStatus(int AccountID, int SSLStatus, CERT_CONTEXT CertificateContext){
+
+       // Delete existing data.
+
+       AccountCertificateData.erase(AccountID);
+       AccountSSLResult.erase(AccountID);
+
+       // Insert new data.
+
+       AccountCertificateData.insert(std::make_pair(AccountID, CertificateContext));
+       AccountSSLResult.insert(std::make_pair(AccountID, SSLStatus));
+
+}
+
 #else
 
 void frmMain::UpdateSSLAccountStatus(int AccountID, int SSLStatus, SSLCertCollection SSLCertInc){
index e3844af..1c9cddc 100644 (file)
@@ -40,6 +40,8 @@ Subclass of frmMainADT, which is generated by wxFormBuilder.
 #if defined(__APPLE__)
 #import <Foundation/Foundation.h>
 #import <SecurityInterface/SFCertificateTrustPanel.h>
+#elif defined(__WIN32__)
+#include "common/win32ssl.h"
 #endif
 
 #include "common/timers.h"
@@ -127,6 +129,8 @@ class frmMain : public frmMainADT
                std::map<int, wxString> AccountAccDirList;
 #if defined(__APPLE__)
                std::map<int, SecTrustRef> AccountTrustData;
+#elif defined(__WIN32__)
+               std::map<int, CERT_CONTEXT> AccountCertificateData;
 #else
                std::map<int, SSLCertCollection> AccountSSLData;
 #endif
@@ -274,6 +278,8 @@ class frmMain : public frmMainADT
                XABViewMode GetViewMode();
 #if defined(__APPLE__)
                void UpdateSSLAccountStatus(int AccountID, int SSLStatus, SecTrustRef SecurityTrustObject);
+#elif defined(__WIN32__)
+               void UpdateSSLAccountStatus(int AccountID, int SSLStatus, CERT_CONTEXT CertificateContext);
 #else
                void UpdateSSLAccountStatus(int AccountID, int SSLStatus, SSLCertCollection SSLCertInc);
 #endif
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy