net-ssh 5.2.0.rc2 → 5.2.0.rc3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c2765bde2cf7f2d2712d570614a8b88b0eb60a48
4
- data.tar.gz: dd2b510a4bfb2534d2a271280959dc400a0230df
3
+ metadata.gz: ef2b7488e98367e18ce426b09e98559f00f45bb8
4
+ data.tar.gz: 7e7e67ee2dccdadfdf58fa482704e70e95e1fa05
5
5
  SHA512:
6
- metadata.gz: 05a267b12dd182983c5a773282fcc9d84188e3dada4ecc5a90cccaab33443f402bd7a63955f355beb497118b91222534f911c808b93a252f042c6b2eab4b9472
7
- data.tar.gz: e4424e278bb6b1cfef965f471f0cc046d5cda8c0cef23391710ec7759ad4ee0314853a9ae6075da0c8c4fbf6065c99cbde576589c550f9f32bb66eaba12da955
6
+ metadata.gz: 1b7365375e0f13cc950fa8aa124a1dbc2685d66f916c805dd07efb236eb6a290e2fbe68dc32991e8ef85b70fbbcc0ac0891fd2d47a178193993b68fd079c6452
7
+ data.tar.gz: cf692014ecd2c29742e7d1d4dba2a8a64e1903c2fc5a8d880b80213da058b7c2b8a375ab5f6f9b6fbe5282bd85ed3cdf822bdf729ac949fab68a4df12f633886
Binary file
data.tar.gz.sig CHANGED
@@ -1,3 +1 @@
1
- 1���������-��7"����q� ��B+�2<�����b:M��h�E+*|P7nH�{v"PEN�"���(n�qky�_��'�������sO d=�m�7��*H
2
- ��w!�� ��}�14$�h@ :��z�K'���&^RN6^��������3.�f��J�qq�H���G����Ǖ���?^��Y���|҉�Da�E ��9� �<bOl30���V�=hf� L(�o�ӀT��
3
- ��*| k�5�U��
1
+ KS�h]�${>t��*+K�=�S(O6C�$"fjǻLӌ���% ��9+hn!>�X�l��"qӇ�3 dNUaZ���
@@ -1,3 +1,8 @@
1
+ === 5.2.0.rc3
2
+
3
+ * Fix check_host_ip read from config
4
+ * Support ssh-ed25519 in kown hosts
5
+
1
6
  === 5.2.0.rc2
2
7
 
3
8
  * Read check_host_ip from ssh config files
@@ -223,6 +223,8 @@ module Net
223
223
  options = configuration_for(host, options.fetch(:config, true)).merge(options)
224
224
  host = options.fetch(:host_name, host)
225
225
 
226
+ options[:check_host_ip] = true unless options.key?(:check_host_ip)
227
+
226
228
  if options[:non_interactive]
227
229
  options[:number_of_password_prompts] = 0
228
230
  end
@@ -292,8 +294,6 @@ module Net
292
294
  %i[password passphrase].each do |key|
293
295
  options.delete(key) if options.key?(key) && options[key].nil?
294
296
  end
295
-
296
- options[:check_host_ip] = true unless options.key?(:check_host_ip)
297
297
  end
298
298
 
299
299
  def self._sanitize_options(options)
@@ -77,10 +77,6 @@ module Net
77
77
  # #translate for how to convert the OpenSSH options into Net::SSH
78
78
  # options.)
79
79
  def load(path, host, settings={}, base_dir = nil)
80
- translated_globals = {
81
- "checkhostip" => "check_host_ip"
82
- }
83
-
84
80
  file = File.expand_path(path)
85
81
  base_dir ||= File.dirname(file)
86
82
  return settings unless File.readable?(file)
@@ -101,7 +97,6 @@ module Net
101
97
  next if value.nil?
102
98
 
103
99
  key.downcase!
104
- key = translated_globals[key] || key
105
100
  value = unquote(value)
106
101
 
107
102
  value = case value.strip
@@ -2,6 +2,7 @@ require 'strscan'
2
2
  require 'openssl'
3
3
  require 'base64'
4
4
  require 'net/ssh/buffer'
5
+ require 'net/ssh/authentication/ed25519_loader'
5
6
 
6
7
  module Net
7
8
  module SSH
@@ -48,6 +49,7 @@ module Net
48
49
  else
49
50
  SUPPORTED_TYPE = %w[ssh-rsa ssh-dss]
50
51
  end
52
+ SUPPORTED_TYPE.push('ssh-ed25519') if Net::SSH::Authentication::ED25519Loader::LOADED
51
53
 
52
54
  class <<self
53
55
  # Searches all known host files (see KnownHosts.hostfiles) for all keys
@@ -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 = "rc2"
59
+ PRE = "rc3"
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.2.0.rc2
4
+ version: 5.2.0.rc3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jamis Buck
metadata.gz.sig CHANGED
Binary file