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
@@ -527,8 +527,8 @@ static chunk_t build_v2_form(private_x509_ac_t *this)
static chunk_t build_attr_cert_validity(private_x509_ac_t *this)
{
return asn1_wrap(ASN1_SEQUENCE, "mm",
asn1_from_time(&this->notBefore),
asn1_from_time(&this->notAfter));
asn1_from_time(&this->notBefore, ASN1_GENERALIZEDTIME),
asn1_from_time(&this->notAfter, ASN1_GENERALIZEDTIME));
}