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 /* | 5 /* |
6 * Certificate handling code | 6 * Certificate handling code |
7 * | |
8 * $Id$ | |
9 */ | 7 */ |
10 | 8 |
11 #include "nssilock.h" | 9 #include "nssilock.h" |
12 #include "prmon.h" | 10 #include "prmon.h" |
13 #include "prtime.h" | 11 #include "prtime.h" |
14 #include "cert.h" | 12 #include "cert.h" |
15 #include "certi.h" | 13 #include "certi.h" |
16 #include "secder.h" | 14 #include "secder.h" |
17 #include "secoid.h" | 15 #include "secoid.h" |
18 #include "secasn1.h" | 16 #include "secasn1.h" |
(...skipping 3246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3265 CERTCertificate *cert = NULL; | 3263 CERTCertificate *cert = NULL; |
3266 SECItem *derCert; | 3264 SECItem *derCert; |
3267 | 3265 |
3268 derCert = cert_FindDERCertBySubjectKeyID(subjKeyID); | 3266 derCert = cert_FindDERCertBySubjectKeyID(subjKeyID); |
3269 if (derCert) { | 3267 if (derCert) { |
3270 cert = CERT_FindCertByDERCert(handle, derCert); | 3268 cert = CERT_FindCertByDERCert(handle, derCert); |
3271 SECITEM_FreeItem(derCert, PR_TRUE); | 3269 SECITEM_FreeItem(derCert, PR_TRUE); |
3272 } | 3270 } |
3273 return cert; | 3271 return cert; |
3274 } | 3272 } |
OLD | NEW |