From bb6c2aef9befb77bf14775abfedf8a2c9b7f8d53 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 3 Jan 2013 22:00:04 +0000 Subject: Write PKL using libxml++ and sign them. --- src/dcp.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/dcp.h') diff --git a/src/dcp.h b/src/dcp.h index e2e2314f..0ee4a8fc 100644 --- a/src/dcp.h +++ b/src/dcp.h @@ -32,7 +32,7 @@ #include "certificates.h" namespace xmlpp { - class Node; + class Element; } /** @brief Namespace for everything in libdcp */ @@ -88,7 +88,7 @@ public: void write_xml (bool, CertificateChain const &, std::string const &) const; void write_to_assetmap (std::ostream& s) const; - void write_to_pkl (std::ostream& s) const; + void write_to_pkl (xmlpp::Element* p) const; private: std::string _directory; @@ -168,6 +168,8 @@ public: */ boost::signals2::signal Progress; + static void sign (xmlpp::Element* parent, CertificateChain const & certificates, std::string const & signer_key); + private: /** Write the PKL file. -- cgit v1.2.3