From fd8a665cbb0a9a44995f88567747e2379a6f4098 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 5 Jan 2013 22:02:24 +0000 Subject: Various probably quite untidy progress on KDMs. --- src/dcp.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'src/dcp.h') diff --git a/src/dcp.h b/src/dcp.h index 0ee4a8fc..96b28090 100644 --- a/src/dcp.h +++ b/src/dcp.h @@ -32,6 +32,7 @@ #include "certificates.h" namespace xmlpp { + class Document; class Element; } @@ -89,6 +90,8 @@ public: void write_xml (bool, CertificateChain const &, std::string const &) const; void write_to_assetmap (std::ostream& s) const; void write_to_pkl (xmlpp::Element* p) const; + + boost::shared_ptr make_kdm (CertificateChain const &, std::string const &, boost::shared_ptr) const; private: std::string _directory; @@ -159,17 +162,23 @@ public: _certificates = c; } + CertificateChain certificates () const { + return _certificates; + } + void set_signer_key (std::string const & s) { _signer_key = s; } + std::string signer_key () const { + return _signer_key; + } + /** Emitted with a parameter between 0 and 1 to indicate progress * for long jobs. */ 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