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

Side by Side Diff: nss/lib/certdb/stanpcertdb.c

Issue 16132005: Allow NSS to be built with NO_NSPR_10_SUPPORT. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/nss/
Patch Set: Created 7 years, 6 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/certdb/secname.c ('k') | nss/lib/certdb/xauthkid.c » ('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 #include "prtime.h" 5 #include "prtime.h"
6 6
7 #include "cert.h" 7 #include "cert.h"
8 #include "certi.h" 8 #include "certi.h"
9 #include "certdb.h" 9 #include "certdb.h"
10 #include "secitem.h" 10 #include "secitem.h"
(...skipping 675 matching lines...) Expand 10 before | Expand all | Expand 10 after
686 const char *name, 686 const char *name,
687 SECCertUsage lookingForUsage) 687 SECCertUsage lookingForUsage)
688 { 688 {
689 return common_FindCertByNicknameOrEmailAddrForUsage(handle, name, 689 return common_FindCertByNicknameOrEmailAddrForUsage(handle, name,
690 PR_FALSE, 690 PR_FALSE,
691 lookingForUsage); 691 lookingForUsage);
692 } 692 }
693 693
694 static void 694 static void
695 add_to_subject_list(CERTCertList *certList, CERTCertificate *cert, 695 add_to_subject_list(CERTCertList *certList, CERTCertificate *cert,
696 PRBool validOnly, int64 sorttime) 696 PRBool validOnly, PRTime sorttime)
697 { 697 {
698 SECStatus secrv; 698 SECStatus secrv;
699 if (!validOnly || 699 if (!validOnly ||
700 CERT_CheckCertValidTimes(cert, sorttime, PR_FALSE) 700 CERT_CheckCertValidTimes(cert, sorttime, PR_FALSE)
701 == secCertTimeValid) { 701 == secCertTimeValid) {
702 secrv = CERT_AddCertToListSorted(certList, cert, 702 secrv = CERT_AddCertToListSorted(certList, cert,
703 CERT_SortCBValidity, 703 CERT_SortCBValidity,
704 (void *)&sorttime); 704 (void *)&sorttime);
705 if (secrv != SECSuccess) { 705 if (secrv != SECSuccess) {
706 CERT_DestroyCertificate(cert); 706 CERT_DestroyCertificate(cert);
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
803 CERT_GetDBContentVersion(CERTCertDBHandle *handle) 803 CERT_GetDBContentVersion(CERTCertDBHandle *handle)
804 { 804 {
805 /* should read the DB content version from the pkcs #11 device */ 805 /* should read the DB content version from the pkcs #11 device */
806 return 0; 806 return 0;
807 } 807 }
808 808
809 SECStatus 809 SECStatus
810 certdb_SaveSingleProfile(CERTCertificate *cert, const char *emailAddr, 810 certdb_SaveSingleProfile(CERTCertificate *cert, const char *emailAddr,
811 SECItem *emailProfile, SECItem *profileTime) 811 SECItem *emailProfile, SECItem *profileTime)
812 { 812 {
813 int64 oldtime; 813 PRTime oldtime;
814 int64 newtime; 814 PRTime newtime;
815 SECStatus rv = SECFailure; 815 SECStatus rv = SECFailure;
816 PRBool saveit; 816 PRBool saveit;
817 SECItem oldprof, oldproftime; 817 SECItem oldprof, oldproftime;
818 SECItem *oldProfile = NULL; 818 SECItem *oldProfile = NULL;
819 SECItem *oldProfileTime = NULL; 819 SECItem *oldProfileTime = NULL;
820 PK11SlotInfo *slot = NULL; 820 PK11SlotInfo *slot = NULL;
821 NSSCertificate *c; 821 NSSCertificate *c;
822 NSSCryptoContext *cc; 822 NSSCryptoContext *cc;
823 nssSMIMEProfile *stanProfile = NULL; 823 nssSMIMEProfile *stanProfile = NULL;
824 PRBool freeOldProfile = PR_FALSE; 824 PRBool freeOldProfile = PR_FALSE;
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
1063 __CERT_TraversePermCertsForNickname(CERTCertDBHandle *handle, char *nickname, 1063 __CERT_TraversePermCertsForNickname(CERTCertDBHandle *handle, char *nickname,
1064 void *cb, void *cbarg) 1064 void *cb, void *cbarg)
1065 { 1065 {
1066 PORT_Assert("CERT_TraversePermCertsForNickname is Deprecated" == NULL); 1066 PORT_Assert("CERT_TraversePermCertsForNickname is Deprecated" == NULL);
1067 PORT_SetError(PR_NOT_IMPLEMENTED_ERROR); 1067 PORT_SetError(PR_NOT_IMPLEMENTED_ERROR);
1068 return SECFailure; 1068 return SECFailure;
1069 } 1069 }
1070 1070
1071 1071
1072 1072
OLDNEW
« no previous file with comments | « nss/lib/certdb/secname.c ('k') | nss/lib/certdb/xauthkid.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698