diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-06-06 22:10:40 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-06-09 22:33:49 +0100 |
| commit | e6f2a4b0085b35be378f2cdd687146857d61df80 (patch) | |
| tree | 98bf0fe5057db49e1e58afc7769305264073b271 /src/lib/decrypted_ecinema_kdm.h | |
| parent | 951d70db4f81b5ddd4093f11853637c8ecbe63c5 (diff) | |
swaroop: support validity periods in ecinema KDMs.
Diffstat (limited to 'src/lib/decrypted_ecinema_kdm.h')
| -rw-r--r-- | src/lib/decrypted_ecinema_kdm.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/lib/decrypted_ecinema_kdm.h b/src/lib/decrypted_ecinema_kdm.h index 0ddc25615..7a66b63e0 100644 --- a/src/lib/decrypted_ecinema_kdm.h +++ b/src/lib/decrypted_ecinema_kdm.h @@ -28,7 +28,7 @@ class DecryptedECinemaKDM { public: - DecryptedECinemaKDM (std::string id, std::string name, dcp::Key content_key); + DecryptedECinemaKDM (std::string id, std::string name, dcp::Key content_key, boost::optional<dcp::LocalTime> not_valid_before, boost::optional<dcp::LocalTime> not_valid_after); DecryptedECinemaKDM (EncryptedECinemaKDM kdm, std::string private_key); EncryptedECinemaKDM encrypt (dcp::Certificate recipient); @@ -45,11 +45,21 @@ public: return _content_key; } + boost::optional<dcp::LocalTime> not_valid_before () const { + return _not_valid_before; + } + + boost::optional<dcp::LocalTime> not_valid_after () const { + return _not_valid_after; + } + private: std::string _id; std::string _name; /** unenecrypted content key */ dcp::Key _content_key; + boost::optional<dcp::LocalTime> _not_valid_before; + boost::optional<dcp::LocalTime> _not_valid_after; }; #endif |
