Permalink
Browse files

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".
  • Loading branch information...
1 parent 90f5f95 commit 2f665be09a8c8fc4fa31e89771fb5b9dfc4e8895 @chrisa committed Jan 12, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/Net/SAML2/XML/Sig.pm
View
@@ -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');

0 comments on commit 2f665be

Please sign in to comment.