| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |