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