summaryrefslogtreecommitdiff
path: root/test/decryption_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/decryption_test.cc')
-rw-r--r--test/decryption_test.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/decryption_test.cc b/test/decryption_test.cc
index b5077a46..d9170daa 100644
--- a/test/decryption_test.cc
+++ b/test/decryption_test.cc
@@ -60,7 +60,9 @@ BOOST_AUTO_TEST_CASE (decryption_test)
BOOST_CHECK_EQUAL (encrypted.encrypted (), true);
dcp::DecryptedKDM kdm (
- dcp::EncryptedKDM ("test/data/kdm_TONEPLATES-SMPTE-ENC_.smpte-430-2.ROOT.NOT_FOR_PRODUCTION_20130706_20230702_CAR_OV_t1_8971c838.xml"),
+ dcp::EncryptedKDM (
+ dcp::file_to_string ("test/data/kdm_TONEPLATES-SMPTE-ENC_.smpte-430-2.ROOT.NOT_FOR_PRODUCTION_20130706_20230702_CAR_OV_t1_8971c838.xml")
+ ),
dcp::file_to_string ("test/data/private.key")
);
@@ -80,7 +82,7 @@ BOOST_AUTO_TEST_CASE (decryption_test)
BOOST_AUTO_TEST_CASE (failing_kdm_test)
{
dcp::DecryptedKDM kdm (
- dcp::EncryptedKDM ("test/data/target.pem.crt.de5d4eba-e683-41ca-bdda-aa4ad96af3f4.kdm.xml"),
+ dcp::EncryptedKDM (dcp::file_to_string ("test/data/target.pem.crt.de5d4eba-e683-41ca-bdda-aa4ad96af3f4.kdm.xml")),
dcp::file_to_string ("test/data/private.key")
);
}