| 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 NSSPKI_H | 5 #ifndef NSSPKI_H |
| 6 #include "nsspki.h" | 6 #include "nsspki.h" |
| 7 #endif /* NSSPKI_H */ | 7 #endif /* NSSPKI_H */ |
| 8 | 8 |
| 9 #ifndef PKIT_H | 9 #ifndef PKIT_H |
| 10 #include "pkit.h" | 10 #include "pkit.h" |
| (...skipping 877 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 888 /* execute a callback function on all members of a cert list */ | 888 /* execute a callback function on all members of a cert list */ |
| 889 NSS_EXTERN PRStatus | 889 NSS_EXTERN PRStatus |
| 890 nssCertificateList_DoCallback ( | 890 nssCertificateList_DoCallback ( |
| 891 nssList *certList, | 891 nssList *certList, |
| 892 PRStatus (* callback)(NSSCertificate *c, void *arg), | 892 PRStatus (* callback)(NSSCertificate *c, void *arg), |
| 893 void *arg | 893 void *arg |
| 894 ) | 894 ) |
| 895 { | 895 { |
| 896 nssListIterator *certs; | 896 nssListIterator *certs; |
| 897 NSSCertificate *cert; | 897 NSSCertificate *cert; |
| 898 PRStatus nssrv; | |
| 899 certs = nssList_CreateIterator(certList); | 898 certs = nssList_CreateIterator(certList); |
| 900 if (!certs) { | 899 if (!certs) { |
| 901 return PR_FAILURE; | 900 return PR_FAILURE; |
| 902 } | 901 } |
| 903 for (cert = (NSSCertificate *)nssListIterator_Start(certs); | 902 for (cert = (NSSCertificate *)nssListIterator_Start(certs); |
| 904 cert != (NSSCertificate *)NULL; | 903 cert != (NSSCertificate *)NULL; |
| 905 cert = (NSSCertificate *)nssListIterator_Next(certs)) | 904 cert = (NSSCertificate *)nssListIterator_Next(certs)) |
| 906 { | 905 { |
| 907 » nssrv = (*callback)(cert, arg); | 906 » (void)(*callback)(cert, arg); |
| 908 } | 907 } |
| 909 nssListIterator_Finish(certs); | 908 nssListIterator_Finish(certs); |
| 910 nssListIterator_Destroy(certs); | 909 nssListIterator_Destroy(certs); |
| 911 return PR_SUCCESS; | 910 return PR_SUCCESS; |
| 912 } | 911 } |
| 913 | 912 |
| 914 static PRStatus add_ref_callback(NSSCertificate *c, void *a) | 913 static PRStatus add_ref_callback(NSSCertificate *c, void *a) |
| 915 { | 914 { |
| 916 nssCertificate_AddRef(c); | 915 nssCertificate_AddRef(c); |
| 917 return PR_SUCCESS; | 916 return PR_SUCCESS; |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1163 nssCRL_GetEncoding ( | 1162 nssCRL_GetEncoding ( |
| 1164 NSSCRL *crl | 1163 NSSCRL *crl |
| 1165 ) | 1164 ) |
| 1166 { | 1165 { |
| 1167 if (crl && crl->encoding.data != NULL && crl->encoding.size > 0) { | 1166 if (crl && crl->encoding.data != NULL && crl->encoding.size > 0) { |
| 1168 return &crl->encoding; | 1167 return &crl->encoding; |
| 1169 } else { | 1168 } else { |
| 1170 return (NSSDER *)NULL; | 1169 return (NSSDER *)NULL; |
| 1171 } | 1170 } |
| 1172 } | 1171 } |
| OLD | NEW |