From dcc552b9edfdead0736cdf54ada4a6a479e09016 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 29 Dec 2024 17:00:15 +0100 Subject: Sign DCPs made during verification tests. --- test/verify_test.cc | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/test/verify_test.cc b/test/verify_test.cc index 51448297..72e84f29 100644 --- a/test/verify_test.cc +++ b/test/verify_test.cc @@ -214,7 +214,11 @@ write_dcp_with_single_asset (path dir, shared_ptr reel_asset, dc auto dcp = make_shared(dir); dcp->add (cpl); dcp->set_annotation_text("hello"); - dcp->write_xml (); + + auto signer = make_shared(dcp::file_to_string("test/data/certificate_chain")); + signer->set_key(dcp::file_to_string("test/data/private.key")); + + dcp->write_xml(signer); return cpl; } @@ -5789,13 +5793,7 @@ BOOST_AUTO_TEST_CASE(verify_encrypted_smpte_dcp) ok(dcp::VerificationNote::Code::ALL_ENCRYPTED, cpl), dcp::VerificationNote( dcp::VerificationNote::Type::BV21_ERROR, dcp::VerificationNote::Code::MISSING_CPL_METADATA, canonical(cpl_file) - ).set_cpl_id(cpl->id()), - dcp::VerificationNote( - dcp::VerificationNote::Type::BV21_ERROR, dcp::VerificationNote::Code::UNSIGNED_CPL_WITH_ENCRYPTED_CONTENT, canonical(cpl_file) - ).set_cpl_id(cpl->id()), - dcp::VerificationNote( - dcp::VerificationNote::Type::BV21_ERROR, dcp::VerificationNote::Code::UNSIGNED_PKL_WITH_ENCRYPTED_CONTENT, filename_to_id(pkl_file.filename()), canonical(pkl_file) - ) + ).set_cpl_id(cpl->id()) }); } -- cgit v1.2.3