diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-12-23 01:09:36 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-12-23 01:09:36 +0100 |
| commit | c222a2b4a0cadd0332ee6b30309fca79a773f381 (patch) | |
| tree | 3119533f216ce97c84794edcc524e1eb51635a4d /src | |
| parent | ec83c503a58963602a5e1ef592c47ae7ad49d33e (diff) | |
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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/tools/dcpomatic.cc | 9 |
1 files 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<dcp::EncryptedKDM> kdm; try { kdm = _film->make_kdm ( Config::instance()->decryption_chain()->leaf(), vector<string>(), 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 |
