#include "frmEditAccount.h"
#include "frmInvalidSSLCertificate.h"
#include "carddav/carddav.h"
+#include "common/svrblist.h"
frmEditAccount::frmEditAccount( wxWindow* parent )
:
int SSLResult;
+#if defined(__APPLE__)
+
+ SSLResult = DisplayTrustPanel(&CDavObj);
+
+#else
+
frmInvalidSSLCertificate *frmICPtr = new frmInvalidSSLCertificate(this);
frmICPtr->LoadDataNew(CDavObj.GetSSLVerifyResults(), txtAddress->GetValue());
delete frmICPtr;
frmICPtr = NULL;
-
+
+#endif
+
// Process the response from the user.
if (SSLResult == 1){
return;
}
-
} else {
bool ContinueAcc = TRUE;
wxString AccountName;
wxString AccountData;
-
+
ContinueAcc = cfgfile->GetFirstGroup(AccountName, itemindex);
-
+
while (ContinueAcc){
if (AccountName == AccName){
void frmEditAccount::UpdateSettings( wxCommandEvent& event )
{
+ // Check if server address matches against the blacklist.
+ // Bring up warning message if it does.
+
+ if (CheckBlacklist(txtAddress->GetValue())){
+
+ int MessageBoxResult = wxMessageBox(_("The server with the address given does not support the CardDAV protocol properly and shouldn't be used.\n\nData loss is very likely.\n\nDo you still want to continue using this server?"), _("Server warning"), wxYES_NO, this);
+
+ if (MessageBoxResult == wxNO){
+ return;
+ }
+
+ }
+
// Update the settings for the account.
long itemindex = 0;