summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-06-26 20:33:19 +0100
committerCarl Hetherington <cth@carlh.net>2014-06-26 20:33:19 +0100
commitd87f979ea98a19614f164a0d49fccc1be926e789 (patch)
tree5558493eb6c717f59c587e01a3041d122eb346f4 /test
parentecd8cbc534e82d0644d15fa483c2b6bf54876276 (diff)
Forward-port KDM formulation from v0.
Diffstat (limited to 'test')
-rw-r--r--test/encryption_test.cc2
-rw-r--r--test/round_trip_test.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/encryption_test.cc b/test/encryption_test.cc
index d5cd46d4..9a3660f9 100644
--- a/test/encryption_test.cc
+++ b/test/encryption_test.cc
@@ -136,7 +136,7 @@ BOOST_AUTO_TEST_CASE (encryption_test)
"2012-07-17T04:45:18+00:00"
);
- kdm.encrypt(signer, signer->certificates().leaf()).as_xml ("build/test/bar.kdm.xml");
+ kdm.encrypt(signer, signer->certificates().leaf(), dcp::MODIFIED_TRANSITIONAL_1).as_xml ("build/test/bar.kdm.xml");
int r = system (
"xmllint --path schema --nonet --noout --schema schema/SMPTE-430-1-2006-Amd-1-2009-KDM.xsd build/test/bar.kdm.xml "
diff --git a/test/round_trip_test.cc b/test/round_trip_test.cc
index ef1f1f41..311fe6d5 100644
--- a/test/round_trip_test.cc
+++ b/test/round_trip_test.cc
@@ -90,7 +90,7 @@ BOOST_AUTO_TEST_CASE (round_trip_test)
boost::filesystem::path const kdm_file = work_dir / "kdm.xml";
- kdm_A.encrypt(signer, signer->certificates().leaf()).as_xml (kdm_file);
+ kdm_A.encrypt(signer, signer->certificates().leaf(), dcp::MODIFIED_TRANSITIONAL_1).as_xml (kdm_file);
/* Reload the KDM, using our private key to decrypt it */
dcp::DecryptedKDM kdm_B (dcp::EncryptedKDM (kdm_file), "build/test/signer/leaf.key");