From 2f665be09a8c8fc4fa31e89771fb5b9dfc4e8895 Mon Sep 17 00:00:00 2001 From: Chris Andrews Date: Jan 13 2012 09:56:27 +0000 Subject: Define the "ec" namespace prefix we'll later use. This ended up only supporting InclusiveNamespace canonicalization where the prefix used for http://www.w3.org/2001/10/xml-exc-c14n# was "ec". --- diff --git a/lib/Net/SAML2/XML/Sig.pm b/lib/Net/SAML2/XML/Sig.pm index 721fdfe..ca053ad 100644 --- a/lib/Net/SAML2/XML/Sig.pm +++ b/lib/Net/SAML2/XML/Sig.pm @@ -114,6 +114,7 @@ sub verify { $self->{ parser } = XML::XPath->new( xml => $xml ); $self->{ parser }->set_namespace('dsig', 'http://www.w3.org/2000/09/xmldsig#'); + $self->{ parser }->set_namespace('ec', 'http://www.w3.org/2001/10/xml-exc-c14n#'); my $signature = _trim($self->{parser}->findvalue('//dsig:Signature/dsig:SignatureValue')); my $signed_info_node = $self->_get_node('//dsig:Signature/dsig:SignedInfo');