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 * Code for dealing with x.509 v3 crl and crl entries extensions. | 6 * Code for dealing with x.509 v3 crl and crl entries extensions. |
7 * | |
8 * $Id$ | |
9 */ | 7 */ |
10 | 8 |
11 #include "cert.h" | 9 #include "cert.h" |
12 #include "secitem.h" | 10 #include "secitem.h" |
13 #include "secoid.h" | 11 #include "secoid.h" |
14 #include "secoidt.h" | 12 #include "secoidt.h" |
15 #include "secder.h" | 13 #include "secder.h" |
16 #include "secasn1.h" | 14 #include "secasn1.h" |
17 #include "certxutl.h" | 15 #include "certxutl.h" |
18 | 16 |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 | 151 |
154 rv = SEC_ASN1DecodeItem (NULL, &decodedExtenValue, | 152 rv = SEC_ASN1DecodeItem (NULL, &decodedExtenValue, |
155 SEC_ASN1_GET(SEC_GeneralizedTimeTemplate), | 153 SEC_ASN1_GET(SEC_GeneralizedTimeTemplate), |
156 &encodedExtenValue); | 154 &encodedExtenValue); |
157 if (rv == SECSuccess) | 155 if (rv == SECSuccess) |
158 rv = DER_GeneralizedTimeToTime(value, &encodedExtenValue); | 156 rv = DER_GeneralizedTimeToTime(value, &encodedExtenValue); |
159 PORT_Free (decodedExtenValue.data); | 157 PORT_Free (decodedExtenValue.data); |
160 PORT_Free (encodedExtenValue.data); | 158 PORT_Free (encodedExtenValue.data); |
161 return (rv); | 159 return (rv); |
162 } | 160 } |
OLD | NEW |