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

Side by Side Diff: nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_ldapresponse.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_ldapresponse.c 5 * pkix_pl_ldapresponse.c
6 * 6 *
7 */ 7 */
8 8
9 #include <fcntl.h> 9 #include <fcntl.h>
10 #include "pkix_pl_ldapresponse.h" 10 #include "pkix_pl_ldapresponse.h"
(...skipping 712 matching lines...) Expand 10 before | Expand all | Expand 10 after
723 PKIX_NULLCHECK_TWO(response, pResultCode); 723 PKIX_NULLCHECK_TWO(response, pResultCode);
724 724
725 messageType = response->decoded.protocolOp.selector; 725 messageType = response->decoded.protocolOp.selector;
726 726
727 if (messageType != LDAP_SEARCHRESPONSERESULT_TYPE) { 727 if (messageType != LDAP_SEARCHRESPONSERESULT_TYPE) {
728 PKIX_ERROR(PKIX_GETRESULTCODECALLEDFORNONRESULTMESSAGE); 728 PKIX_ERROR(PKIX_GETRESULTCODECALLEDFORNONRESULTMESSAGE);
729 } 729 }
730 730
731 resultMsg = &response->decoded.protocolOp.op.searchResponseResultMsg; 731 resultMsg = &response->decoded.protocolOp.op.searchResponseResultMsg;
732 732
733 *pResultCode = *(char *)(resultMsg->resultCode.data); 733 *pResultCode = *(resultMsg->resultCode.data);
734 734
735 cleanup: 735 cleanup:
736 736
737 PKIX_RETURN(LDAPRESPONSE); 737 PKIX_RETURN(LDAPRESPONSE);
738 } 738 }
739 739
740 /* 740 /*
741 * FUNCTION: pkix_pl_LdapResponse_GetAttributes 741 * FUNCTION: pkix_pl_LdapResponse_GetAttributes
742 * DESCRIPTION: 742 * DESCRIPTION:
743 * 743 *
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
777 PKIX_ERROR(PKIX_GETATTRIBUTESCALLEDFORNONENTRYMESSAGE); 777 PKIX_ERROR(PKIX_GETATTRIBUTESCALLEDFORNONENTRYMESSAGE);
778 } 778 }
779 779
780 *pAttributes = response-> 780 *pAttributes = response->
781 decoded.protocolOp.op.searchResponseEntryMsg.attributes; 781 decoded.protocolOp.op.searchResponseEntryMsg.attributes;
782 782
783 cleanup: 783 cleanup:
784 784
785 PKIX_RETURN(LDAPRESPONSE); 785 PKIX_RETURN(LDAPRESPONSE);
786 } 786 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698