summaryrefslogtreecommitdiff
path: root/src/encrypted_kdm.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-11-04 11:57:05 +0000
committerCarl Hetherington <cth@carlh.net>2015-11-04 11:57:05 +0000
commita86a0ae23bf373cffce899fa58b7cb6783a47ac0 (patch)
treea20de537533201f0c9a0d56795f54101b0446bc2 /src/encrypted_kdm.cc
parent4c53efaee3cebbb9ccded8a437a75521cc9ba7de (diff)
Hack in scope attribute to Atmos KeyType tags.
Diffstat (limited to 'src/encrypted_kdm.cc')
-rw-r--r--src/encrypted_kdm.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/encrypted_kdm.cc b/src/encrypted_kdm.cc
index 7ee28d1a..8ecee9f0 100644
--- a/src/encrypted_kdm.cc
+++ b/src/encrypted_kdm.cc
@@ -231,8 +231,13 @@ public:
void as_xml (xmlpp::Element* node) const
{
- node->add_child("KeyType")->add_child_text (key_type);
+ xmlpp::Element* type = node->add_child("KeyType");
+ type->add_child_text (key_type);
node->add_child("KeyId")->add_child_text ("urn:uuid:" + key_id);
+ /* XXX: this feels like a bit of a hack */
+ if (key_type == "MDEK") {
+ type->set_attribute ("scope", "http://www.dolby.com/cp850/2012/KDM#kdm-key-type");
+ }
}
string key_type;