diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/encrypted_kdm.cc | 11 | ||||
| -rw-r--r-- | src/encrypted_kdm.h | 1 |
2 files changed, 7 insertions, 5 deletions
diff --git a/src/encrypted_kdm.cc b/src/encrypted_kdm.cc index 207dff67..22bb86e4 100644 --- a/src/encrypted_kdm.cc +++ b/src/encrypted_kdm.cc @@ -613,11 +613,6 @@ EncryptedKDM::as_xml (boost::filesystem::path path) const string EncryptedKDM::as_xml () const { - xmlpp::Document document; - xmlpp::Element* root = document.create_root_node ("DCinemaSecurityMessage", "http://www.smpte-ra.org/schemas/430-3/2006/ETM"); - root->set_namespace_declaration ("http://www.w3.org/2000/09/xmldsig#", "ds"); - root->set_namespace_declaration ("http://www.w3.org/2001/04/xmlenc#", "enc"); - return _data->as_xml()->write_to_string ("UTF-8"); } @@ -640,6 +635,12 @@ EncryptedKDM::content_title_text () const } string +EncryptedKDM::cpl_id () const +{ + return _data->authenticated_public.required_extensions.kdm_required_extensions.composition_playlist_id; +} + +string EncryptedKDM::issue_date () const { return _data->authenticated_public.issue_date; diff --git a/src/encrypted_kdm.h b/src/encrypted_kdm.h index 9e5b09d4..c899dcbe 100644 --- a/src/encrypted_kdm.h +++ b/src/encrypted_kdm.h @@ -74,6 +74,7 @@ public: std::string annotation_text () const; std::string content_title_text () const; std::string issue_date () const; + std::string cpl_id () const; private: |
