summaryrefslogtreecommitdiff
path: root/src/cpl.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-10-10 10:11:24 +0100
committerCarl Hetherington <cth@carlh.net>2013-10-10 10:11:24 +0100
commit9394dad74a8439f8230eb6aa21b639f3e10cbb2a (patch)
treea07d0292f0dfa4c6796386fba1e870a00b501970 /src/cpl.cc
parent55f5142794f423e70daa4d5b3a4602029172a127 (diff)
Write encryption test all to the right place. Some more XML writes unformatted to fix digests.
Diffstat (limited to 'src/cpl.cc')
-rw-r--r--src/cpl.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cpl.cc b/src/cpl.cc
index 74cdd784..2ce75cef 100644
--- a/src/cpl.cc
+++ b/src/cpl.cc
@@ -237,7 +237,8 @@ CPL::write_xml (bool interop, XMLMetadata const & metadata, shared_ptr<const Sig
signer->sign (root, interop);
}
- doc.write_to_file_formatted (p.string (), "UTF-8");
+ /* This must not be the _formatted version otherwise signature digests will be wrong */
+ doc.write_to_file (p.string (), "UTF-8");
_digest = make_digest (p.string (), 0);
_length = boost::filesystem::file_size (p.string ());