summaryrefslogtreecommitdiff
path: root/test/round_trip_test.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-07-20 23:38:07 +0100
committerCarl Hetherington <cth@carlh.net>2014-07-20 23:38:07 +0100
commit26f6ead44ff6bcb259c1755f91beb0a9e3eee988 (patch)
tree00a3afe3375208ce7cd8f2650fefd368467fc5aa /test/round_trip_test.cc
parente52f18d28d90c9deba31a441d566db94be0571b2 (diff)
Allow loading of EncryptedKDMs from strings.
Diffstat (limited to 'test/round_trip_test.cc')
-rw-r--r--test/round_trip_test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/round_trip_test.cc b/test/round_trip_test.cc
index b0594931..94097e75 100644
--- a/test/round_trip_test.cc
+++ b/test/round_trip_test.cc
@@ -80,7 +80,7 @@ BOOST_AUTO_TEST_CASE (round_trip_test)
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), signer->key ());
+ dcp::DecryptedKDM kdm_B (dcp::EncryptedKDM (dcp::file_to_string (kdm_file)), signer->key ());
/* Check that the decrypted KDMKeys are the same as the ones we started with */
BOOST_CHECK_EQUAL (kdm_A.keys().size(), kdm_B.keys().size());