{
auto c = Config::instance();
- auto cert = c->decryption_chain()->leaf();
+ auto crypt_cert = c->decryption_chain()->leaf();
/* Cinema A: UTC +4:30 */
auto cinema_a = make_shared<Cinema>("Cinema A", list<string>(), "", 4, 30);
- cinema_a_screen_1 = std::make_shared<dcpomatic::Screen>("Screen 1", "", cert, boost::none, vector<TrustedDevice>());
+ cinema_a_screen_1 = std::make_shared<dcpomatic::Screen>("Screen 1", "", crypt_cert, boost::none, vector<TrustedDevice>());
cinema_a->add_screen (cinema_a_screen_1);
- cinema_a_screen_2 = std::make_shared<dcpomatic::Screen>("Screen 2", "", cert, boost::none, vector<TrustedDevice>());
+ cinema_a_screen_2 = std::make_shared<dcpomatic::Screen>("Screen 2", "", crypt_cert, boost::none, vector<TrustedDevice>());
cinema_a->add_screen (cinema_a_screen_2);
c->add_cinema (cinema_a);
/* Cinema B: UTC -1:00 */
auto cinema_b = make_shared<Cinema>("Cinema B", list<string>(), "", -1, 0);
- cinema_b_screen_x = std::make_shared<dcpomatic::Screen>("Screen X", "", cert, boost::none, vector<TrustedDevice>());
+ cinema_b_screen_x = std::make_shared<dcpomatic::Screen>("Screen X", "", crypt_cert, boost::none, vector<TrustedDevice>());
cinema_b->add_screen (cinema_b_screen_x);
- cinema_b_screen_y = std::make_shared<dcpomatic::Screen>("Screen Y", "", cert, boost::none, vector<TrustedDevice>());
+ cinema_b_screen_y = std::make_shared<dcpomatic::Screen>("Screen Y", "", crypt_cert, boost::none, vector<TrustedDevice>());
cinema_b->add_screen (cinema_b_screen_y);
- cinema_b_screen_z = std::make_shared<dcpomatic::Screen>("Screen Z", "", cert, boost::none, vector<TrustedDevice>());
+ cinema_b_screen_z = std::make_shared<dcpomatic::Screen>("Screen Z", "", crypt_cert, boost::none, vector<TrustedDevice>());
cinema_b->add_screen (cinema_b_screen_z);
c->add_cinema (cinema_a);
auto cpls = film->cpls ();
BOOST_REQUIRE(cpls.size() == 1);
- dcp::LocalTime from (cert.not_before());
+ auto sign_cert = c->signer_chain()->leaf();
+
+ dcp::LocalTime from (sign_cert.not_before());
from.add_months (2);
- dcp::LocalTime until (cert.not_after());
+ dcp::LocalTime until (sign_cert.not_after());
until.add_months (-2);
auto const from_string = from.date() + " " + from.time_of_day(true, false);
{
using boost::filesystem::path;
- auto cert = Config::instance()->decryption_chain()->leaf();
-
/* Film */
boost::filesystem::remove_all ("build/test/directory_kdm_naming_test");
auto film = new_test_film2 (
auto cpls = film->cpls ();
BOOST_REQUIRE(cpls.size() == 1);
- dcp::LocalTime from (cert.not_before());
+ auto sign_cert = Config::instance()->signer_chain()->leaf();
+
+ dcp::LocalTime from (sign_cert.not_before());
from.add_months (2);
- dcp::LocalTime until (cert.not_after());
+ dcp::LocalTime until (sign_cert.not_after());
until.add_months (-2);
string const from_string = from.date() + " " + from.time_of_day(true, false);