Allow config of the full KDM decryption chain.
[dcpomatic.git] / src / lib / dcp_examiner.cc
index 633e8e9d77a56409c89b7e41f3bfc172c8f12792..5da4a50023cad0d6f5b6138376115f889fa39e34 100644 (file)
@@ -51,7 +51,7 @@ DCPExaminer::DCPExaminer (shared_ptr<const DCPContent> content)
        dcp.read ();
 
        if (content->kdm ()) {
-               dcp.add (dcp::DecryptedKDM (content->kdm().get(), Config::instance()->decryption_private_key ()));
+               dcp.add (dcp::DecryptedKDM (content->kdm().get(), Config::instance()->decryption_chain()->key().get ()));
        }
 
        if (dcp.cpls().size() == 0) {