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

Side by Side Diff: nss/lib/libpkix/pkix/store/pkix_store.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_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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698