net-ssh 5.0.0.rc1 → 5.0.0.rc2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bb3a015ee41b0d474fe7c702a00f8825674084df411eee8f617e6b6fa21cf81e
4
- data.tar.gz: f75d9ca1f7b20f09f24c9622d6c72e206a6f20636c81a19c95c3a16a88b2742c
3
+ metadata.gz: e32b6b556e6402ede8923391518cc5198dbd3938eb44ece390991293917e5d98
4
+ data.tar.gz: 2c72a40a9a0f997ecbe3791dfed43987bb0a5a755d6b78216e00957fce3e6cc2
5
5
  SHA512:
6
- metadata.gz: 32546cfff9b3fa6e6b92b9fe7cd49a86dfe79c75936026681b12a5befcf3658ccd779d6e15496333185143c2236e2fb9dd3aa9435101fee0bc4048d16fd2057c
7
- data.tar.gz: 98998932593dfded2649ca4bb0e4426d38b2ab38a7b4f2043c2a57850e42136f15d31c529f76055ecb62b5b63878801d2897219220e5acd4e0e19026036845e7
6
+ metadata.gz: b30419c302e6123b4b1789eece7e22a75b7188c24c1c99e995ba708a4d2dffb06c8fe421bab0e23e98c73ec08f6df1fc082c973729039e3bc1f91176eb12a57e
7
+ data.tar.gz: 065b48595e88f6175372ee1e94f0792ba06f8f3e4b70aeb21cbc12d13d9c575feeac223d31d1837ab1a20a2e8947577988791c8197669cb9c3b55753b808e4ad
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/CHANGES.txt CHANGED
@@ -1,10 +1,20 @@
1
- === 5.0.0.rc1
1
+ === 5.0.0
2
+
2
3
  * Breaking change: ed25519 now requires ed25519 gem instead of RbNaCl gem [#563]
4
+ * Verify_host_key options rename (true, false, :very, :secure depreacted new equivalents are :never, :accept_new_or_local_tunnel :accept_new :always) [Jared Beck, #595]
5
+
6
+ === 5.0.0.rc2
7
+
8
+ * Add .dll extensions to dlopen on cygwin [#603]
9
+ * Fix host certificate validation [#601]
10
+
11
+ === 5.0.0.rc1
12
+
3
13
  * Fix larger than 4GB file transfers [#599]
4
14
  * Update HTTP proxy to version 1.1 [Connor Dunn, #597]
5
- * Verify_host_key options rename (true, false, :very, :secure depreacted new equivalents are :never, :accept_new_or_local_tunnel :accept_new :always) [Jared Beck, #595]
6
15
 
7
16
  === 5.0.0.beta2
17
+
8
18
  * Support for sha256 pubkey fingerprint [Tom Maher, #585]
9
19
  * Don't try to load default_keys if key_data option is used [Josh Larson, #589]
10
20
  * Added fingerprint_hash defaulting to SHA256 as fingerprint format, and MD5 can be used as an option [Miklós Fazekas, #591]
@@ -45,20 +45,20 @@ module Net
45
45
  if RUBY_VERSION < "1.9"
46
46
  extend DL::Importable
47
47
 
48
- dlload 'user32'
49
- dlload 'kernel32'
50
- dlload 'advapi32'
48
+ dlload 'user32.dll'
49
+ dlload 'kernel32.dll'
50
+ dlload 'advapi32.dll'
51
51
 
52
52
  SIZEOF_DWORD = DL.sizeof('L')
53
53
  elsif RUBY_VERSION < "2.1"
54
54
  extend DL::Importer
55
- dlload 'user32','kernel32', 'advapi32'
55
+ dlload 'user32.dll','kernel32.dll', 'advapi32.dll'
56
56
  include DL::Win32Types
57
57
 
58
58
  SIZEOF_DWORD = DL::SIZEOF_LONG
59
59
  else
60
60
  extend Fiddle::Importer
61
- dlload 'user32','kernel32', 'advapi32'
61
+ dlload 'user32.dll','kernel32.dll', 'advapi32.dll'
62
62
  include Fiddle::Win32Types
63
63
  SIZEOF_DWORD = Fiddle::SIZEOF_LONG
64
64
  end
@@ -165,21 +165,30 @@ module Net
165
165
  def pending?
166
166
  @pending
167
167
  end
168
-
168
+
169
169
  # Returns true if no exchange is pending, and otherwise returns true or
170
170
  # false depending on whether the given packet is of a type that is allowed
171
171
  # during a key exchange.
172
172
  def allow?(packet)
173
173
  !pending? || Algorithms.allowed_packet?(packet)
174
174
  end
175
-
175
+
176
176
  # Returns true if the algorithms have been negotiated at all.
177
177
  def initialized?
178
178
  @initialized
179
179
  end
180
-
180
+
181
+ def host_key_format
182
+ case host_key
183
+ when "ssh-rsa-cert-v01@openssh.com", "ssh-rsa-cert-v00@openssh.com"
184
+ "ssh-rsa"
185
+ else
186
+ host_key
187
+ end
188
+ end
189
+
181
190
  private
182
-
191
+
183
192
  # Sends a KEXINIT packet to the server. If a server KEXINIT has already
184
193
  # been received, this will then invoke #proceed! to proceed with the key
185
194
  # exchange, otherwise it returns immediately (but sets the object to the
@@ -163,10 +163,10 @@ module Net
163
163
 
164
164
  sig_buffer = Net::SSH::Buffer.new(buffer.read_string)
165
165
  sig_type = sig_buffer.read_string
166
- if sig_type != algorithms.host_key
166
+ if sig_type != algorithms.host_key_format
167
167
  raise Net::SSH::Exception,
168
168
  "host key algorithm mismatch for signature " +
169
- "'#{sig_type}' != '#{algorithms.host_key}'"
169
+ "'#{sig_type}' != '#{algorithms.host_key_format}'"
170
170
  end
171
171
  result[:server_sig] = sig_buffer.read_string
172
172
 
@@ -84,10 +84,10 @@ module Net
84
84
 
85
85
  sig_buffer = Net::SSH::Buffer.new(buffer.read_string)
86
86
  sig_type = sig_buffer.read_string
87
- if sig_type != algorithms.host_key
87
+ if sig_type != algorithms.host_key_format
88
88
  raise Net::SSH::Exception,
89
89
  "host key algorithm mismatch for signature " +
90
- "'#{sig_type}' != '#{algorithms.host_key}'"
90
+ "'#{sig_type}' != '#{algorithms.host_key_format}'"
91
91
  end
92
92
  result[:server_sig] = sig_buffer.read_string
93
93
 
@@ -56,7 +56,7 @@ module Net
56
56
 
57
57
  # The prerelease component of this version of the Net::SSH library
58
58
  # nil allowed
59
- PRE = "rc1"
59
+ PRE = "rc2"
60
60
 
61
61
  # The current version of the Net::SSH library as a Version instance
62
62
  CURRENT = new(*[MAJOR, MINOR, TINY, PRE].compact)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: net-ssh
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.0.rc1
4
+ version: 5.0.0.rc2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jamis Buck
@@ -32,7 +32,7 @@ cert_chain:
32
32
  ZFwoIuXKeDmTTpryd/vI7sdLXDuV6MbWOLGh6gXn9RDDXG1EqEXW0bjovATBMpdH
33
33
  9OGohJvAFzcvhDTWPwT6w3PG5B80pqb9j1hEAg==
34
34
  -----END CERTIFICATE-----
35
- date: 2018-05-24 00:00:00.000000000 Z
35
+ date: 2018-05-30 00:00:00.000000000 Z
36
36
  dependencies:
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: bcrypt_pbkdf
metadata.gz.sig CHANGED
Binary file