diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-01-14 11:27:00 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-01-14 11:27:00 +0100 |
| commit | af87d03b24c21301639c23606993cfebcfbe3088 (patch) | |
| tree | e8106169d717030d96c444f3009687d3f7e2ba49 /src/pkl.cc | |
| parent | 4cad94e5c679c290db71f739df513fbee5286b2a (diff) | |
Add GroupID support for PKLs (DoM #2943).v1.10.5
Diffstat (limited to 'src/pkl.cc')
| -rw-r--r-- | src/pkl.cc | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -97,6 +97,7 @@ PKL::PKL(boost::filesystem::path file, vector<dcp::VerificationNote>* notes) _issue_date = pkl.string_child ("IssueDate"); _issuer = pkl.string_child ("Issuer"); _creator = pkl.string_child ("Creator"); + _group_id = remove_urn_uuid(pkl.optional_string_child("GroupId")); for (auto i: pkl.node_child("AssetList")->node_children("Asset")) { _assets.push_back(make_shared<Asset>(i)); @@ -129,6 +130,9 @@ PKL::write_xml (boost::filesystem::path file, shared_ptr<const CertificateChain> cxml::add_text_child(pkl, "IssueDate", _issue_date); cxml::add_text_child(pkl, "Issuer", _issuer); cxml::add_text_child(pkl, "Creator", _creator); + if (_group_id) { + cxml::add_text_child(pkl, "GroupId", "urn:uuid:" + *_group_id); + } auto asset_list = cxml::add_child(pkl, "AssetList"); for (auto i: _assets) { |
