From 8d6c3c9ae554430582dcb016897e87f6d04d5d78 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 19 Sep 2013 20:44:42 +0100 Subject: Various encryption-related stuff. --- test/encryption_test.cc | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'test/encryption_test.cc') diff --git a/test/encryption_test.cc b/test/encryption_test.cc index 1b0de19a..3501befc 100644 --- a/test/encryption_test.cc +++ b/test/encryption_test.cc @@ -39,9 +39,9 @@ BOOST_AUTO_TEST_CASE (encryption) libdcp::DCP d ("build/test/DCP/bar"); libdcp::CertificateChain chain; - chain.add (shared_ptr (new libdcp::Certificate ("build/test/signer/ca.self-signed.pem"))); - chain.add (shared_ptr (new libdcp::Certificate ("build/test/signer/intermediate.signed.pem"))); - chain.add (shared_ptr (new libdcp::Certificate ("build/test/signer/leaf.signed.pem"))); + chain.add (shared_ptr (new libdcp::Certificate (boost::filesystem::path ("build/test/signer/ca.self-signed.pem")))); + chain.add (shared_ptr (new libdcp::Certificate (boost::filesystem::path ("build/test/signer/intermediate.signed.pem")))); + chain.add (shared_ptr (new libdcp::Certificate (boost::filesystem::path ("build/test/signer/leaf.signed.pem")))); shared_ptr signer ( new libdcp::Signer ( @@ -59,12 +59,13 @@ BOOST_AUTO_TEST_CASE (encryption) &d.Progress, 24, 24, - true, libdcp::Size (32, 32), false, mxf_metadata )); + mp->set_key (libdcp::Key ()); + shared_ptr ms (new libdcp::SoundAsset ( wav, "build/test/bar", @@ -73,10 +74,11 @@ BOOST_AUTO_TEST_CASE (encryption) 24, 24, 2, - true, false, mxf_metadata )); + + ms->set_key (libdcp::Key ()); cpl->add_reel (shared_ptr (new libdcp::Reel (mp, ms, shared_ptr ()))); d.add_cpl (cpl); -- cgit v1.2.3