summaryrefslogtreecommitdiff
path: root/src/lib/decrypted_ecinema_kdm.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-05-13 17:20:01 +0100
committerCarl Hetherington <cth@carlh.net>2019-05-13 17:20:01 +0100
commit6cde6bcc0b604c1a157a4ccbdce29e91f4d45a91 (patch)
tree2fb423a179320a64589500f8f3f18d62a2141826 /src/lib/decrypted_ecinema_kdm.h
parent2a219174c74d922d068f1ca759402bdbd1c36f3c (diff)
swaroop: add name to ECinema KDMs and add DKDM wrapper for ECinema.
Diffstat (limited to 'src/lib/decrypted_ecinema_kdm.h')
-rw-r--r--src/lib/decrypted_ecinema_kdm.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/decrypted_ecinema_kdm.h b/src/lib/decrypted_ecinema_kdm.h
index f61402b7b..0ddc25615 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);
DecryptedECinemaKDM (EncryptedECinemaKDM kdm, std::string private_key);
EncryptedECinemaKDM encrypt (dcp::Certificate recipient);
@@ -37,12 +37,17 @@ public:
return _id;
}
+ std::string name () const {
+ return _name;
+ }
+
dcp::Key key () const {
return _content_key;
}
private:
std::string _id;
+ std::string _name;
/** unenecrypted content key */
dcp::Key _content_key;
};