Fix incorrect loading of decryption private key from config.
authorCarl Hetherington <cth@carlh.net>
Fri, 28 Aug 2015 10:51:47 +0000 (11:51 +0100)
committerCarl Hetherington <cth@carlh.net>
Fri, 28 Aug 2015 10:51:47 +0000 (11:51 +0100)
src/lib/config.cc

index 4995793e9ce8304e97cfcd43ece53387463dd925..fc71a72f3399430a3951c7cdfe01ac94238f13b0 100644 (file)
@@ -260,7 +260,7 @@ Config::read ()
                BOOST_FOREACH (cxml::NodePtr i, decryption->node_children ("Certificate")) {
                        c->add (dcp::Certificate (i->content ()));
                }
-               c->set_key (signer->string_child ("PrivateKey"));
+               c->set_key (decryption->string_child ("PrivateKey"));
                _decryption_chain = c;
        } else {
                _decryption_chain.reset (new dcp::CertificateChain (openssl_path ()));