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

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

Issue 12197027: Merge NSS_3_14_2_RTM. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/nss/
Patch Set: Created 7 years, 10 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 | « mozilla/security/nss/lib/certdb/certt.h ('k') | mozilla/security/nss/lib/certhigh/certhigh.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 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 233
234 234
235 235
236 SECStatus 236 SECStatus
237 CERT_ChangeCertTrust(CERTCertDBHandle *handle, CERTCertificate *cert, 237 CERT_ChangeCertTrust(CERTCertDBHandle *handle, CERTCertificate *cert,
238 CERTCertTrust *trust) 238 CERTCertTrust *trust)
239 { 239 {
240 SECStatus rv = SECSuccess; 240 SECStatus rv = SECSuccess;
241 PRStatus ret; 241 PRStatus ret;
242 242
243 CERT_LockCertTrust(cert);
244 ret = STAN_ChangeCertTrust(cert, trust); 243 ret = STAN_ChangeCertTrust(cert, trust);
245 CERT_UnlockCertTrust(cert);
246 if (ret != PR_SUCCESS) { 244 if (ret != PR_SUCCESS) {
247 rv = SECFailure; 245 rv = SECFailure;
248 CERT_MapStanError(); 246 CERT_MapStanError();
249 } 247 }
250 return rv; 248 return rv;
251 } 249 }
252 250
253 extern const NSSError NSS_ERROR_INVALID_CERTIFICATE; 251 extern const NSSError NSS_ERROR_INVALID_CERTIFICATE;
254 252
255 SECStatus 253 SECStatus
(...skipping 808 matching lines...) Expand 10 before | Expand all | Expand 10 after
1064 __CERT_TraversePermCertsForNickname(CERTCertDBHandle *handle, char *nickname, 1062 __CERT_TraversePermCertsForNickname(CERTCertDBHandle *handle, char *nickname,
1065 void *cb, void *cbarg) 1063 void *cb, void *cbarg)
1066 { 1064 {
1067 PORT_Assert("CERT_TraversePermCertsForNickname is Deprecated" == NULL); 1065 PORT_Assert("CERT_TraversePermCertsForNickname is Deprecated" == NULL);
1068 PORT_SetError(PR_NOT_IMPLEMENTED_ERROR); 1066 PORT_SetError(PR_NOT_IMPLEMENTED_ERROR);
1069 return SECFailure; 1067 return SECFailure;
1070 } 1068 }
1071 1069
1072 1070
1073 1071
OLDNEW
« no previous file with comments | « mozilla/security/nss/lib/certdb/certt.h ('k') | mozilla/security/nss/lib/certhigh/certhigh.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698