Skip to content

Commit b22ff67

Browse files
author
Brent Cook
committed
Land rapid7#5090: remove unused partial openssh compat code
2 parents 27fa879 + 21d0d6c commit b22ff67

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

lib/net/ssh/transport/session.rb

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,6 @@ class Session
4141
# version.
4242
attr_reader :server_version
4343

44-
# Internal compatibility flags (hacks/tweaks/etc)
45-
attr_reader :compat_flags
46-
4744
# The Algorithms instance used to perform key exchanges.
4845
attr_reader :algorithms
4946

@@ -97,13 +94,6 @@ def initialize(host, options={})
9794

9895
@server_version = ServerVersion.new(socket, logger)
9996

100-
# Compatibility settings
101-
ver = @server_version.version
102-
@compat_flags = 0
103-
if ver =~ /OpenSSH_2\.[0-3]/ or ver =~ /OpenSSH_2\.5\.[0-2]/
104-
@compat_flags |= COMPAT_OLD_DHGEX
105-
end
106-
10797
@algorithms = Algorithms.new(self, options)
10898
wait { algorithms.initialized? }
10999
end

0 commit comments

Comments
 (0)