Permalink
Browse files

Provide proper context when looking for transforms.

  • Loading branch information...
1 parent 2f665be commit 6e7394e67067d2c7cba26f958d6b35080de75cba @chrisa committed Jan 12, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Net/SAML2/XML/Sig.pm
@@ -161,8 +161,8 @@ sub verify {
my $digest = _trim($self->{parser}->findvalue('//dsig:Signature/dsig:SignedInfo/dsig:Reference/dsig:DigestValue'));
my $signed_xml = $self->_get_signed_xml();
- my $canonical = $self->_transform( $signed_xml );
- my $digest_bin = sha1( $canonical );
+ my $canonical = $self->_transform($signed_xml, $signature_node);
+ my $digest_bin = sha1($canonical);
return 1 if ($digest eq _trim(encode_base64($digest_bin)));
return 0;

0 comments on commit 6e7394e

Please sign in to comment.