diff options
| author | Carl Hetherington <cth@carlh.net> | 2017-02-12 20:57:10 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2017-02-12 20:57:10 +0000 |
| commit | db86ed51ba8de94306c949d7b209a7f5f6b75075 (patch) | |
| tree | acfac14a4502bd81abd0d13dcfd9ac122029b812 /src/decrypted_kdm.h | |
| parent | c8ba5b07c7a8ae814abba14dbe9c435035f89d87 (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.h | 16 |
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. * |
