aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/plugins/x509/x509_ac.c
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2011-12-23 18:01:31 +0100
committerTobias Brunner <tobias@strongswan.org>2011-12-23 18:07:39 +0100
commite86b685da500f58caf1a59dceee0a2c91be275d6 (patch)
tree89068040d4740ed250dc78193e1a50254ab5c32c /src/libstrongswan/plugins/x509/x509_ac.c
parentf4095fdc8a22e44d2574d05f6059ed53471dee31 (diff)
downloadstrongswan-e86b685da500f58caf1a59dceee0a2c91be275d6.tar.bz2
strongswan-e86b685da500f58caf1a59dceee0a2c91be275d6.tar.xz
Allow callers to force ASN.1 date encoding as GENERALIZEDTIME.
Diffstat (limited to 'src/libstrongswan/plugins/x509/x509_ac.c')
-rw-r--r--src/libstrongswan/plugins/x509/x509_ac.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstrongswan/plugins/x509/x509_ac.c b/src/libstrongswan/plugins/x509/x509_ac.c
index 7492aeb68..a2cb589e0 100644
--- a/src/libstrongswan/plugins/x509/x509_ac.c
+++ b/src/libstrongswan/plugins/x509/x509_ac.c
@@ -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));
}