Module: Miscellaneous
Definition in file LDAPFunctions.cpp.
#include "LDAP_URL_Header.h"
#include "ToolkitUtils.h"
#include "CLDAPConnectionInfo.h"
#include "CSingletonLDAPConnection.h"
#include "ASN1Helper.h"
#include "PKIX1Implicit88.h"
#include "PKIX1Explicit88.h"
#include "Certificate.h"
#include "CRL.h"
#include "GottaMatch.h"
#include "PKIFCertificateNodeEntry.h"
#include <string>
#include "boost/numeric/conversion/cast.hpp"
#include "boost/numeric/conversion/bounds.hpp"
#include "boost/limits.hpp"

Go to the source code of this file.
Defines | |
| #define | CLEANUP |
| #define | RETURN(err) |
| #define | CLEANUP |
| #define | RETURN(err) |
Functions | |
| int | GetCertfromLDAPURL (const char *url_in, CPKIFCertificateNodeList &certNodeList, PathBuildingDirection pbd) |
| int | GetCRLfromLDAPURL (const char *url_in, CPKIFCRLList &crlList) |
| int | PKIFLDAP::ldap_url_parse (const char *url_in, LDAPURLDesc **ludpp) |
| int | PKIFLDAP::ldap_url_parse_ext (const char *url_in, LDAPURLDesc **ludpp) |
Variables | |
| struct PKIFLDAP::lber_options | ber_int_options |
| #define CLEANUP |
Value:
{ \
if(NULL != binaryValuesPtr)\
{ ldap_value_free_len(binaryValuesPtr);binaryValuesPtr = NULL;}\
if(NULL != tempAttrName)\
{ ldap_memfree(tempAttrName);tempAttrName = NULL;}\
if(NULL != ber_temp)\
{ ber_free(ber_temp, 0);ber_temp = NULL;}\
if(NULL != results)\
{ ldap_msgfree(results); results = NULL;}\
}
| #define CLEANUP |
Value:
{ \
if(NULL != binaryValuesPtr)\
{ ldap_value_free_len(binaryValuesPtr);binaryValuesPtr = NULL;}\
if(NULL != tempAttrName)\
{ ldap_memfree(tempAttrName);tempAttrName = NULL;}\
if(NULL != ber_temp)\
{ ber_free(ber_temp, 0);ber_temp = NULL;}\
if(NULL != results)\
{ ldap_msgfree(results); results = NULL;}\
}
| #define RETURN | ( | err | ) |
Value:
{ \
CLEANUP\
if(ldapInfo != NULL){PKIFLDAP::ldap_free_urldesc( ldapInfo );ldapInfo = NULL;}\
return err;\
}
| #define RETURN | ( | err | ) |
Value:
{ \
CLEANUP\
if(ldapInfo != NULL){PKIFLDAP::ldap_free_urldesc( ldapInfo );ldapInfo = NULL;}\
return err;\
}
Referenced by GetCertfromLDAPURL(), GetCRLfromLDAPURL(), PostRequest(), and PostRequestURL().
| int GetCertfromLDAPURL | ( | const char * | url_in, | |
| CPKIFCertificateNodeList & | certNodeList, | |||
| PathBuildingDirection | pbd | |||
| ) |
Interface: Subsystem
This is a helper function that obtains a certificate from an LDAP URL
| url_in | [in]A NULL terminated string that contains LDAP URI |
| certNodeList | [out] A reference to CPKIFCertificateList object which will contain the obtained certificates |
Definition at line 61 of file LDAPFunctions.cpp.
References PKIFLDAP::AddBlacklistedServer(), CACASNWRAPPER_CREATE, CLEANUP, COMMON_INVALID_INPUT, ERR_LDAP_CONNECTION, ERR_LDAP_QUERY, CSingletonLDAPConnection::GetConnection(), CPKIFException::GetErrorCode(), CSingletonLDAPConnection::Instance(), PKIFLDAP::IsBlacklisted(), PKIFLDAP::ldap_url_parse(), LOG_STRING_ERROR, PAS_AVAILABLE, PKIFENUMS::PBD_FORWARD, PKIFENUMS::PBD_REVERSE, CSingletonLDAPConnection::PushConnection(), PKIFENUMS::REMOTE, RETURN, GottaMatch< T >::SetRHS(), SLEEP, stricmp, TOOLKIT_CACHE, and TOOLKIT_UTILS.
| int GetCRLfromLDAPURL | ( | const char * | url_in, | |
| CPKIFCRLList & | crlList | |||
| ) |
Interface: Subsystem
This is a helper function that obtains CRLs from an LDAP URL
| url_in | [in]A NULL terminated string that contains LDAP URI |
| crlList | [out] A reference to CPKIFCRLList object which will contain the obtained CRLs |
Definition at line 403 of file LDAPFunctions.cpp.
References PKIFLDAP::AddBlacklistedServer(), CLEANUP, ERR_LDAP_CONNECTION, ERR_LDAP_QUERY, CSingletonLDAPConnection::GetConnection(), CSingletonLDAPConnection::Instance(), PKIFLDAP::IsBlacklisted(), PKIFLDAP::ldap_url_parse(), CSingletonLDAPConnection::PushConnection(), RETURN, GottaMatch< T >::SetRHS(), and SLEEP.
Definition at line 13 of file LDAPFunctions.cpp.
1.5.6