From a266fc223ecb7a696fa9dc35422ef0264b1c3c40 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 20 Jan 2019 20:26:41 +0000 Subject: Attempt to fix Sony digest validation by indenting the and before signing. This is in the belief that, perhaps, the Sony software "reformats" the XML before checking that the signature is correct (or something). --- src/dcp.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/dcp.cc') diff --git a/src/dcp.cc b/src/dcp.cc index 8bf2f02f..5d908530 100644 --- a/src/dcp.cc +++ b/src/dcp.cc @@ -348,7 +348,7 @@ DCP::write_volindex (Standard standard) const } root->add_child("Index")->add_child_text ("1"); - doc.write_to_file (p.string (), "UTF-8"); + doc.write_to_file_formatted (p.string (), "UTF-8"); } void @@ -417,8 +417,7 @@ DCP::write_assetmap (Standard standard, string pkl_uuid, boost::filesystem::path i->write_to_assetmap (asset_list, _directory); } - /* This must not be the _formatted version otherwise signature digests will be wrong */ - doc.write_to_file (p.string (), "UTF-8"); + doc.write_to_file_formatted (p.string (), "UTF-8"); } /** Write all the XML files for this DCP. -- cgit v1.2.3