diff options
author | Ralf Mueller <ralf.mueller@mpimet.mpg.de> | 2018-02-08 10:20:10 +0100 |
---|---|---|
committer | Ralf Mueller <ralf.mueller@mpimet.mpg.de> | 2018-02-08 10:20:10 +0100 |
commit | 124a809f682fa070afa1b0279ff023336fc14343 (patch) | |
tree | 6b9cdcba089fcb2ce5cbd6927a1a7ffe2ca07bb4 /lib | |
parent | 6879d5df49fdb6e904e6103f64d9020d8a106f8b (diff) | |
download | net-ssh-124a809f682fa070afa1b0279ff023336fc14343.tar.gz |
Fix for current arch linux box using openssl-1.1.0g
relative to net-ssh version 4.2.0 (released as gem)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/net/ssh/transport/openssl.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/net/ssh/transport/openssl.rb b/lib/net/ssh/transport/openssl.rb index 1e35500..4190970 100644 --- a/lib/net/ssh/transport/openssl.rb +++ b/lib/net/ssh/transport/openssl.rb @@ -109,12 +109,12 @@ module OpenSSL OpenSSL::ASN1::Integer(sig_r), OpenSSL::ASN1::Integer(sig_s) ]) - return verify(OpenSSL::Digest::DSS1.new, a1sig.to_der, data) + return verify(OpenSSL::Digest::SHA1.new, a1sig.to_der, data) end # Signs the given data. def ssh_do_sign(data) - sig = sign( OpenSSL::Digest::DSS1.new, data) + sig = sign( OpenSSL::Digest::SHA1.new, data) a1sig = OpenSSL::ASN1.decode( sig ) sig_r = a1sig.value[0].value.to_s(2) |