Skip to content

Commit

Permalink
Remove the old canonicalizer for good
Browse files Browse the repository at this point in the history
  • Loading branch information
stouset committed Nov 2, 2012
1 parent fe00b78 commit 8e21f1e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/xml_security.rb
Expand Up @@ -27,7 +27,6 @@
require "rexml/xpath"
require "openssl"
require 'nokogiri'
require 'xmlcanonicalizer'
require "digest/sha1"
require "digest/sha2"
require "onelogin/ruby-saml/validation_error"
Expand Down Expand Up @@ -78,9 +77,7 @@ def validate_doc(base64_cert, soft = true)


# verify signature
canoner = XML::Util::XmlCanonicalizer.new(false, true)
signed_info_element = REXML::XPath.first(sig_element, "//ds:SignedInfo", {"ds"=>DSIG})
canon_string = canoner.canonicalize(signed_info_element)
self.noko_sig_element ||= document.at_xpath('//ds:Signature', 'ds' => DSIG)
noko_signed_info_element = noko_sig_element.at_xpath('./ds:SignedInfo', 'ds' => DSIG)
canon_algorithm = canon_algorithm REXML::XPath.first(sig_element, '//ds:CanonicalizationMethod')
Expand Down

0 comments on commit 8e21f1e

Please sign in to comment.