diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-01-05 22:02:24 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-01-05 22:02:24 +0000 |
| commit | fd8a665cbb0a9a44995f88567747e2379a6f4098 (patch) | |
| tree | bd5b38579afdc55025cc93e52b8595a8aeebd46a /src/dcp.h | |
| parent | 40c974694bb6c01d7bfd432b7467b933e01dc418 (diff) | |
Various probably quite untidy progress on KDMs.
Diffstat (limited to 'src/dcp.h')
| -rw-r--r-- | src/dcp.h | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -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<xmlpp::Document> make_kdm (CertificateChain const &, std::string const &, boost::shared_ptr<const Certificate>) 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<void (float)> Progress; - static void sign (xmlpp::Element* parent, CertificateChain const & certificates, std::string const & signer_key); - private: /** Write the PKL file. |
