Skip to content

Commit 8bc70cc

Browse files
committed
Replaces the old OpenSSL algorithmic constants with the newer strings initializers.
1 parent aa5d0f1 commit 8bc70cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/xml_security.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ def validate_document(idp_cert_fingerprint, soft = true, options = {})
218218
if options[:fingerprint_alg]
219219
fingerprint_alg = XMLSecurity::BaseDocument.new.algorithm(options[:fingerprint_alg]).new
220220
else
221-
fingerprint_alg = OpenSSL::Digest::SHA1.new
221+
fingerprint_alg = OpenSSL::Digest.new('SHA1')
222222
end
223223
fingerprint = fingerprint_alg.hexdigest(cert.to_der)
224224

0 commit comments

Comments
 (0)