X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=test%2Fimport_dcp_test.cc;h=cfac511b32e9e78f285eab944e58f8436b781a5c;hp=3620a55c59552e9c7de6ff886b5b31e245ce78de;hb=6d686ea45f5cd01a0d11f92a903ac77779ad8562;hpb=ea63ad9560757e56505551db3bf2e1c31be5c76c diff --git a/test/import_dcp_test.cc b/test/import_dcp_test.cc index 3620a55c5..cfac511b3 100644 --- a/test/import_dcp_test.cc +++ b/test/import_dcp_test.cc @@ -54,6 +54,8 @@ using std::make_shared; /** Make an encrypted DCP, import it and make a new unencrypted DCP */ BOOST_AUTO_TEST_CASE (import_dcp_test) { + ConfigRestorer cr; + auto A = new_test_film ("import_dcp_test"); A->set_container (Ratio::from_id ("185")); A->set_dcp_content_type (DCPContentType::from_isdcf_name ("TLR")); @@ -70,9 +72,8 @@ BOOST_AUTO_TEST_CASE (import_dcp_test) dcp::DCP A_dcp ("build/test/import_dcp_test/" + A->dcp_name()); A_dcp.read (); - Config::instance()->set_decryption_chain (make_shared(openssl_path())); + Config::instance()->set_decryption_chain (make_shared(openssl_path(), CERTIFICATE_VALIDITY_PERIOD)); - /* Dear future-carl: I suck! I thought you wouldn't still be running these tests in 2030! Sorry! */ auto kdm = A->make_kdm ( Config::instance()->decryption_chain()->leaf (), vector(),