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

Side by Side Diff: nss/lib/pki/certificate.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 #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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698