From c222a2b4a0cadd0332ee6b30309fca79a773f381 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 23 Dec 2019 01:09:36 +0100 Subject: [PATCH] Fix error when trying to make DCP-o-matic DKDMs due to attempts to make the validity time wider than that of the signing certificate. --- src/tools/dcpomatic.cc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/tools/dcpomatic.cc b/src/tools/dcpomatic.cc index 4ddedab41..a8930f81f 100644 --- a/src/tools/dcpomatic.cc +++ b/src/tools/dcpomatic.cc @@ -875,14 +875,19 @@ private: ) ); + + dcp::LocalTime from (Config::instance()->decryption_chain()->leaf().not_before()); + from.add_months (1); + dcp::LocalTime to (Config::instance()->decryption_chain()->leaf().not_after()); + to.add_months (-1); + optional kdm; try { kdm = _film->make_kdm ( Config::instance()->decryption_chain()->leaf(), vector(), d->cpl (), - dcp::LocalTime ("2012-01-01T01:00:00+00:00"), - dcp::LocalTime ("2112-01-01T01:00:00+00:00"), + from, to, dcp::MODIFIED_TRANSITIONAL_1, true, 0 -- 2.30.2