diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-09-24 18:54:09 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-09-24 18:54:09 +0100 |
| commit | 725c1f0ead60e73e9dbc17337c416ac4d2720c55 (patch) | |
| tree | 132b82fbdb44320e74289ee6400c4a39d162439e /test/encryption_test.cc | |
| parent | b0b83d69f38a8239f3df1e2872b6cfebf9f84af8 (diff) | |
Various KDM work.
Diffstat (limited to 'test/encryption_test.cc')
| -rw-r--r-- | test/encryption_test.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/test/encryption_test.cc b/test/encryption_test.cc index 6e4a61d6..961d281b 100644 --- a/test/encryption_test.cc +++ b/test/encryption_test.cc @@ -17,6 +17,8 @@ */ +#include "kdm.h" + /* Load a certificate chain from build/test/data/ *.pem and then build an encrypted DCP and a KDM using it. */ @@ -87,17 +89,16 @@ BOOST_AUTO_TEST_CASE (encryption) d.write_xml (false, xml_metadata, signer); - shared_ptr<xmlpp::Document> kdm = cpl->make_kdm ( + libdcp::KDM kdm ( + cpl, 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, mxf_metadata, xml_metadata ); - kdm->write_to_file_formatted ("build/test/bar.kdm.xml", "UTF-8"); + kdm.as_xml ("build/test/bar.kdm.xml"); system ("xmllint --path schema --nonet --noout --schema schema/SMPTE-430-1-2006-Amd-1-2009-KDM.xsd build/test/bar.kdm.xml"); } |
