1 #include "frmInvalidSSLCertificate.h"
2 #include "frmSSLCertificate.h"
4 frmInvalidSSLCertificate::frmInvalidSSLCertificate( wxWindow* parent )
6 frmInvalidSSLCertificateADT( parent )
11 void frmInvalidSSLCertificate::Accept( wxCommandEvent& event )
17 void frmInvalidSSLCertificate::Reject( wxCommandEvent& event )
23 void frmInvalidSSLCertificate::ViewCertificates( wxCommandEvent& event )
25 frmSSLCertificate *frameSSLCert = new frmSSLCertificate ( this );
26 frameSSLCert->StartCertFrom(0);
27 frameSSLCert->SetupCerts(CertData);
28 frameSSLCert->ShowModal();
34 void frmInvalidSSLCertificate::LoadData(SSLCertCollection CertDataInc,
35 wxString AccountNameInc)
38 AccountName = AccountNameInc;
39 CertData = CertDataInc;
41 lblSSLText->SetLabel(wxT("An invalid SSL certificate was received from the server for the '") + AccountName + wxT("' account.\n\n") +
42 wxT("Click on one of the following buttons:\n\n") +
43 wxT("- Accept to accept the SSL certificate for this session and future sessions until the certificate changes.\n") +
44 wxT("- Reject to not use this certificate and disconnect (you will be asked again on subsequent reconnections to the server).\n") +
45 wxT("- View Certificates to review the certificates that were received.")
50 void frmInvalidSSLCertificate::LoadDataNew(SSLCertCollection CertDataInc,
51 wxString DomainNameInc)
54 AccountName = DomainNameInc;
55 CertData = CertDataInc;
57 lblSSLText->SetLabel(wxT("An invalid SSL certificate was received from the server ") + AccountName + (" account.\n\n") +
58 wxT("Click on one of the following buttons:\n\n") +
59 wxT("- Accept to accept the SSL certificate for this session and future sessions until the certificate changes.\n") +
60 wxT("- Reject to not use this certificate and disconnect.\n") +
61 wxT("- View Certificates to review the certificates that were received.")
66 int frmInvalidSSLCertificate::GetResult()