diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-01-24 17:34:37 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-01-24 17:34:37 +0000 |
| commit | 2d05cab0e47ef437c3e5fa0f574f1eb4b1cfd64a (patch) | |
| tree | f5b0836171141088a0cb19a8e986a0005621a378 /src/encrypted_kdm.cc | |
| parent | 8cbeb8c52ba1a91ec9c6517c2557fabada9f10c2 (diff) | |
Slightly hacky but hopefully functional fix for KDMs after the changes
to signer. The KDM stuff uses add_signature_value() but not sign()
since it has to allow pass-through of a KDM (so it handles <Signature> etc.
itself). This means we have to make the indentation-adding optional.
It might have been nicer to make indent() not add indentation if it's
not already there.
Diffstat (limited to 'src/encrypted_kdm.cc')
| -rw-r--r-- | src/encrypted_kdm.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/encrypted_kdm.cc b/src/encrypted_kdm.cc index 9d581451..996708ad 100644 --- a/src/encrypted_kdm.cc +++ b/src/encrypted_kdm.cc @@ -554,6 +554,7 @@ public: xmlAddID (0, document->cobj(), (const xmlChar *) i->first.c_str(), i->second->cobj ()); } + indent (document->get_root_node(), 0); return document; } @@ -670,7 +671,7 @@ EncryptedKDM::EncryptedKDM ( xmlpp::Node::NodeList children = doc->get_root_node()->get_children (); for (xmlpp::Node::NodeList::const_iterator i = children.begin(); i != children.end(); ++i) { if ((*i)->get_name() == "Signature") { - signer->add_signature_value (dynamic_cast<xmlpp::Element*>(*i), "ds"); + signer->add_signature_value (dynamic_cast<xmlpp::Element*>(*i), "ds", false); } } |
