| 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_store.c | 5 * pkix_store.c |
| 6 * | 6 * |
| 7 * CertStore Function Definitions | 7 * CertStore Function Definitions |
| 8 * | 8 * |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 certStore = (PKIX_CertStore *)object; | 67 certStore = (PKIX_CertStore *)object; |
| 68 | 68 |
| 69 if (certStore->certStoreContext) { | 69 if (certStore->certStoreContext) { |
| 70 PKIX_CHECK(PKIX_PL_Object_Hashcode | 70 PKIX_CHECK(PKIX_PL_Object_Hashcode |
| 71 ((PKIX_PL_Object *) certStore->certStoreContext, | 71 ((PKIX_PL_Object *) certStore->certStoreContext, |
| 72 &tempHash, | 72 &tempHash, |
| 73 plContext), | 73 plContext), |
| 74 PKIX_CERTSTOREHASHCODEFAILED); | 74 PKIX_CERTSTOREHASHCODEFAILED); |
| 75 } | 75 } |
| 76 | 76 |
| 77 *pHashcode = (PKIX_UInt32) certStore->certCallback + | 77 *pHashcode = (PKIX_UInt32)((char *)certStore->certCallback - (char *)NUL
L) + |
| 78 (PKIX_UInt32) certStore->crlCallback + | 78 (PKIX_UInt32)((char *)certStore->crlCallback - (char *)NULL
) + |
| 79 (PKIX_UInt32) certStore->certContinue + | 79 (PKIX_UInt32)((char *)certStore->certContinue - (char *)NUL
L) + |
| 80 (PKIX_UInt32) certStore->crlContinue + | 80 (PKIX_UInt32)((char *)certStore->crlContinue - (char *)NULL
) + |
| 81 (PKIX_UInt32) certStore->trustCallback + | 81 (PKIX_UInt32)((char *)certStore->trustCallback - (char *)NU
LL) + |
| 82 (tempHash << 7); | 82 (tempHash << 7); |
| 83 | 83 |
| 84 cleanup: | 84 cleanup: |
| 85 | 85 |
| 86 PKIX_RETURN(CERTSTORE); | 86 PKIX_RETURN(CERTSTORE); |
| 87 } | 87 } |
| 88 | 88 |
| 89 /* | 89 /* |
| 90 * FUNCTION: pkix_CertStore_Equals | 90 * FUNCTION: pkix_CertStore_Equals |
| 91 * (see comments for PKIX_PL_EqualsCallback in pkix_pl_system.h) | 91 * (see comments for PKIX_PL_EqualsCallback in pkix_pl_system.h) |
| (...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 406 PKIX_Boolean *pLocalFlag, | 406 PKIX_Boolean *pLocalFlag, |
| 407 void *plContext) | 407 void *plContext) |
| 408 { | 408 { |
| 409 PKIX_ENTER(CERTSTORE, "PKIX_CertStore_GetLocalFlag"); | 409 PKIX_ENTER(CERTSTORE, "PKIX_CertStore_GetLocalFlag"); |
| 410 PKIX_NULLCHECK_TWO(store, pLocalFlag); | 410 PKIX_NULLCHECK_TWO(store, pLocalFlag); |
| 411 | 411 |
| 412 *pLocalFlag = store->localFlag; | 412 *pLocalFlag = store->localFlag; |
| 413 | 413 |
| 414 PKIX_RETURN(CERTSTORE); | 414 PKIX_RETURN(CERTSTORE); |
| 415 } | 415 } |
| OLD | NEW |