diff options
author | Rich Salz <rsalz@openssl.org> | 2017-06-11 22:36:07 +0200 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2017-06-11 22:36:07 +0200 |
commit | 04e62715db684d83bffac53793ff4cfac51e047a (patch) | |
tree | b286fb5cda68811e59d3bc5779cec8b9ff2e14ed /test/time_offset_test.c | |
parent | doc/man3: use the documented coding style in the example code (diff) | |
download | openssl-04e62715db684d83bffac53793ff4cfac51e047a.tar.xz openssl-04e62715db684d83bffac53793ff4cfac51e047a.zip |
Introduce ASN1_TIME_set_string_X509 API
Make funcs to deal with non-null-term'd string
in both asn1_generalizedtime_to_tm() and asn1_utctime_to_tm().
Fixes issue #3444.
This one is used to enforce strict format (RFC 5280) check and to
convert GeneralizedTime to UTCTime.
apps/ca has been changed to use the new API.
Test cases and documentation are updated/added
Signed-off-by: Paul Yang <paulyang.inf@gmail.com>
Reviewed-by: Kurt Roeckx <kurt@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3566)
Diffstat (limited to 'test/time_offset_test.c')
-rw-r--r-- | test/time_offset_test.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/time_offset_test.c b/test/time_offset_test.c index 7b4bec92c5..6660aee5dc 100644 --- a/test/time_offset_test.c +++ b/test/time_offset_test.c @@ -74,6 +74,7 @@ static int test_offset(int idx) at.data = (unsigned char*)testdata->data; at.length = strlen(testdata->data); at.type = testdata->type; + at.flags = 0; if (!TEST_true(ASN1_TIME_diff(&day, &sec, &the_asn1_time, &at))) { TEST_info("ASN1_TIME_diff() failed for %s\n", at.data); |