#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);
#include "common/svrblist.h"
#include "carddav/carddav.h"
+#if defined(__WIN32__)
+#include "common/win32ssl.h"
+#endif
+
//// end generated include
/** Implementing frmEditAccountADT */