Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Implemented macOS (OSX) support for ConnectionObject/CardDAV2 and updated files neede...
[xestiaab/.git] / source / frmEditAccount.cpp
index d0f7eff..b4f25a7 100644 (file)
@@ -93,6 +93,22 @@ void frmEditAccount::DetectAddressBook( wxCommandEvent& event )
        
        if (TestConnection.SSLVerify() == COSSL_UNABLETOVERIFY){
 #if defined(__APPLE__)
+               
+               TestConnection.BypassSSLVerification(true);
+               
+               COConnectResult TestConnectionResult = TestConnection.Connect(false);
+               
+               TestConnection.BypassSSLVerification(false);
+               
+               int SSLResult = DisplayTrustPanel(&TestConnection);
+               
+               if (SSLResult != NSOKButton){
+                       
+                       wxMessageBox(_("An error occured whilst connnecting: ") + TestConnection.GetErrorMessage(), _("Failed"), wxOK+wxICON_ERROR);
+                       return;
+                       
+               }
+               
 #elif defined(__WIN32__)
 
                TestConnection.BypassSSLVerification(true);
@@ -354,4 +370,4 @@ bool frmEditAccount::GetDialogResult(){
        
        return DialogResult;
        
-}
\ No newline at end of file
+}
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