Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Added TEL to the SaveString function of ContactDataObject
[xestiaab/.git] / source / frmEditAccount.cpp
index e6bff81..d850bf8 100644 (file)
@@ -17,9 +17,6 @@
 // with Xestia Address Book. If not, see <http://www.gnu.org/licenses/>
 
 #include "frmEditAccount.h"
-#include "frmInvalidSSLCertificate.h"
-#include "carddav/carddav.h"
-#include "common/svrblist.h"
 
 frmEditAccount::frmEditAccount( wxWindow* parent )
 :
@@ -108,7 +105,22 @@ void frmEditAccount::DetectAddressBook( wxCommandEvent& event )
 #if defined(__APPLE__)
        
                        SSLResult = DisplayTrustPanel(&CDavObj);
-                       
+
+#elif defined(__WIN32__)
+
+                       BOOL ModifiedCertificateData;
+                       CRYPTUI_VIEWCERTIFICATE_STRUCTW CertificateData = BuildCertificateData(&CDavObj, (HWND)this->GetHandle());
+
+                       if (!CryptUIDlgViewCertificate(&CertificateData, &ModifiedCertificateData)){
+                               wxMessageBox(_("An error occured while trying to open the certificate dialog."), _("Error opening Certificate Information dialog"));
+                               return;
+                       }
+
+                       if (ModifiedCertificateData == FALSE){
+                               wxMessageBox(_("Unable to get server prefix without a valid SSL certificate."), _("Error getting server prefix"));
+                               return;
+                       }
+
 #else
                        
                        frmInvalidSSLCertificate *frmICPtr = new frmInvalidSSLCertificate(this);
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