diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-09-29 09:12:57 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-09-29 09:12:57 +0100 |
| commit | 7e52cff1c3da057fa6f6fbba00d233fa946bb878 (patch) | |
| tree | 17ba0ea2fe6b197c19ffa929f281c4a0b7693652 /src | |
| parent | 140b6c89909dbb47e85989df6a5f1ea16009d1dd (diff) | |
Add ContentAuthenticator, possibly incorrectly.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xml/kdm_smpte.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/xml/kdm_smpte.h b/src/xml/kdm_smpte.h index 0139876f..d26c4896 100644 --- a/src/xml/kdm_smpte.h +++ b/src/xml/kdm_smpte.h @@ -170,6 +170,7 @@ public: c = c->node_child ("KDMRequiredExtensions"); recipient = Recipient (c->node_child ("Recipient")); composition_playlist_id = c->string_child ("CompositionPlaylistId"); + content_authenticator = c->optional_string_child ("ContentAuthenticator"); content_title_text = c->string_child ("ContentTitleText"); content_keys_not_valid_before = c->string_child ("ContentKeysNotValidBefore"); content_keys_not_valid_after = c->string_child ("ContentKeysNotValidAfter"); @@ -209,6 +210,9 @@ public: recipient.as_xml (kdm_required_extensions->add_child ("Recipient")); kdm_required_extensions->add_child("CompositionPlaylistId")->add_child_text (composition_playlist_id); + if (content_authenticator) { + kdm_required_extensions->add_child("ContentAuthenticator")->add_child_text (content_authenticator.get ()); + } kdm_required_extensions->add_child("ContentTitleText")->add_child_text (content_title_text); kdm_required_extensions->add_child("ContentKeysNotValidBefore")->add_child_text (content_keys_not_valid_before); kdm_required_extensions->add_child("ContentKeysNotValidAfter")->add_child_text (content_keys_not_valid_after); @@ -234,6 +238,7 @@ public: Signer signer; Recipient recipient; std::string composition_playlist_id; + boost::optional<std::string> content_authenticator; std::string content_title_text; std::string content_keys_not_valid_before; std::string content_keys_not_valid_after; |
