diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-07-30 11:02:16 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-07-30 11:02:16 +0100 |
| commit | 54f93021620b7d26120c32b5f45a0d046d3612de (patch) | |
| tree | f57a1a1ff907c59a6c960836af5e73701cf5e6e8 /src/lib/config.cc | |
| parent | 8c1098fa6c261d3ef4c5c74103b6fa2731459d6c (diff) | |
Rename Config::_signer to Config::_signer_chain.
Diffstat (limited to 'src/lib/config.cc')
| -rw-r--r-- | src/lib/config.cc | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/lib/config.cc b/src/lib/config.cc index b75791a45..7e3de966b 100644 --- a/src/lib/config.cc +++ b/src/lib/config.cc @@ -120,7 +120,7 @@ Config::read () { if (!boost::filesystem::exists (file ())) { /* Make a new set of signing certificates and key */ - _signer.reset (new dcp::CertificateChain (openssl_path ())); + _signer_chain.reset (new dcp::CertificateChain (openssl_path ())); /* And decryption keys */ make_decryption_keys (); return; @@ -233,7 +233,6 @@ Config::read () } cxml::NodePtr signer = f.optional_node_child ("Signer"); - dcp::CertificateChain signer_chain; if (signer) { shared_ptr<dcp::CertificateChain> c (new dcp::CertificateChain ()); /* Read the signing certificates and private key in from the config file */ @@ -242,10 +241,10 @@ Config::read () c->add (dcp::Certificate ((*i)->content ())); } c->set_key (signer->string_child ("PrivateKey")); - _signer = c; + _signer_chain = c; } else { /* Make a new set of signing certificates and key */ - _signer.reset (new dcp::CertificateChain (openssl_path ())); + _signer_chain.reset (new dcp::CertificateChain (openssl_path ())); } if (f.optional_string_child ("DecryptionCertificate")) { @@ -379,11 +378,11 @@ Config::write () const #endif xmlpp::Element* signer = root->add_child ("Signer"); - dcp::CertificateChain::List certs = _signer->root_to_leaf (); + dcp::CertificateChain::List certs = _signer_chain->root_to_leaf (); for (dcp::CertificateChain::List::const_iterator i = certs.begin(); i != certs.end(); ++i) { signer->add_child("Certificate")->add_child_text (i->certificate (true)); } - signer->add_child("PrivateKey")->add_child_text (_signer->key().get ()); + signer->add_child("PrivateKey")->add_child_text (_signer_chain->key().get ()); root->add_child("DecryptionCertificate")->add_child_text (_decryption_certificate.certificate (true)); root->add_child("DecryptionPrivateKey")->add_child_text (_decryption_private_key); |
