summaryrefslogtreecommitdiff
path: root/test/encryption_test.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-11-08 23:56:52 +0000
committerCarl Hetherington <cth@carlh.net>2018-11-08 23:56:52 +0000
commit27e1378bede33c51835fd6307239692909d834d8 (patch)
tree1c0da933f146ad814b99f80b61fa5f6aa2d684a9 /test/encryption_test.cc
parent4af8d182454ef8452210612c396d514077cd27e1 (diff)
Take thumbprint rather than a full dcp::Certificate for trusted devices.
Diffstat (limited to 'test/encryption_test.cc')
-rw-r--r--test/encryption_test.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/encryption_test.cc b/test/encryption_test.cc
index 42b93bb0..d7b9aefa 100644
--- a/test/encryption_test.cc
+++ b/test/encryption_test.cc
@@ -1,5 +1,5 @@
/*
- Copyright (C) 2013-2015 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2013-2018 Carl Hetherington <cth@carlh.net>
This file is part of libdcp.
@@ -40,6 +40,7 @@
#include <boost/shared_ptr.hpp>
using std::vector;
+using std::string;
using boost::shared_ptr;
/** Load a certificate chain from build/test/data/ *.pem and then build
@@ -135,7 +136,7 @@ BOOST_AUTO_TEST_CASE (encryption_test)
"2012-07-17T04:45:18+00:00"
);
- kdm.encrypt (signer, signer->leaf(), vector<dcp::Certificate>(), dcp::MODIFIED_TRANSITIONAL_1, true, 0).as_xml ("build/test/encryption_test.kdm.xml");
+ kdm.encrypt (signer, signer->leaf(), vector<string>(), dcp::MODIFIED_TRANSITIONAL_1, true, 0).as_xml ("build/test/encryption_test.kdm.xml");
int r = system (
"xmllint --path schema --nonet --noout --schema schema/SMPTE-430-1-2006-Amd-1-2009-KDM.xsd build/test/encryption_test.kdm.xml "