summaryrefslogtreecommitdiff
path: root/src/lib/config.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-07-30 17:00:48 +0100
committerCarl Hetherington <cth@carlh.net>2015-07-30 17:00:48 +0100
commit682c060342d96e7511d09a5b86df605771f3a907 (patch)
treec5424127dd4c6af71623177862f5af7f9318aa32 /src/lib/config.h
parent54f93021620b7d26120c32b5f45a0d046d3612de (diff)
Allow config of the full KDM decryption chain.
Diffstat (limited to 'src/lib/config.h')
-rw-r--r--src/lib/config.h23
1 files changed, 8 insertions, 15 deletions
diff --git a/src/lib/config.h b/src/lib/config.h
index 573d2b292..eeb167d0d 100644
--- a/src/lib/config.h
+++ b/src/lib/config.h
@@ -203,12 +203,8 @@ public:
return _signer_chain;
}
- dcp::Certificate decryption_certificate () const {
- return _decryption_certificate;
- }
-
- std::string decryption_private_key () const {
- return _decryption_private_key;
+ boost::shared_ptr<const dcp::CertificateChain> decryption_chain () const {
+ return _decryption_chain;
}
bool check_for_updates () const {
@@ -380,12 +376,8 @@ public:
maybe_set (_signer_chain, s);
}
- void set_decryption_certificate (dcp::Certificate c) {
- maybe_set (_decryption_certificate, c);
- }
-
- void set_decryption_private_key (std::string k) {
- maybe_set (_decryption_private_key, k);
+ void set_decryption_chain (boost::shared_ptr<const dcp::CertificateChain> c) {
+ maybe_set (_decryption_chain, c);
}
void set_check_for_updates (bool c) {
@@ -430,7 +422,6 @@ private:
Config ();
boost::filesystem::path file () const;
void read ();
- void make_decryption_keys ();
void set_defaults ();
void set_kdm_email_to_default ();
@@ -490,8 +481,10 @@ private:
std::string _kdm_bcc;
std::string _kdm_email;
boost::shared_ptr<const dcp::CertificateChain> _signer_chain;
- dcp::Certificate _decryption_certificate;
- std::string _decryption_private_key;
+ /** Chain used to decrypt KDMs; the leaf of this chain is the target
+ * certificate for making KDMs given to DCP-o-matic.
+ */
+ boost::shared_ptr<const dcp::CertificateChain> _decryption_chain;
/** true to check for updates on startup */
bool _check_for_updates;
bool _check_for_test_updates;