Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(128)

Unified Diff: nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_aiamgr.c

Issue 130403004: Remove LDAP support from NSS. (Closed) Base URL: http://src.chromium.org/svn/trunk/deps/third_party/nss/
Patch Set: Don't remove the LDAP source files from the source tree Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
« no previous file with comments | « nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_aiamgr.h ('k') | nss/lib/libpkix/pkix_pl_nss/pki/pkix_pl_infoaccess.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698