summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklós Fazekas <mfazekas@szemafor.com>2021-08-05 08:57:07 +0200
committerMiklós Fazekas <mfazekas@szemafor.com>2021-08-05 08:58:02 +0200
commit40527660620fd401035779a395b930d64ea3a5e5 (patch)
treee96db3e04c6d9a066e567f2d4647c8fb1ef5a110
parenta6b00bb2d054ce821d70180940e2901e8655f2f4 (diff)
downloadnet-ssh-mfazekas/fix-x25519.tar.gz
Remove x25519 workaroundsmfazekas/fix-x25519
-rw-r--r--Gemfile1
-rw-r--r--lib/net/ssh/transport/kex/curve25519_sha256.rb1
2 files changed, 0 insertions, 2 deletions
diff --git a/Gemfile b/Gemfile
index f3450cd..a328e11 100644
--- a/Gemfile
+++ b/Gemfile
@@ -8,7 +8,6 @@ gem 'byebug', group: %i[development test] if !Gem.win_platform? && RUBY_ENGINE =
if ENV["CI"]
gem 'codecov', require: false, group: :test
gem 'simplecov', require: false, group: :test
- gem 'x25519', github: 'RubyCrypto/x25519', ref: '60c0f2913460c7b13b516e4e887a5517a2bd9edd'
end
gem 'webrick', group: %i[development test] if RUBY_VERSION.split(".")[0].to_i >= 3
diff --git a/lib/net/ssh/transport/kex/curve25519_sha256.rb b/lib/net/ssh/transport/kex/curve25519_sha256.rb
index 57cc6c5..a9ce16c 100644
--- a/lib/net/ssh/transport/kex/curve25519_sha256.rb
+++ b/lib/net/ssh/transport/kex/curve25519_sha256.rb
@@ -2,7 +2,6 @@ gem 'x25519' # raise if the gem x25519 is not installed
require 'x25519'
-X25519.provider = X25519::Provider::Ref10 # https://github.com/RubyCrypto/x25519/issues/22
require 'net/ssh/transport/constants'
require 'net/ssh/transport/kex/abstract5656'