Allow callers to force ASN.1 date encoding as GENERALIZEDTIME.

This commit is contained in:
Tobias Brunner
2011-12-23 18:07:39 +01:00
parent f4095fdc8a
commit e86b685da5
6 changed files with 16 additions and 14 deletions
+2 -2
View File
@@ -2316,8 +2316,8 @@ static bool generate(private_x509_cert_t *cert, certificate_t *sign_cert,
asn1_algorithmIdentifier(cert->algorithm),
issuer->get_encoding(issuer),
asn1_wrap(ASN1_SEQUENCE, "mm",
asn1_from_time(&cert->notBefore),
asn1_from_time(&cert->notAfter)),
asn1_from_time(&cert->notBefore, ASN1_UTCTIME),
asn1_from_time(&cert->notAfter, ASN1_UTCTIME)),
subject->get_encoding(subject),
key_info, extensions);