Add test for CT_POLICY_EVAL_CTX default time
authorRob Percival <robpercival@google.com>
Tue, 15 Nov 2016 10:42:57 +0000 (10:42 +0000)
committerRich Salz <rsalz@openssl.org>
Tue, 15 Nov 2016 21:32:58 +0000 (16:32 -0500)
commit5229bbe73909c1f62b8696f20d0a291f7afc767c
tree26c8af31d302dda9b143080226c12cc84740ba84
parentf567076cf343cbfe084c133c5bfc59b3d55122ef
Add test for CT_POLICY_EVAL_CTX default time

Checks that the epoch_time_in_ms field of CT_POLICY_EVAL_CTX is initialized
to approximately the current time (as returned by time()) by default. This
prevents the addition of this field, and its verification during SCT
validation, from breaking existing code that calls SCT_validate directly.

Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/1554)
(cherry picked from commit ebcb536858a271e8812fb9bbafbc0b825e5ece24)
test/ct_test.c