Index: nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_aiamgr.c |
=================================================================== |
--- nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_aiamgr.c (revision 243121) |
+++ nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_aiamgr.c (working copy) |
@@ -11,6 +11,7 @@ |
#include "pkix_pl_aiamgr.h" |
extern PKIX_PL_HashTable *aiaConnectionCache; |
+#ifndef NSS_PKIX_NO_LDAP |
/* --Virtual-LdapClient-Functions------------------------------------ */ |
PKIX_Error * |
@@ -51,6 +52,7 @@ |
PKIX_RETURN(LDAPCLIENT); |
} |
+#endif /* !NSS_PKIX_NO_LDAP */ |
/* --Private-AIAMgr-Functions----------------------------------*/ |
@@ -81,7 +83,9 @@ |
PKIX_DECREF(aiaMgr->aia); |
PKIX_DECREF(aiaMgr->location); |
PKIX_DECREF(aiaMgr->results); |
+#ifndef NSS_PKIX_NO_LDAP |
PKIX_DECREF(aiaMgr->client.ldapClient); |
+#endif |
cleanup: |
@@ -114,6 +118,7 @@ |
PKIX_RETURN(AIAMGR); |
} |
+#ifndef NSS_PKIX_NO_LDAP |
/* |
* FUNCTION: pkix_pl_AiaMgr_FindLDAPClient |
* DESCRIPTION: |
@@ -199,6 +204,7 @@ |
PKIX_RETURN(AIAMGR); |
} |
+#endif /* !NSS_PKIX_NO_LDAP */ |
PKIX_Error * |
pkix_pl_AIAMgr_GetHTTPCerts( |
@@ -375,6 +381,7 @@ |
PKIX_RETURN(AIAMGR); |
} |
+#ifndef NSS_PKIX_NO_LDAP |
PKIX_Error * |
pkix_pl_AIAMgr_GetLDAPCerts( |
PKIX_PL_AIAMgr *aiaMgr, |
@@ -483,6 +490,7 @@ |
PKIX_RETURN(AIAMGR); |
} |
+#endif /* !NSS_PKIX_NO_LDAP */ |
/* |
* FUNCTION: PKIX_PL_AIAMgr_Create |
@@ -619,10 +627,12 @@ |
PKIX_CHECK(pkix_pl_AIAMgr_GetHTTPCerts |
(aiaMgr, ia, &nbio, &certs, plContext), |
PKIX_AIAMGRGETHTTPCERTSFAILED); |
+#ifndef NSS_PKIX_NO_LDAP |
} else if (iaType == PKIX_INFOACCESS_LOCATION_LDAP) { |
PKIX_CHECK(pkix_pl_AIAMgr_GetLDAPCerts |
(aiaMgr, ia, &nbio, &certs, plContext), |
PKIX_AIAMGRGETLDAPCERTSFAILED); |
+#endif |
} else { |
/* We only support http and ldap requests. */ |
PKIX_DECREF(ia); |
@@ -664,7 +674,9 @@ |
if (PKIX_ERROR_RECEIVED) { |
PKIX_DECREF(aiaMgr->aia); |
PKIX_DECREF(aiaMgr->results); |
+#ifndef NSS_PKIX_NO_LDAP |
PKIX_DECREF(aiaMgr->client.ldapClient); |
+#endif |
} |
PKIX_DECREF(certs); |