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:12:41 +0000 (16:12 -0500)
commitebcb536858a271e8812fb9bbafbc0b825e5ece24
tree864bbb2b7af0a19a65834850fa2f159b39d70948
parent08e588b7d5cefbfd107c88416900165a28a5b59e
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)
test/ct_test.c