summaryrefslogtreecommitdiff
path: root/src/lib/encrypted_ecinema_kdm.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-05-13 16:08:33 +0100
committerCarl Hetherington <cth@carlh.net>2019-05-13 16:08:33 +0100
commit257fce15e8b4dfa112d039e7888e3ec04e523198 (patch)
tree3afe5047010bb71aaa3851ef3b2f438509bccad3 /src/lib/encrypted_ecinema_kdm.h
parent5de2fd90b92829cea8ab297c6fce81c582332cb7 (diff)
swaroop: basics of encrypted MP4 playback.
Diffstat (limited to 'src/lib/encrypted_ecinema_kdm.h')
-rw-r--r--src/lib/encrypted_ecinema_kdm.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/lib/encrypted_ecinema_kdm.h b/src/lib/encrypted_ecinema_kdm.h
index fc6fbdb65..ece1e3161 100644
--- a/src/lib/encrypted_ecinema_kdm.h
+++ b/src/lib/encrypted_ecinema_kdm.h
@@ -32,14 +32,24 @@ class DecryptedECinemaKDM;
class EncryptedECinemaKDM
{
public:
+ explicit EncryptedECinemaKDM (std::string xml);
std::string as_xml () const;
+ std::string id () const {
+ return _id;
+ }
+
+ dcp::Data key () const {
+ return _content_key;
+ }
+
private:
friend class DecryptedECinemaKDM;
- EncryptedECinemaKDM (dcp::Key key, dcp::Certificate recipient);
+ EncryptedECinemaKDM (std::string id, dcp::Key key, dcp::Certificate recipient);
+ std::string _id;
/** encrypted content key */
dcp::Data _content_key;
};