X-Git-Url: http://Server1/repobrowser/?a=blobdiff_plain;ds=inline;f=source%2FfrmSSLCertificate.cpp;h=3db6a156d670837f546aff390d49b9bd5c964c59;hb=8a55f4cbca8e7cfd70c1f0ac08e8cf157fca0794;hp=901a57198cc096b9c1ac8742e8f5a93ab80a035b;hpb=a711cc7951319aaa592a3c501050ddd9017b01ab;p=xestiaab%2F.git
diff --git a/source/frmSSLCertificate.cpp b/source/frmSSLCertificate.cpp
index 901a571..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
@@ -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);
@@ -144,6 +162,8 @@ void frmSSLCertificate::SetupCerts(SSLCertCollection 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);