diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-01-07 14:29:13 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-01-07 14:29:13 +0000 |
| commit | 03fb9d475366b6e02b6bde4421607f7dcd9936ad (patch) | |
| tree | 3d1acb3242d3f74a408f1864de1bbf2f695e31d0 /src/encrypted_kdm.cc | |
| parent | 342aad2ddf893aaaafa9a2c9980579d2dc4ec125 (diff) | |
A couple of hacks to KDMs for testing by Dolby.
Diffstat (limited to 'src/encrypted_kdm.cc')
| -rw-r--r-- | src/encrypted_kdm.cc | 6 |
1 files changed, 6 insertions, 0 deletions
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<string>::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 ()) {} |
