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

Side by Side Diff: nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_ldapdefaultclient.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_ldapdefaultclient.c 5 * pkix_pl_ldapdefaultclient.c
6 * 6 *
7 * LDAPDefaultClient Function Definitions 7 * LDAPDefaultClient Function Definitions
8 * 8 *
9 */ 9 */
10 10
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 SECItem decode = {siBuffer, NULL, 0}; 352 SECItem decode = {siBuffer, NULL, 0};
353 SECStatus rv = SECFailure; 353 SECStatus rv = SECFailure;
354 LDAPMessage msg; 354 LDAPMessage msg;
355 LDAPBindResponse *ldapBindResponse = NULL; 355 LDAPBindResponse *ldapBindResponse = NULL;
356 356
357 PKIX_ENTER 357 PKIX_ENTER
358 (LDAPDEFAULTCLIENT, 358 (LDAPDEFAULTCLIENT,
359 "pkix_pl_LdapDefaultClient_VerifyBindResponse"); 359 "pkix_pl_LdapDefaultClient_VerifyBindResponse");
360 PKIX_NULLCHECK_TWO(client, client->rcvBuf); 360 PKIX_NULLCHECK_TWO(client, client->rcvBuf);
361 361
362 decode.data = (void *)(client->rcvBuf); 362 decode.data = (unsigned char *)(client->rcvBuf);
363 decode.len = bufLen; 363 decode.len = bufLen;
364 364
365 PKIX_CHECK(pkix_pl_LdapDefaultClient_DecodeBindResponse 365 PKIX_CHECK(pkix_pl_LdapDefaultClient_DecodeBindResponse
366 (client->arena, &decode, &msg, &rv, plContext), 366 (client->arena, &decode, &msg, &rv, plContext),
367 PKIX_LDAPDEFAULTCLIENTDECODEBINDRESPONSEFAILED); 367 PKIX_LDAPDEFAULTCLIENTDECODEBINDRESPONSEFAILED);
368 368
369 if (rv == SECSuccess) { 369 if (rv == SECSuccess) {
370 ldapBindResponse = &msg.protocolOp.op.bindResponseMsg; 370 ldapBindResponse = &msg.protocolOp.op.bindResponseMsg;
371 if (*(ldapBindResponse->resultCode.data) == SUCCESS) { 371 if (*(ldapBindResponse->resultCode.data) == SUCCESS) {
372 client->connectStatus = BOUND; 372 client->connectStatus = BOUND;
(...skipping 2111 matching lines...) Expand 10 before | Expand all | Expand 10 after
2484 PKIX_DECREF(client->entriesFound); 2484 PKIX_DECREF(client->entriesFound);
2485 PKIX_DECREF(client->currentRequest); 2485 PKIX_DECREF(client->currentRequest);
2486 PKIX_DECREF(client->currentResponse); 2486 PKIX_DECREF(client->currentResponse);
2487 2487
2488 cleanup: 2488 cleanup:
2489 2489
2490 PKIX_DECREF(client); 2490 PKIX_DECREF(client);
2491 2491
2492 PKIX_RETURN(CERTSTORE); 2492 PKIX_RETURN(CERTSTORE);
2493 } 2493 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698