net-ssh 7.2.0 → 8.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/.dockerignore +3 -0
- data/.github/pull_request_template.md +1 -0
- data/.github/workflows/changelog.yml +43 -0
- data/.github/workflows/ci-with-docker.yml +20 -9
- data/.github/workflows/ci.yml +11 -20
- data/.github/workflows/rubocop.yml +3 -1
- data/.gitignore +2 -0
- data/.rubocop.yml +1 -1
- data/.rubocop_todo.yml +4 -1
- data/CHANGES.txt +114 -0
- data/CONTRIBUTING.md +35 -0
- data/Dockerfile +7 -2
- data/Dockerfile.openssl3 +1 -1
- data/Dockerfile.zlib_ng +29 -0
- data/README.md +76 -57
- data/Rakefile +117 -30
- data/appveyor.yml +4 -16
- data/changelog.d/README.md +1 -0
- data/docker-compose.yml +2 -8
- data/lib/net/ssh/authentication/agent.rb +35 -11
- data/lib/net/ssh/authentication/ed25519.rb +141 -40
- data/lib/net/ssh/authentication/ed25519_loader.rb +14 -9
- data/lib/net/ssh/authentication/key_manager.rb +61 -18
- data/lib/net/ssh/authentication/methods/abstract.rb +2 -8
- data/lib/net/ssh/authentication/methods/publickey.rb +3 -1
- data/lib/net/ssh/authentication/pub_key_fingerprint.rb +1 -1
- data/lib/net/ssh/authentication/security_key.rb +71 -0
- data/lib/net/ssh/authentication/session.rb +34 -15
- data/lib/net/ssh/buffer.rb +6 -1
- data/lib/net/ssh/buffered_io.rb +41 -4
- data/lib/net/ssh/config.rb +30 -13
- data/lib/net/ssh/connection/channel.rb +49 -2
- data/lib/net/ssh/connection/session.rb +58 -8
- data/lib/net/ssh/errors.rb +24 -6
- data/lib/net/ssh/key_factory.rb +11 -4
- data/lib/net/ssh/known_hosts.rb +64 -11
- data/lib/net/ssh/multiplex/client.rb +162 -0
- data/lib/net/ssh/multiplex/control_path.rb +120 -0
- data/lib/net/ssh/multiplex/proxy_transport.rb +218 -0
- data/lib/net/ssh/multiplex.rb +130 -0
- data/lib/net/ssh/prompt.rb +3 -3
- data/lib/net/ssh/proxy/command.rb +28 -3
- data/lib/net/ssh/proxy/jump.rb +52 -4
- data/lib/net/ssh/service/forward.rb +38 -27
- data/lib/net/ssh/test/extensions.rb +3 -2
- data/lib/net/ssh/test/socket.rb +1 -1
- data/lib/net/ssh/test.rb +2 -1
- data/lib/net/ssh/transport/aes128_gcm.rb +40 -0
- data/lib/net/ssh/transport/aes256_gcm.rb +40 -0
- data/lib/net/ssh/transport/algorithms.rb +96 -34
- data/lib/net/ssh/transport/chacha20_poly1305_cipher.rb +89 -16
- data/lib/net/ssh/transport/chacha20_poly1305_cipher_loader.rb +20 -1
- data/lib/net/ssh/transport/cipher_factory.rb +32 -8
- data/lib/net/ssh/transport/constants.rb +1 -0
- data/lib/net/ssh/transport/gcm_cipher.rb +228 -0
- data/lib/net/ssh/transport/hmac/abstract.rb +16 -0
- data/lib/net/ssh/transport/hmac/sha1_etm.rb +12 -0
- data/lib/net/ssh/transport/hmac.rb +2 -0
- data/lib/net/ssh/transport/kex/curve25519_sha256.rb +41 -9
- data/lib/net/ssh/transport/kex/curve25519_sha256_loader.rb +14 -6
- data/lib/net/ssh/transport/kex/diffie_hellman_group1_sha1.rb +8 -0
- data/lib/net/ssh/transport/kex/diffie_hellman_group_exchange_sha1.rb +45 -15
- data/lib/net/ssh/transport/openssl.rb +2 -1
- data/lib/net/ssh/transport/packet_stream.rb +19 -3
- data/lib/net/ssh/transport/server_version.rb +33 -13
- data/lib/net/ssh/transport/session.rb +60 -46
- data/lib/net/ssh/transport/state.rb +1 -1
- data/lib/net/ssh/verifiers/always.rb +43 -8
- data/lib/net/ssh/version.rb +2 -2
- data/lib/net/ssh.rb +142 -62
- data/net-ssh-public_cert.pem +19 -18
- data/net-ssh.gemspec +7 -8
- data/rakelib/changelog.rb +229 -0
- data.tar.gz.sig +0 -0
- metadata +86 -53
- metadata.gz.sig +1 -1
- data/Gemfile.noed25519 +0 -12
- data/Gemfile.norbnacl +0 -12
- data/lib/net/ssh/version.rb.old +0 -68
data/lib/net/ssh/version.rb.old
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
module Net
|
|
2
|
-
module SSH
|
|
3
|
-
# A class for describing the current version of a library. The version
|
|
4
|
-
# consists of three parts: the +major+ number, the +minor+ number, and the
|
|
5
|
-
# +tiny+ (or +patch+) number.
|
|
6
|
-
#
|
|
7
|
-
# Two Version instances may be compared, so that you can test that a version
|
|
8
|
-
# of a library is what you require:
|
|
9
|
-
#
|
|
10
|
-
# require 'net/ssh/version'
|
|
11
|
-
#
|
|
12
|
-
# if Net::SSH::Version::CURRENT < Net::SSH::Version[2,1,0]
|
|
13
|
-
# abort "your software is too old!"
|
|
14
|
-
# end
|
|
15
|
-
class Version
|
|
16
|
-
include Comparable
|
|
17
|
-
|
|
18
|
-
# A convenience method for instantiating a new Version instance with the
|
|
19
|
-
# given +major+, +minor+, and +tiny+ components.
|
|
20
|
-
def self.[](major, minor, tiny, pre = nil)
|
|
21
|
-
new(major, minor, tiny, pre)
|
|
22
|
-
end
|
|
23
|
-
|
|
24
|
-
attr_reader :major, :minor, :tiny
|
|
25
|
-
|
|
26
|
-
# Create a new Version object with the given components.
|
|
27
|
-
def initialize(major, minor, tiny, pre = nil)
|
|
28
|
-
@major, @minor, @tiny, @pre = major, minor, tiny, pre
|
|
29
|
-
end
|
|
30
|
-
|
|
31
|
-
# Compare this version to the given +version+ object.
|
|
32
|
-
def <=>(version)
|
|
33
|
-
to_i <=> version.to_i
|
|
34
|
-
end
|
|
35
|
-
|
|
36
|
-
# Converts this version object to a string, where each of the three
|
|
37
|
-
# version components are joined by the '.' character. E.g., 2.0.0.
|
|
38
|
-
def to_s
|
|
39
|
-
@to_s ||= [@major, @minor, @tiny, @pre].compact.join(".")
|
|
40
|
-
end
|
|
41
|
-
|
|
42
|
-
# Converts this version to a canonical integer that may be compared
|
|
43
|
-
# against other version objects.
|
|
44
|
-
def to_i
|
|
45
|
-
@to_i ||= @major * 1_000_000 + @minor * 1_000 + @tiny
|
|
46
|
-
end
|
|
47
|
-
|
|
48
|
-
# The major component of this version of the Net::SSH library
|
|
49
|
-
MAJOR = 7
|
|
50
|
-
|
|
51
|
-
# The minor component of this version of the Net::SSH library
|
|
52
|
-
MINOR = 2
|
|
53
|
-
|
|
54
|
-
# The tiny component of this version of the Net::SSH library
|
|
55
|
-
TINY = 0
|
|
56
|
-
|
|
57
|
-
# The prerelease component of this version of the Net::SSH library
|
|
58
|
-
# nil allowed
|
|
59
|
-
PRE = "rc1"
|
|
60
|
-
|
|
61
|
-
# The current version of the Net::SSH library as a Version instance
|
|
62
|
-
CURRENT = new(*[MAJOR, MINOR, TINY, PRE].compact)
|
|
63
|
-
|
|
64
|
-
# The current version of the Net::SSH library as a String
|
|
65
|
-
STRING = CURRENT.to_s
|
|
66
|
-
end
|
|
67
|
-
end
|
|
68
|
-
end
|