summaryrefslogtreecommitdiff
path: root/test/encryption_test.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-09-18 18:46:58 +0100
committerCarl Hetherington <cth@carlh.net>2013-09-18 18:46:58 +0100
commit781982ea9a78f88fef130dc08cd028b7e5f47937 (patch)
tree5132d1abeecd40814b06d148bfd126b3b48b2604 /test/encryption_test.cc
parent56782052e43a1e010f7f07cbc0dbaed5b6cb50a3 (diff)
A few encryption-related fixes and comments.
Diffstat (limited to 'test/encryption_test.cc')
-rw-r--r--test/encryption_test.cc13
1 files changed, 8 insertions, 5 deletions
diff --git a/test/encryption_test.cc b/test/encryption_test.cc
index eb32afaa..0df798f2 100644
--- a/test/encryption_test.cc
+++ b/test/encryption_test.cc
@@ -17,7 +17,7 @@
*/
-/* Load a certificate chain from build/test/data/*.pem and then build
+/* Load a certificate chain from build/test/data/ *.pem and then build
an encrypted DCP and a KDM using it.
*/
BOOST_AUTO_TEST_CASE (encryption)
@@ -39,9 +39,9 @@ BOOST_AUTO_TEST_CASE (encryption)
libdcp::DCP d ("build/test/DCP/bar");
libdcp::CertificateChain chain;
- chain.add (shared_ptr<libdcp::Certificate> (new libdcp::Certificate ("build/test/data/ca.self-signed.pem")));
- chain.add (shared_ptr<libdcp::Certificate> (new libdcp::Certificate ("build/test/data/intermediate.signed.pem")));
- chain.add (shared_ptr<libdcp::Certificate> (new libdcp::Certificate ("build/test/data/leaf.signed.pem")));
+ chain.add (shared_ptr<libdcp::Certificate> (new libdcp::Certificate ("build/test/crypt/ca.self-signed.pem")));
+ chain.add (shared_ptr<libdcp::Certificate> (new libdcp::Certificate ("build/test/crypt/intermediate.signed.pem")));
+ chain.add (shared_ptr<libdcp::Certificate> (new libdcp::Certificate ("build/test/crypt/leaf.signed.pem")));
shared_ptr<libdcp::Encryption> crypt (
new libdcp::Encryption (
@@ -61,6 +61,7 @@ BOOST_AUTO_TEST_CASE (encryption)
24,
true,
libdcp::Size (32, 32),
+ false,
mxf_metadata
));
@@ -73,13 +74,14 @@ BOOST_AUTO_TEST_CASE (encryption)
24,
2,
true,
+ false,
mxf_metadata
));
cpl->add_reel (shared_ptr<libdcp::Reel> (new libdcp::Reel (mp, ms, shared_ptr<libdcp::SubtitleAsset> ())));
d.add_cpl (cpl);
- d.write_xml (xml_metadata, crypt);
+ d.write_xml (false, xml_metadata, crypt);
shared_ptr<xmlpp::Document> kdm = cpl->make_kdm (
crypt->certificates,
@@ -87,6 +89,7 @@ BOOST_AUTO_TEST_CASE (encryption)
crypt->certificates.leaf(),
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,
mxf_metadata,
xml_metadata
);