Display the filename / URL that a screen certificate was obtained from (#1894).
[dcpomatic.git] / src / lib / kdm_recipient.cc
index cde41e22d86162b158f6233a98a76141aa0a102a..671e9797c24cbfb40e2b9bdf509538d2cf1dc391 100644 (file)
@@ -31,6 +31,8 @@ KDMRecipient::KDMRecipient (cxml::ConstNodePtr node)
        } else if (node->optional_string_child("Recipient")) {
                recipient = dcp::Certificate (node->string_child("Recipient"));
        }
+
+       recipient_file = node->optional_string_child("RecipientFile");
 }
 
 
@@ -41,6 +43,9 @@ KDMRecipient::as_xml (xmlpp::Element* parent) const
        if (recipient) {
                parent->add_child("Recipient")->add_child_text(recipient->certificate(true));
        }
+       if (recipient_file) {
+               parent->add_child("RecipientFile")->add_child_text(*recipient_file);
+       }
 
        parent->add_child("Notes")->add_child_text(notes);
 }