Check that KDM validity periods are safely within the validity periods
authorCarl Hetherington <cth@carlh.net>
Sun, 1 Dec 2019 22:13:25 +0000 (23:13 +0100)
committerCarl Hetherington <cth@carlh.net>
Sun, 1 Dec 2019 22:13:25 +0000 (23:13 +0100)
commit9a5809be580c1a12864d751a710f6783363d3de7
tree2039fc251ed6bb5abcfe2fd6daa2fe572fac144e
parentc78523806e89e4c43015816fcd20db2549992464
Check that KDM validity periods are safely within the validity periods
of the signing certificate chain.

This does cause problems when you try to create a KDM for a certificate
you just made (due to the fact that certificates always have a start-valid
time of "now") but hopefully this can be fixed up in another commit.
src/decrypted_kdm.cc
src/exceptions.cc
src/exceptions.h
src/local_time.h
src/util.cc
src/util.h
test/encryption_test.cc
test/kdm_test.cc
test/round_trip_test.cc
test/util_test.cc