X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fdecrypted_ecinema_kdm.h;h=7a66b63e09dbfa32d994ce5bba9804d5436784ef;hb=4219d4b76c5cd5690b1f4fa0c248d93ced26d05a;hp=b0fc2064d65b8c42b0d4af0421be87d1ed73bf0b;hpb=63bab3a5f4abc7c5ef8562f3048b55cb3a24c71f;p=dcpomatic.git diff --git a/src/lib/decrypted_ecinema_kdm.h b/src/lib/decrypted_ecinema_kdm.h index b0fc2064d..7a66b63e0 100644 --- a/src/lib/decrypted_ecinema_kdm.h +++ b/src/lib/decrypted_ecinema_kdm.h @@ -28,13 +28,38 @@ class DecryptedECinemaKDM { public: - DecryptedECinemaKDM (dcp::Key content_key); + DecryptedECinemaKDM (std::string id, std::string name, dcp::Key content_key, boost::optional not_valid_before, boost::optional not_valid_after); + DecryptedECinemaKDM (EncryptedECinemaKDM kdm, std::string private_key); EncryptedECinemaKDM encrypt (dcp::Certificate recipient); + std::string id () const { + return _id; + } + + std::string name () const { + return _name; + } + + dcp::Key key () const { + return _content_key; + } + + boost::optional not_valid_before () const { + return _not_valid_before; + } + + boost::optional not_valid_after () const { + return _not_valid_after; + } + private: + std::string _id; + std::string _name; /** unenecrypted content key */ dcp::Key _content_key; + boost::optional _not_valid_before; + boost::optional _not_valid_after; }; #endif