From 03fb9d475366b6e02b6bde4421607f7dcd9936ad Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 7 Jan 2016 14:29:13 +0000 Subject: A couple of hacks to KDMs for testing by Dolby. --- src/encrypted_kdm.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/encrypted_kdm.cc b/src/encrypted_kdm.cc index 205d591b..132e8df3 100644 --- a/src/encrypted_kdm.cc +++ b/src/encrypted_kdm.cc @@ -202,9 +202,13 @@ public: for (list::const_iterator i = encrypted_key.begin(); i != encrypted_key.end(); ++i) { xmlpp::Element* encrypted_key = node->add_child ("EncryptedKey", "enc"); + /* XXX: hack for testing with Dolby */ + encrypted_key->set_namespace_declaration ("http://www.w3.org/2001/04/xmlenc#", "enc"); xmlpp::Element* encryption_method = encrypted_key->add_child ("EncryptionMethod", "enc"); encryption_method->set_attribute ("Algorithm", "http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p"); xmlpp::Element* digest_method = encryption_method->add_child ("DigestMethod", "ds"); + /* XXX: hack for testing with Dolby */ + digest_method->set_namespace_declaration ("http://www.w3.org/2000/09/xmldsig#", "ds"); digest_method->set_attribute ("Algorithm", "http://www.w3.org/2000/09/xmldsig#sha1"); xmlpp::Element* cipher_data = encrypted_key->add_child ("CipherData", "enc"); cipher_data->add_child("CipherValue", "enc")->add_child_text (*i); @@ -416,6 +420,8 @@ class AuthenticatedPublic public: AuthenticatedPublic () : message_id (make_uuid ()) + /* XXX: hack for Dolby to see if there must be a not-empty annotation text */ + , annotation_text ("none") , issue_date (LocalTime().as_string ()) {} -- cgit v1.2.3