summaryrefslogtreecommitdiff
path: root/src/dcp.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-01-03 20:41:32 +0000
committerCarl Hetherington <cth@carlh.net>2013-01-03 20:41:32 +0000
commit50b5f8f9df0439d2d8fa9004e0b4af2f3e1eb44c (patch)
tree7fd862d261d406a7f93b8531b01b892feb309c8a /src/dcp.h
parentaef58f7a1caf6a67c2c0b12ba3a6bc632d890f4e (diff)
Sort-of generates a signed CPL.
Diffstat (limited to 'src/dcp.h')
-rw-r--r--src/dcp.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/dcp.h b/src/dcp.h
index ca011c36..e2e2314f 100644
--- a/src/dcp.h
+++ b/src/dcp.h
@@ -86,7 +86,7 @@ public:
bool equals (CPL const & other, EqualityOptions options, std::list<std::string>& notes) const;
- void write_xml (bool, CertificateChain const &) const;
+ 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;
@@ -151,6 +151,18 @@ public:
return _cpls;
}
+ void set_encrypted (bool e) {
+ _encrypted = e;
+ }
+
+ void set_certificates (CertificateChain const & c) {
+ _certificates = c;
+ }
+
+ void set_signer_key (std::string const & s) {
+ _signer_key = s;
+ }
+
/** Emitted with a parameter between 0 and 1 to indicate progress
* for long jobs.
*/
@@ -186,6 +198,7 @@ private:
bool _encrypted;
CertificateChain _certificates;
+ std::string _signer_key;
};
}