PKIFCRLDPRetrieval.cpp File Reference


Detailed Description

Subsystem: Certificate and CRL Storage and Retrieval (PKIFSR)

Module: CPKIFCRLDPRetrieval

Id
PKIFCRLDPRetrieval.cpp 11139 2010-01-20 15:27:00Z cwallace

Definition in file PKIFCRLDPRetrieval.cpp.

#include "PKIFdll.h"
#include "IPKIFColleague.h"
#include "PKIFCRLDPRetrieval.h"
#include "LDAP_URL_Header.h"
#include "Buffer.h"
#include "GeneralName.h"
#include "AuthorityInfoAccess.h"
#include "SubjectInfoAccess.h"
#include "ToolkitUtils.h"
#include "CRLDistributionPoint.h"
#include "CRLDistributionPoints.h"
#include "DistributionPointName.h"
#include "AccessDescription.h"
#include "IssuerAltName.h"
#include "Certificate.h"
#include "GottaMatch.h"
#include "CRL.h"
#include "PKIFHttpCrlNode.h"
#include "PKIFLdapCrlNode.h"
#include "ASN1Helper.h"
#include "CryptographicMessageSyntax2004.h"

Include dependency graph for PKIFCRLDPRetrieval.cpp:

Go to the source code of this file.

Functions

bool RetrieveCRLGivenHTTPURL (const char *url, CPKIFCRLList &crlList)
void GetCertsfromP7 (CPKIFBufferPtr &buf, CPKIFCertificateList &certList)
bool CAC_API RetrieveCertGivenHTTPURL (const char *url, CPKIFCertificateNodeList &certNodeList)
void CAC_API GetCertsFromIssuerAltName (CPKIFCertificate &cert, CPKIFCertificateNodeList &certNodeList, PKIInfoSource source, PathBuildingDirection pbd)


Function Documentation

void CAC_API GetCertsFromIssuerAltName ( CPKIFCertificate cert,
CPKIFCertificateNodeList certNodeList,
PKIInfoSource  source,
PathBuildingDirection  pbd 
)

Interface: External

This function iterates through any IssuerAltName or AuthorityInformationAccess extensions present in the certificate passed via the cert parameter. Any of the extensions with URI form will be used to form LDAP queries and any successfully queried certificates will be added to the certNodeList parameter.

If source is equal to LOCAL, this function simply returns without performing any operations

Returns:
None
Exceptions:
CPKIFException(COMMON_INVALID_INPUT) 
Parameters:
cert  [in] Reference to a CPKIFCertificate object containing the certificate from which to obtain the issuer alternate name
certNodeList  [out] Reference to a CPKIFCertificateNodeList to which issuer certificates will be added
source  [in] PKIInfoSource value indicating the types of information sources to search
pbd  [in] PathBuildingDirection value indicating the direction of the builder calling this function (indicated whether AIA or SIA should be chased)

Definition at line 353 of file PKIFCRLDPRetrieval.cpp.

References g_aiaCAIssuer, g_aiaCARepository, GetCertfromLDAPURL(), IPKIFHasExtensions::GetExtension(), PKIFENUMS::LOCAL, LOG_STRING_DEBUG, PKIFENUMS::PBD_FORWARD, PKIFENUMS::REMOTE, RetrieveCertGivenHTTPURL(), GottaMatch< T >::SetRHS(), and TOOLKIT_OCSP_CHECKER.

void GetCertsfromP7 ( CPKIFBufferPtr &  buf,
CPKIFCertificateList certList 
)

Interface: Module

This is a helper function that retrives certificates from a p7 buffer

Returns:
None
Parameters:
buf  [in] Buffer containing the p7 file
certList  [out] Certificate list to which certificates extracted from p7 will be added

Definition at line 161 of file PKIFCRLDPRetrieval.cpp.

References CACASNWRAPPER_CREATE.

Referenced by RetrieveCertGivenHTTPURL().

bool CAC_API RetrieveCertGivenHTTPURL ( const char *  url,
CPKIFCertificateNodeList certNodeList 
)

Interface: Module

This is a helper function that retrives certificate given HTTP URL

Returns:
None
Parameters:
url  [in] A NULL terminated string containing URL
certNodeList  [out] Certificate list to which the certs will be added

Definition at line 256 of file PKIFCRLDPRetrieval.cpp.

References GetCertsfromP7(), GetRequest(), LOG_STRING_DEBUG, PKIFENUMS::REMOTE, GottaMatch< T >::SetRHS(), and TOOLKIT_OCSP_CHECKER.

bool RetrieveCRLGivenHTTPURL ( const char *  url,
CPKIFCRLList crlList 
)

Interface: Subsystem

This is a helper function that retrives a CRL given a url

Returns:
True if function was execeted successfully, false otherwise
Parameters:
url  [in] A NULL terminated string containing url
crlList  [out] A CRL list to which retrived CRLs will be added

Definition at line 94 of file PKIFCRLDPRetrieval.cpp.

References GetRequest(), LOG_STRING_DEBUG, GottaMatch< T >::SetRHS(), and TOOLKIT_OCSP_CHECKER.

Referenced by CPKIFHttpCrlNode::GetCrls(), and CPKIFCRLDPRetrieval::GetCRLs().


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