X-Git-Url: http://Server1/repobrowser/?a=blobdiff_plain;f=source%2FfrmSSLCertificate.cpp;h=3db6a156d670837f546aff390d49b9bd5c964c59;hb=a776c519f9846a8d0f2b1b9241e10b3101ad7296;hp=96614f543f81159d1ae67aa5ba921f5468e46fd8;hpb=9dda85fb380dbaa06e14a0263daad4723d231f6c;p=xestiaab%2F.git diff --git a/source/frmSSLCertificate.cpp b/source/frmSSLCertificate.cpp index 96614f5..3db6a15 100644 --- a/source/frmSSLCertificate.cpp +++ b/source/frmSSLCertificate.cpp @@ -1,3 +1,21 @@ +// frmSSLCertificate.cpp - SSL Certificate form. +// +// (c) 2012-2015 Xestia Software Development. +// +// This file is part of Xestia Address Book. +// +// Xestia Address Book is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by the +// Free Software Foundation, version 3 of the license. +// +// Xestia Address Book is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License along +// with Xestia Address Book. If not, see + #include "frmSSLCertificate.h" #include @@ -11,7 +29,7 @@ frmSSLCertificateADT( parent ) void frmSSLCertificate::SetupCerts(SSLCertCollection SSLCertsInc) { - /*// Grab the certificates, start from the one requested and show. + // Grab the certificates, start from the one requested and show. lblValidityStatus->Hide(); @@ -69,13 +87,13 @@ void frmSSLCertificate::SetupCerts(SSLCertCollection SSLCertsInc) wxListItem ColumnDataName; ColumnDataName.SetId(0); - ColumnDataName.SetText(wxT("Name")); + ColumnDataName.SetText(_("Name")); ColumnDataName.SetWidth(115); lstValues->InsertColumn(0, ColumnDataName); wxListItem ColumnDataValue; ColumnDataValue.SetId(0); - ColumnDataValue.SetText(wxT("Value")); + ColumnDataValue.SetText(_("Value")); ColumnDataValue.SetWidth(115); lstValues->InsertColumn(0, ColumnDataValue); @@ -137,13 +155,15 @@ void frmSSLCertificate::SetupCerts(SSLCertCollection SSLCertsInc) treHierarchy->ExpandAll(); - SSLCertData = SSLCertsInc;*/ + SSLCertData = SSLCertsInc; } std::map frmSSLCertificate::GetSubjectData(wxString SubjectData) { + // Get the subject data and put into a map + std::map SubjectDataFinal; wxStringTokenizer SubjectDataToken(SubjectData, wxT(";")); wxString StringData; @@ -226,15 +246,24 @@ void frmSSLCertificate::ViewCertificate( wxCommandEvent& event ) void frmSSLCertificate::CloseWindow( wxCommandEvent& event ) { + + // Close this window. + this->Close(); } void frmSSLCertificate::StartCertFrom(int StartFromInc){ + + // Start the certificate chain from the specified + // certificate number. + StartFrom = StartFromInc; } void frmSSLCertificate::CheckCertificate( wxTreeEvent& event ){ + // Check the certificate. + wxTreeItemId SelectedChild = treHierarchy->GetSelection(); SSLCertItemData *ActiveSSLData = (SSLCertItemData*)treHierarchy->GetItemData(SelectedChild);