Module: CPKIFCRLDPRetrieval
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"
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) |
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
CPKIFException(COMMON_INVALID_INPUT) |
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
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
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
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().