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