summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-09-20 20:20:36 +0100
committerCarl Hetherington <cth@carlh.net>2013-09-20 20:20:36 +0100
commit65013fcc46474df4c11f69b674e79af465688531 (patch)
treef2844b35faf9a793e0e198bf790a6163e65fa1b0 /test
parent30e2f6f873002d16aeae707879ea15c1c63a4323 (diff)
More encryption fixes.
Diffstat (limited to 'test')
-rw-r--r--test/encryption_test.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/encryption_test.cc b/test/encryption_test.cc
index 3501befc..888011aa 100644
--- a/test/encryption_test.cc
+++ b/test/encryption_test.cc
@@ -64,7 +64,9 @@ BOOST_AUTO_TEST_CASE (encryption)
mxf_metadata
));
- mp->set_key (libdcp::Key ());
+ libdcp::Key key;
+
+ mp->set_key (key);
shared_ptr<libdcp::SoundAsset> ms (new libdcp::SoundAsset (
wav,
@@ -78,7 +80,7 @@ BOOST_AUTO_TEST_CASE (encryption)
mxf_metadata
));
- ms->set_key (libdcp::Key ());
+ ms->set_key (key);
cpl->add_reel (shared_ptr<libdcp::Reel> (new libdcp::Reel (mp, ms, shared_ptr<libdcp::SubtitleAsset> ())));
d.add_cpl (cpl);
@@ -88,6 +90,7 @@ BOOST_AUTO_TEST_CASE (encryption)
shared_ptr<xmlpp::Document> kdm = cpl->make_kdm (
signer,
signer->certificates().leaf(),
+ key,
boost::posix_time::time_from_string ("2013-01-01 00:00:00"),
boost::posix_time::time_from_string ("2013-01-08 00:00:00"),
false,