summaryrefslogtreecommitdiff
path: root/src/decrypted_kdm.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-02-12 21:15:03 +0100
committerCarl Hetherington <cth@carlh.net>2022-02-12 23:13:49 +0100
commitd6b800e1c9a3cdb4f85a2308190afe9f0a856ed4 (patch)
tree439b3c142ac392b9888585d51c463696cef6ff87 /src/decrypted_kdm.cc
parent0a5615c17edf6d9c51d9269c824d6caf71f710e5 (diff)
Cleanup: use dcp::LocalTime for certificate validity times.
Before we were using struct tm but not filling it all in, which seems quite unpleasant.
Diffstat (limited to 'src/decrypted_kdm.cc')
-rw-r--r--src/decrypted_kdm.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/decrypted_kdm.cc b/src/decrypted_kdm.cc
index b2d8e618..592ab717 100644
--- a/src/decrypted_kdm.cc
+++ b/src/decrypted_kdm.cc
@@ -327,9 +327,9 @@ DecryptedKDM::encrypt (
DCP_ASSERT (!_keys.empty ());
for (auto i: signer->leaf_to_root()) {
- if (day_greater_than_or_equal(dcp::LocalTime(i.not_before()), _not_valid_before)) {
+ if (day_greater_than_or_equal(i.not_before(), _not_valid_before)) {
throw BadKDMDateError (true);
- } else if (day_less_than_or_equal(dcp::LocalTime(i.not_after()), _not_valid_after)) {
+ } else if (day_less_than_or_equal(i.not_after(), _not_valid_after)) {
throw BadKDMDateError (false);
}
}