diff options
Diffstat (limited to 'src/lib/film.cc')
| -rw-r--r-- | src/lib/film.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/film.cc b/src/lib/film.cc index 85dc5b168..eaf738b8b 100644 --- a/src/lib/film.cc +++ b/src/lib/film.cc @@ -1078,9 +1078,14 @@ Film::make_kdm ( ) const { shared_ptr<const dcp::CPL> cpl (new dcp::CPL (cpl_file)); + shared_ptr<const dcp::Signer> signer = Config::instance()->signer(); + if (!signer->valid ()) { + throw InvalidSignerError (); + } + return dcp::DecryptedKDM ( cpl, from, until, "DCP-o-matic", cpl->content_title_text(), dcp::LocalTime().as_string() - ).encrypt (make_signer(), target, formulation); + ).encrypt (signer, target, formulation); } list<dcp::EncryptedKDM> |
