diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-12-23 00:21:19 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-12-23 00:21:19 +0000 |
| commit | e327e82945297e2fc878149fc5b6c507037a9d97 (patch) | |
| tree | b82bd703449bc322282b90ccbc4a0e31b0f43a72 /src/encrypted_kdm.cc | |
| parent | e330669de0f5d7d9d922dc69945cca74ac9800d9 (diff) | |
Remove some unused code; add EncryptedKDM::cpl_id().
Diffstat (limited to 'src/encrypted_kdm.cc')
| -rw-r--r-- | src/encrypted_kdm.cc | 11 |
1 files changed, 6 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; |
