diff options
author | Tobias Brunner <tobias@strongswan.org> | 2011-12-23 18:01:31 +0100 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2011-12-23 18:07:39 +0100 |
commit | e86b685da500f58caf1a59dceee0a2c91be275d6 (patch) | |
tree | 89068040d4740ed250dc78193e1a50254ab5c32c /src/libstrongswan/plugins/x509/x509_cert.c | |
parent | f4095fdc8a22e44d2574d05f6059ed53471dee31 (diff) | |
download | strongswan-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_cert.c')
-rw-r--r-- | src/libstrongswan/plugins/x509/x509_cert.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstrongswan/plugins/x509/x509_cert.c b/src/libstrongswan/plugins/x509/x509_cert.c index 25646a7c2..f828c923a 100644 --- a/src/libstrongswan/plugins/x509/x509_cert.c +++ b/src/libstrongswan/plugins/x509/x509_cert.c @@ -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); |