Module: PathDumpDialog
Definition in file PathDumpDialog.cpp.
#include "PKIFdll.h"
#include "wx/wxprec.h"
#include "PathDumpDialog.h"
#include "RevocationSource.h"
#include "IPKIFTrustAnchor.h"
#include "PKIFCryptUtils.h"
#include "PKIFAlgorithm.h"
#include "PRStringUtils.h"
#include <sstream>
#include <iterator>

Go to the source code of this file.
Functions | |
| CPKIFBufferPtr | GetThumbprint (const unsigned char *cert, int certLen) |
| CPKIFBufferPtr | GetThumbprint (CPKIFCertificatePtr &cert) |
| CPKIFBufferPtr | GetThumbprint (CPKIFCRLPtr &crl) |
| CPKIFBufferPtr | GetThumbprint (CPKIFOCSPResponsePtr &ocsp) |
| void | AddCertDetailsToManifest (ostringstream &manifestContents, const char *certfile, CPKIFCertificatePtr &rootCert) |
| void | AddCrlDetailsToManifest (ostringstream &manifestContents, const char *crlfile, CPKIFCRLPtr &crl) |
| void | AddOcspDetailsToManifest (ostringstream &manifestContents, const char *ocspfile, CPKIFOCSPResponsePtr &ocspResponse) |
| void | WriteCertsFromOcspResponseToFile (CPKIFBufferPtr &respThumbprint, CPKIFOCSPResponsePtr &resp, wxString &curDirectory, ostringstream &manifestContents) |
| void AddCertDetailsToManifest | ( | ostringstream & | manifestContents, | |
| const char * | certfile, | |||
| CPKIFCertificatePtr & | rootCert | |||
| ) |
Interface: Module
This is a helper function that adds certificate details to the buffer that will be displayed
| manifestContents | [in/out] ostringstream that receives details about certificate |
| certfile | [in] name of the file that received the certificate |
| rootCert | [in] the certificate that was written to certfile |
Definition at line 640 of file PathDumpDialog.cpp.
Referenced by WriteCertsFromOcspResponseToFile().
| void AddCrlDetailsToManifest | ( | ostringstream & | manifestContents, | |
| const char * | crlfile, | |||
| CPKIFCRLPtr & | crl | |||
| ) |
Interface: Module
This is a helper function that adds crl details to the buffer that will be displayed
| manifestContents | [in/out] ostringstream that receives details about certificate |
| crlfile | [in] name of the file that received the certificate |
| crl | [in] the certificate that was written to certfile |
Definition at line 661 of file PathDumpDialog.cpp.
| void AddOcspDetailsToManifest | ( | ostringstream & | manifestContents, | |
| const char * | ocspfile, | |||
| CPKIFOCSPResponsePtr & | ocspResponse | |||
| ) |
Interface: Module
This is a helper function that adds OCSP details to the buffer that will be displayed
| manifestContents | [in/out] ostringstream that receives details about certificate |
| ocspfile | [in] name of the file that received the certificate |
| ocspResponse | [in] the certificate that was written to certfile |
Definition at line 686 of file PathDumpDialog.cpp.
References btoa(), CPKIFBasicOCSPResponse::Decode(), CPKIFBasicOCSPResponse::GetResponseData(), CPKIFResponderID::KEYHASH, and CPKIFResponderID::NAME.
| CPKIFBufferPtr GetThumbprint | ( | CPKIFOCSPResponsePtr & | ocsp | ) |
Interface: Module
GetThumbprint returns a CPKIFBufferPtr containing either NULL, upon error, or a NULL-terminated ASCII hex string representation of the thumbprint of the OCSP responce.
| ocsp | [in] OCSP Response of which thumbprint will be calculated |
Definition at line 129 of file PathDumpDialog.cpp.
References GetThumbprint().
| CPKIFBufferPtr GetThumbprint | ( | CPKIFCRLPtr & | crl | ) |
Interface: Module
GetThumbprint returns a CPKIFBufferPtr containing either NULL, upon error, or a NULL-terminated ASCII hex string representation of the thumbprint of the CRL.
| crl | [in] CRL of which thumbprint will be calculated |
Definition at line 110 of file PathDumpDialog.cpp.
References GetThumbprint().
| CPKIFBufferPtr GetThumbprint | ( | CPKIFCertificatePtr & | cert | ) |
Interface: Module
GetThumbprint returns a CPKIFBufferPtr containing either NULL, upon error, or a NULL-terminated ASCII hex string representation of the thumbprint of the certificate.
| cert | [in] Certificate of which thumbprint will be calculated |
Definition at line 91 of file PathDumpDialog.cpp.
References GetThumbprint().
Referenced by GetThumbprint(), and WriteCertsFromOcspResponseToFile().
| CPKIFBufferPtr GetThumbprint | ( | const unsigned char * | cert, | |
| int | certLen | |||
| ) |
Interface: Module
GetThumbprint returns a CPKIFBufferPtr containing either NULL, upon error, or a NULL-terminated ASCII hex string representation of the thumbprint of the certificate.
| cert | [in] certificate for which a thumbprint is required |
Definition at line 52 of file PathDumpDialog.cpp.
References btoa(), GetPlatformCryptoMisc(), IPKIFCryptoMisc::HashFinal(), IPKIFCryptoMisc::HashInit(), IPKIFCryptoMisc::HashUpdate(), and PKIFCRYPTO::SHA1.
| void WriteCertsFromOcspResponseToFile | ( | CPKIFBufferPtr & | respThumbprint, | |
| CPKIFOCSPResponsePtr & | resp, | |||
| wxString & | curDirectory, | |||
| ostringstream & | manifestContents | |||
| ) |
Definition at line 713 of file PathDumpDialog.cpp.
References AddCertDetailsToManifest(), g_ocspBasic, GetThumbprint(), and WriteBufferToFile().
1.5.6