summaryrefslogtreecommitdiff
path: root/src/lib/encrypted_ecinema_kdm.h
diff options
context:
space:
mode:
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;
};