X-Git-Url: http://Server1/repobrowser/?p=xestiaab%2F.git;a=blobdiff_plain;f=source%2FfrmEditAccount.cpp;h=b4f25a70ca4d7875d134e26608b247a872d98f40;hp=d0f7effc0f17700c0d4de5c48bb9a454cb504f3d;hb=5b9dfdbcb6c0ab7be6988b58da32e60d7cee3ec0;hpb=547ab1fe605cdb4884179ab011dabba4d0bd7bc2 diff --git a/source/frmEditAccount.cpp b/source/frmEditAccount.cpp index d0f7eff..b4f25a7 100644 --- a/source/frmEditAccount.cpp +++ b/source/frmEditAccount.cpp @@ -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 +}