aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/crypto/pkcs7.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/crypto/pkcs7.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/crypto/pkcs7.c')
-rw-r--r--src/libstrongswan/crypto/pkcs7.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstrongswan/crypto/pkcs7.c b/src/libstrongswan/crypto/pkcs7.c
index 578021aa4..a4d0e71fe 100644
--- a/src/libstrongswan/crypto/pkcs7.c
+++ b/src/libstrongswan/crypto/pkcs7.c
@@ -825,7 +825,7 @@ METHOD(pkcs7_t, build_signedData, bool,
/* take the current time as signingTime */
time_t now = time(NULL);
- chunk_t signingTime = asn1_from_time(&now);
+ chunk_t signingTime = asn1_from_time(&now, ASN1_UTCTIME);
chunk_t messageDigest, attributes;