summaryrefslogtreecommitdiff
path: root/src/decrypted_kdm.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2017-02-12 20:57:10 +0000
committerCarl Hetherington <cth@carlh.net>2017-02-12 20:57:10 +0000
commitdb86ed51ba8de94306c949d7b209a7f5f6b75075 (patch)
treeacfac14a4502bd81abd0d13dcfd9ac122029b812 /src/decrypted_kdm.h
parentc8ba5b07c7a8ae814abba14dbe9c435035f89d87 (diff)
Add new constructor. Remove believed unnecessary check for KDM assets being ReelAssets. Use add_key() more.
Diffstat (limited to 'src/decrypted_kdm.h')
-rw-r--r--src/decrypted_kdm.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/decrypted_kdm.h b/src/decrypted_kdm.h
index 356b9883..752ced04 100644
--- a/src/decrypted_kdm.h
+++ b/src/decrypted_kdm.h
@@ -1,5 +1,5 @@
/*
- Copyright (C) 2013-2016 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2013-2017 Carl Hetherington <cth@carlh.net>
This file is part of libdcp.
@@ -54,6 +54,7 @@ class DecryptedKDMKey;
class EncryptedKDM;
class CertificateChain;
class CPL;
+class ReelMXF;
/** @class DecryptedKDM
* @brief A decrypted KDM.
@@ -86,6 +87,19 @@ public:
std::string issue_date
);
+ /** Construct a DecryptedKDM containing a given set of keys.
+ * @param keys Keys to be included in the DecryptedKDM.
+ */
+ DecryptedKDM (
+ std::string cpl_id,
+ std::map<boost::shared_ptr<const ReelMXF>, Key> keys,
+ LocalTime not_valid_before,
+ LocalTime not_valid_after,
+ std::string annotation_text,
+ std::string content_title_text,
+ std::string issue_date
+ );
+
/** Create a DecryptedKDM by taking a CPL and setting up to encrypt each of its
* assets with the same symmetric key.
*