Attempt to fix Sony digest validation by indenting the <Signer>
[libdcp.git] / src / encrypted_kdm.cc
index 23052f8a2c438bd358acb3e0b8f63628a68c5b30..9d581451ff0dba97153dacbb33f8f65ba6dcbccd 100644 (file)
@@ -670,7 +670,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 (*i, "ds");
+                       signer->add_signature_value (dynamic_cast<xmlpp::Element*>(*i), "ds");
                }
        }