X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fdecrypted_ecinema_kdm.h;h=7a66b63e09dbfa32d994ce5bba9804d5436784ef;hb=fa5f3a8bf77209da27acc33cf144e2e4500a2600;hp=f61402b7bffab17f5638741197bc361f5e4436ae;hpb=257fce15e8b4dfa112d039e7888e3ec04e523198;p=dcpomatic.git diff --git a/src/lib/decrypted_ecinema_kdm.h b/src/lib/decrypted_ecinema_kdm.h index f61402b7b..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, 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); @@ -37,14 +37,29 @@ public: 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