Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Updated TODO list. Splitted some files down, -s/-search support implemented.
[xestiaab/.git] / source / frmInvalidSSLCertificate.cpp
1 #include "frmInvalidSSLCertificate.h"
2 #include "frmSSLCertificate.h"
4 frmInvalidSSLCertificate::frmInvalidSSLCertificate( wxWindow* parent )
5 :
6 frmInvalidSSLCertificateADT( parent )
7 {
9 }
11 void frmInvalidSSLCertificate::Accept( wxCommandEvent& event )
12 {
13         intResult = 1;
14         Close();
15 }
17 void frmInvalidSSLCertificate::Reject( wxCommandEvent& event )
18 {
19         intResult = 2;
20         Close();
21 }
23 void frmInvalidSSLCertificate::ViewCertificates( wxCommandEvent& event )
24 {
25         frmSSLCertificate *frameSSLCert = new frmSSLCertificate ( this );
26         frameSSLCert->StartCertFrom(0);
27         frameSSLCert->SetupCerts(CertData);
28         frameSSLCert->ShowModal();
29                 
30         delete frameSSLCert;
31         frameSSLCert = NULL;
32 }
34 void frmInvalidSSLCertificate::LoadData(SSLCertCollection CertDataInc, 
35                                         wxString AccountNameInc)
36 {
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.")
46         );
48 }
50 void frmInvalidSSLCertificate::LoadDataNew(SSLCertCollection CertDataInc, 
51                                         wxString DomainNameInc)
52 {
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.")
62                 );
64 }
66 int frmInvalidSSLCertificate::GetResult()
67 {
69         return intResult;
71 }
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