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

Side by Side Diff: nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_ldaprequest.c

Issue 1504923011: Update NSS to 3.21 RTM and NSPR to 4.11 RTM (Closed) Base URL: http://src.chromium.org/svn/trunk/deps/third_party/nss
Patch Set: Created 5 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* This Source Code Form is subject to the terms of the Mozilla Public 1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this 2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4 /* 4 /*
5 * pkix_pl_ldaprequest.c 5 * pkix_pl_ldaprequest.c
6 * 6 *
7 */ 7 */
8 8
9 #include "pkix_pl_ldaprequest.h" 9 #include "pkix_pl_ldaprequest.h"
10 10
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 256
257 /* 257 /*
258 * FUNCTION: pkix_pl_LdapRequest_Destroy 258 * FUNCTION: pkix_pl_LdapRequest_Destroy
259 * (see comments for PKIX_PL_DestructorCallback in pkix_pl_system.h) 259 * (see comments for PKIX_PL_DestructorCallback in pkix_pl_system.h)
260 */ 260 */
261 static PKIX_Error * 261 static PKIX_Error *
262 pkix_pl_LdapRequest_Destroy( 262 pkix_pl_LdapRequest_Destroy(
263 PKIX_PL_Object *object, 263 PKIX_PL_Object *object,
264 void *plContext) 264 void *plContext)
265 { 265 {
266 PKIX_PL_LdapRequest *ldapRq = NULL;
267
268 PKIX_ENTER(LDAPREQUEST, "pkix_pl_LdapRequest_Destroy"); 266 PKIX_ENTER(LDAPREQUEST, "pkix_pl_LdapRequest_Destroy");
269 PKIX_NULLCHECK_ONE(object); 267 PKIX_NULLCHECK_ONE(object);
270 268
271 PKIX_CHECK(pkix_CheckType(object, PKIX_LDAPREQUEST_TYPE, plContext), 269 PKIX_CHECK(pkix_CheckType(object, PKIX_LDAPREQUEST_TYPE, plContext),
272 PKIX_OBJECTNOTLDAPREQUEST); 270 PKIX_OBJECTNOTLDAPREQUEST);
273 271
274 ldapRq = (PKIX_PL_LdapRequest *)object;
275
276 /* 272 /*
277 * All dynamic fields in an LDAPRequest are allocated 273 * All dynamic fields in an LDAPRequest are allocated
278 * in an arena, and will be freed when the arena is destroyed. 274 * in an arena, and will be freed when the arena is destroyed.
279 */ 275 */
280 276
281 cleanup: 277 cleanup:
282 278
283 PKIX_RETURN(LDAPREQUEST); 279 PKIX_RETURN(LDAPREQUEST);
284 } 280 }
285 281
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
752 SECItem **pRequestBuf, 748 SECItem **pRequestBuf,
753 void *plContext) 749 void *plContext)
754 { 750 {
755 PKIX_ENTER(LDAPREQUEST, "pkix_pl_LdapRequest_GetEncoded"); 751 PKIX_ENTER(LDAPREQUEST, "pkix_pl_LdapRequest_GetEncoded");
756 PKIX_NULLCHECK_TWO(request, pRequestBuf); 752 PKIX_NULLCHECK_TWO(request, pRequestBuf);
757 753
758 *pRequestBuf = request->encoded; 754 *pRequestBuf = request->encoded;
759 755
760 PKIX_RETURN(LDAPREQUEST); 756 PKIX_RETURN(LDAPREQUEST);
761 } 757 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698