summaryrefslogtreecommitdiff
path: root/src/lib/writer.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-06-08 02:11:18 +0200
committerCarl Hetherington <cth@carlh.net>2020-06-08 17:09:15 +0200
commit8755ef75cb001cf7fba230ffa98fb40eb2547849 (patch)
treea6884e631d07c0d01e57dab6b9612f584b202426 /src/lib/writer.cc
parentce9ca273648d879a4aee700593b757147336d884 (diff)
Always sign DCPs (#1760).
Diffstat (limited to 'src/lib/writer.cc')
-rw-r--r--src/lib/writer.cc16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/lib/writer.cc b/src/lib/writer.cc
index 699f220c4..8682437b3 100644
--- a/src/lib/writer.cc
+++ b/src/lib/writer.cc
@@ -98,9 +98,9 @@ Writer::Writer (shared_ptr<const Film> film, weak_ptr<Job> j)
_caption_reels[i] = _reels.begin ();
}
- /* Check that the signer is OK if we need one */
+ /* Check that the signer is OK */
string reason;
- if (_film->is_signed() && !Config::instance()->signer_chain()->valid(&reason)) {
+ if (!Config::instance()->signer_chain()->valid(&reason)) {
throw InvalidSignerError (reason);
}
}
@@ -570,13 +570,11 @@ Writer::finish ()
cpl->set_content_version_label_text (_film->content_version());
shared_ptr<const dcp::CertificateChain> signer;
- if (_film->is_signed ()) {
- signer = Config::instance()->signer_chain ();
- /* We did check earlier, but check again here to be on the safe side */
- string reason;
- if (!signer->valid (&reason)) {
- throw InvalidSignerError (reason);
- }
+ signer = Config::instance()->signer_chain ();
+ /* We did check earlier, but check again here to be on the safe side */
+ string reason;
+ if (!signer->valid (&reason)) {
+ throw InvalidSignerError (reason);
}
dcp.write_xml (_film->interop () ? dcp::INTEROP : dcp::SMPTE, meta, signer, Config::instance()->dcp_metadata_filename_format());