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

Side by Side Diff: nss/lib/pki/tdcache.c

Issue 17773004: Update NSS to NSS_3_15_1_BETA2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/nss/
Patch Set: Created 7 years, 5 months 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
« no previous file with comments | « nss/lib/pk11wrap/pk11util.c ('k') | nss/lib/softoken/softkver.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef PKIM_H 5 #ifndef PKIM_H
6 #include "pkim.h" 6 #include "pkim.h"
7 #endif /* PKIM_H */ 7 #endif /* PKIM_H */
8 8
9 #ifndef PKIT_H 9 #ifndef PKIT_H
10 #include "pkit.h" 10 #include "pkit.h"
(...skipping 679 matching lines...) Expand 10 before | Expand all | Expand 10 after
690 int i; 690 int i;
691 SECStatus rv = SECSuccess; 691 SECStatus rv = SECSuccess;
692 692
693 instances = nssPKIObject_GetInstances(from); 693 instances = nssPKIObject_GetInstances(from);
694 if (instances == NULL) { 694 if (instances == NULL) {
695 return SECFailure; 695 return SECFailure;
696 } 696 }
697 for (ci = instances, i = 0; *ci; ci++, i++) { 697 for (ci = instances, i = 0; *ci; ci++, i++) {
698 nssCryptokiObject *instance = nssCryptokiObject_Clone(*ci); 698 nssCryptokiObject *instance = nssCryptokiObject_Clone(*ci);
699 if (instance) { 699 if (instance) {
700 » if (nssPKIObject_AddInstance(to, instance) == SECSuccess) { 700 » if (nssPKIObject_AddInstance(to, instance) == PR_SUCCESS) {
701 continue; 701 continue;
702 } 702 }
703 nssCryptokiObject_Destroy(instance); 703 nssCryptokiObject_Destroy(instance);
704 } 704 }
705 remove_object_instances(to, instances, i); 705 remove_object_instances(to, instances, i);
706 rv = SECFailure; 706 rv = SECFailure;
707 break; 707 break;
708 } 708 }
709 nssCryptokiObjectArray_Destroy(instances); 709 nssCryptokiObjectArray_Destroy(instances);
710 return rv; 710 return rv;
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after
1137 nssTrustDomain_DumpCacheInfo ( 1137 nssTrustDomain_DumpCacheInfo (
1138 NSSTrustDomain *td, 1138 NSSTrustDomain *td,
1139 void (* cert_dump_iter)(const void *, void *, void *), 1139 void (* cert_dump_iter)(const void *, void *, void *),
1140 void *arg 1140 void *arg
1141 ) 1141 )
1142 { 1142 {
1143 PZ_Lock(td->cache->lock); 1143 PZ_Lock(td->cache->lock);
1144 nssHash_Iterate(td->cache->issuerAndSN, cert_dump_iter, arg); 1144 nssHash_Iterate(td->cache->issuerAndSN, cert_dump_iter, arg);
1145 PZ_Unlock(td->cache->lock); 1145 PZ_Unlock(td->cache->lock);
1146 } 1146 }
OLDNEW
« no previous file with comments | « nss/lib/pk11wrap/pk11util.c ('k') | nss/lib/softoken/softkver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698