From ec1bc8a03a2946738b7a4319daee4cf9e566e094 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 10 Dec 2018 20:34:35 +0000 Subject: [PATCH] Accept chains in files as well as individual certificates. --- ChangeLog | 5 +++++ src/tools/dcpomatic_kdm_cli.cc | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 6a1211294..0ef01127e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2018-12-10 Carl Hetherington + + * Accept certificate chains to dcpomatic2_kdm_cli as well + as single certificates. + 2018-12-08 Carl Hetherington * Prototype system to allow in-place translations. diff --git a/src/tools/dcpomatic_kdm_cli.cc b/src/tools/dcpomatic_kdm_cli.cc index b258d68f1..84eb989ee 100644 --- a/src/tools/dcpomatic_kdm_cli.cc +++ b/src/tools/dcpomatic_kdm_cli.cc @@ -504,7 +504,8 @@ int main (int argc, char* argv[]) case 'C': { /* Make a new screen and add it to the current cinema */ - shared_ptr screen (new Screen (screen_description, dcp::Certificate (dcp::file_to_string (optarg)), vector())); + dcp::CertificateChain chain (dcp::file_to_string(optarg)); + shared_ptr screen (new Screen (screen_description, chain.leaf(), vector())); if (cinema) { cinema->add_screen (screen); } -- 2.30.2