Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Added comments to describe functions in frmSSLCertificate
[xestiaab/.git] / source / frmSSLCertificate.cpp
index 2c2f9dd..c69bff1 100644 (file)
@@ -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 <http://www.gnu.org/licenses/>
+
 #include "frmSSLCertificate.h"
 #include <wx/wx.h>
 
@@ -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();
        
@@ -137,13 +155,15 @@ void frmSSLCertificate::SetupCerts(SSLCertCollection SSLCertsInc)
        
        treHierarchy->ExpandAll();
        
-       SSLCertData = SSLCertsInc;*/
+       SSLCertData = SSLCertsInc;
 
 }
 
 std::map<wxString,wxString> frmSSLCertificate::GetSubjectData(wxString SubjectData)
 {
 
+       // Get the subject data and put into a map<wxString,wxString>
+       
        std::map<wxString,wxString> SubjectDataFinal;
        wxStringTokenizer SubjectDataToken(SubjectData, wxT(";"));
        wxString StringData;
@@ -188,8 +208,6 @@ void frmSSLCertificate::LoadValueData( wxListEvent& event )
        // Get the value data and display it in the text at the bottom.
        
        long intSelected = -1;
-       int intSelectedData = 0;
-       long SSLDataSeekNum = -1;
        wxString SSLSettingValue;
      
        intSelected = lstValues->GetNextItem(intSelected, 
@@ -199,8 +217,6 @@ void frmSSLCertificate::LoadValueData( wxListEvent& event )
        SSLSettingValue = lstValues->GetItemText(intSelected, 1);
        
        txtValueData->SetValue(SSLSettingValue);
-       
-       //SSLDataSeekNum = lstValues->GetItemData(intSelected);
 
 }
 
@@ -230,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);
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