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 14 matching lines...) Expand all Loading... |
25 #include "pki.h" | 25 #include "pki.h" |
26 #include "pkim.h" | 26 #include "pkim.h" |
27 #include "pki3hack.h" | 27 #include "pki3hack.h" |
28 #include "ckhelper.h" | 28 #include "ckhelper.h" |
29 #include "base.h" | 29 #include "base.h" |
30 #include "pkistore.h" | 30 #include "pkistore.h" |
31 #include "dev3hack.h" | 31 #include "dev3hack.h" |
32 #include "dev.h" | 32 #include "dev.h" |
33 | 33 |
34 PRBool | 34 PRBool |
35 SEC_CertNicknameConflict(const char *nickname, SECItem *derSubject, | 35 SEC_CertNicknameConflict(const char *nickname, const SECItem *derSubject, |
36 CERTCertDBHandle *handle) | 36 CERTCertDBHandle *handle) |
37 { | 37 { |
38 CERTCertificate *cert; | 38 CERTCertificate *cert; |
39 PRBool conflict = PR_FALSE; | 39 PRBool conflict = PR_FALSE; |
40 | 40 |
41 cert=CERT_FindCertByNickname(handle, nickname); | 41 cert=CERT_FindCertByNickname(handle, nickname); |
42 | 42 |
43 if (!cert) { | 43 if (!cert) { |
44 return conflict; | 44 return conflict; |
45 } | 45 } |
(...skipping 1017 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 |
OLD | NEW |