PathDumpDialog.cpp File Reference


Detailed Description

Subsystem: PKIF Resources

Module: PathDumpDialog

Id
PathDumpDialog.cpp 11931 2010-10-22 15:17:50Z agalustyan

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>

Include dependency graph for PathDumpDialog.cpp:

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)


Function Documentation

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

Returns:
None
Parameters:
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

Returns:
None
Parameters:
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

Returns:
None
Parameters:
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.

Returns:
Smart pointer to CPKIFBuffer containing the thumbprint
Parameters:
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.

Returns:
Smart pointer to CPKIFBuffer containing the thumbprint
Parameters:
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.

Returns:
Smart pointer to CPKIFBuffer containing the thumbprint
Parameters:
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.

Returns:
Smart pointer to CPKIFBuffer containing the thumbprint
Parameters:
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 
)


Generated on Mon Nov 15 11:17:52 2010 for PublicKeyInfrastructureFramework(PKIF) by  doxygen 1.5.6