summaryrefslogtreecommitdiff
path: root/src/pkl.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-01-20 20:26:41 +0000
committerCarl Hetherington <cth@carlh.net>2019-01-21 23:48:52 +0000
commit33c2c1ddee9638fc4e59dbfdbeee2fb540778819 (patch)
tree5397dbb3fb1204fbe5529a3d1e738f4f5b2c1fb6 /src/pkl.cc
parent46766164d06e0aa58ea5064bec9b313ff5cd2399 (diff)
Attempt to fix Sony digest validation by indenting the <Signer>
and <Signature> before signing. This is in the belief that, perhaps, the Sony software "reformats" the XML before checking that the signature is correct (or something).
Diffstat (limited to 'src/pkl.cc')
-rw-r--r--src/pkl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkl.cc b/src/pkl.cc
index 43c7d092..9910b190 100644
--- a/src/pkl.cc
+++ b/src/pkl.cc
@@ -113,7 +113,7 @@ PKL::write (boost::filesystem::path file, shared_ptr<const CertificateChain> sig
signer->sign (pkl, _standard);
}
- doc.write_to_file (file.string(), "UTF-8");
+ doc.write_to_file_formatted (file.string(), "UTF-8");
}
optional<string>