| 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_crlselector.c | 5 * pkix_crlselector.c |
| 6 * | 6 * |
| 7 * CRLSelector Function Definitions | 7 * CRLSelector Function Definitions |
| 8 * | 8 * |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 PKIX_OBJECTNOTCRLSELECTOR); | 183 PKIX_OBJECTNOTCRLSELECTOR); |
| 184 | 184 |
| 185 crlSelector = (PKIX_CRLSelector *)object; | 185 crlSelector = (PKIX_CRLSelector *)object; |
| 186 | 186 |
| 187 PKIX_HASHCODE(crlSelector->params, ¶msHash, plContext, | 187 PKIX_HASHCODE(crlSelector->params, ¶msHash, plContext, |
| 188 PKIX_OBJECTHASHCODEFAILED); | 188 PKIX_OBJECTHASHCODEFAILED); |
| 189 | 189 |
| 190 PKIX_HASHCODE(crlSelector->context, &contextHash, plContext, | 190 PKIX_HASHCODE(crlSelector->context, &contextHash, plContext, |
| 191 PKIX_OBJECTHASHCODEFAILED); | 191 PKIX_OBJECTHASHCODEFAILED); |
| 192 | 192 |
| 193 hash = 31 * ((PKIX_UInt32)crlSelector->matchCallback + | 193 hash = 31 * ((PKIX_UInt32)((char *)crlSelector->matchCallback - (char *)
NULL) + |
| 194 (contextHash << 3)) + paramsHash; | 194 (contextHash << 3)) + paramsHash; |
| 195 | 195 |
| 196 *pHashcode = hash; | 196 *pHashcode = hash; |
| 197 | 197 |
| 198 cleanup: | 198 cleanup: |
| 199 | 199 |
| 200 PKIX_RETURN(CRLSELECTOR); | 200 PKIX_RETURN(CRLSELECTOR); |
| 201 } | 201 } |
| 202 | 202 |
| 203 /* | 203 /* |
| (...skipping 657 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 861 filtered = NULL; | 861 filtered = NULL; |
| 862 | 862 |
| 863 cleanup: | 863 cleanup: |
| 864 | 864 |
| 865 PKIX_DECREF(filtered); | 865 PKIX_DECREF(filtered); |
| 866 PKIX_DECREF(candidate); | 866 PKIX_DECREF(candidate); |
| 867 | 867 |
| 868 PKIX_RETURN(CRLSELECTOR); | 868 PKIX_RETURN(CRLSELECTOR); |
| 869 | 869 |
| 870 } | 870 } |
| OLD | NEW |