net-ssh 7.2.1 → 7.2.2.rc1

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
  SHA256:
3
- metadata.gz: a0040b76470d1aed1c201c0a67f043f84337adb1888bc0497209e264d2d533d3
4
- data.tar.gz: 14e6d8ccd37c1fa15eedba4ace1a1cf7d07cafea9c56c90f4978bd95ae16f773
3
+ metadata.gz: ba7dc2e01f8cfd95a6f25deae61e255e89c6415ec80e9969742c115c3578a347
4
+ data.tar.gz: 672b7436dad25481920fcac8f05075553ed5e4098a11c0ef4a272c628c3418bb
5
5
  SHA512:
6
- metadata.gz: b3fb3ccd42bed93a2f5c2e66a32c030dd0af0c60be0da4a3f35c573f25040c41d4692560a4a84f1f79e0d2a432245a3a4011cb1f1f4953c3855df1ec9cf0a5c1
7
- data.tar.gz: a09ad77463c1f988a342e8a0e6d379e748d11344c1db30255e162ddf4cc4002f4fc8ecfa66238a8107d39649999cb8fbce07369b1cb07b779091631c569cb53b
6
+ metadata.gz: 9a03b12742306789f7b8fb85015d4f7dac2613553302d809e5f1757a39b3f42ece45901aeddbf06e060142bef7127f49fe76067d0d5e6793b54c88dfc81bd186
7
+ data.tar.gz: 32569db94640aa6337c4084de009e9e607ba162d09881b11fde756254ab332085c6e36774f096c712341e31a5dd940cd33821faf94fa2651cdcb4d86c371f53b
checksums.yaml.gz.sig CHANGED
Binary file
@@ -46,7 +46,7 @@ module Net
46
46
  raise ArgumentError.new("Expected #{MEND} at end of private key") unless datafull.end_with?(MEND)
47
47
 
48
48
  datab64 = datafull[MBEGIN.size...-MEND.size]
49
- data = Base64.decode64(datab64)
49
+ data = datab64.unpack1("m")
50
50
  raise ArgumentError.new("Expected #{MAGIC} at start of decoded private key") unless data.start_with?(MAGIC)
51
51
 
52
52
  buffer = Net::SSH::Buffer.new(data[MAGIC.size + 1..-1])
@@ -134,7 +134,7 @@ module Net
134
134
 
135
135
  def to_pem
136
136
  # TODO this is not pem
137
- ssh_type + Base64.encode64(@verify_key.to_bytes)
137
+ ssh_type + [@verify_key.to_bytes].pack("m")
138
138
  end
139
139
  end
140
140
 
@@ -32,7 +32,7 @@ module Net
32
32
  when 'MD5'
33
33
  OpenSSL::Digest.hexdigest(algorithm, blob).scan(/../).join(":")
34
34
  when 'SHA256'
35
- "SHA256:#{Base64.encode64(OpenSSL::Digest.digest(algorithm, blob)).chomp.gsub(/=+\z/, '')}"
35
+ "SHA256:#{[OpenSSL::Digest.digest(algorithm, blob)].pack('m').chomp.gsub(/=+\z/, '')}"
36
36
  else
37
37
  raise OpenSSL::Digest::DigestError, "unsupported ssh key digest #{algorithm}"
38
38
  end
@@ -241,11 +241,11 @@ module Net
241
241
  def known_host_hash?(hostlist, entries)
242
242
  if hostlist.size == 1 && hostlist.first =~ /\A\|1(\|.+){2}\z/
243
243
  chunks = hostlist.first.split(/\|/)
244
- salt = Base64.decode64(chunks[2])
244
+ salt = chunks[2].unpack1("m")
245
245
  digest = OpenSSL::Digest.new('sha1')
246
246
  entries.each do |entry|
247
247
  hmac = OpenSSL::HMAC.digest(digest, salt, entry)
248
- return true if Base64.encode64(hmac).chomp == chunks[3]
248
+ return true if [hmac].pack("m").chomp == chunks[3]
249
249
  end
250
250
  end
251
251
  false
@@ -52,11 +52,11 @@ module Net
52
52
  MINOR = 2
53
53
 
54
54
  # The tiny component of this version of the Net::SSH library
55
- TINY = 1
55
+ TINY = 2
56
56
 
57
57
  # The prerelease component of this version of the Net::SSH library
58
58
  # nil allowed
59
- PRE = nil
59
+ PRE = "rc1"
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)
data/net-ssh.gemspec CHANGED
@@ -38,6 +38,7 @@ Gem::Specification.new do |spec|
38
38
 
39
39
  spec.add_development_dependency('rbnacl', '~> 7.1') unless ENV['NET_SSH_NO_RBNACL']
40
40
 
41
+ spec.add_development_dependency "base64"
41
42
  spec.add_development_dependency "bundler", ">= 1.17"
42
43
  spec.add_development_dependency "minitest", "~> 5.19"
43
44
  spec.add_development_dependency "mocha", "~> 2.1.0"
data.tar.gz.sig CHANGED
Binary file
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: 7.2.1
4
+ version: 7.2.2.rc1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jamis Buck
@@ -31,7 +31,7 @@ cert_chain:
31
31
  v84waVXQ2i5M7pJaHVBF7DxxeW/q8W3VCnsq8vmmvULSThD18QqYGaFDJeN8sTR4
32
32
  6tfjgZ6OvGSScvbCMHkCE9XjonE=
33
33
  -----END CERTIFICATE-----
34
- date: 2023-12-19 00:00:00.000000000 Z
34
+ date: 2024-01-05 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: bcrypt_pbkdf
@@ -89,6 +89,20 @@ dependencies:
89
89
  - - "~>"
90
90
  - !ruby/object:Gem::Version
91
91
  version: '7.1'
92
+ - !ruby/object:Gem::Dependency
93
+ name: base64
94
+ requirement: !ruby/object:Gem::Requirement
95
+ requirements:
96
+ - - ">="
97
+ - !ruby/object:Gem::Version
98
+ version: '0'
99
+ type: :development
100
+ prerelease: false
101
+ version_requirements: !ruby/object:Gem::Requirement
102
+ requirements:
103
+ - - ">="
104
+ - !ruby/object:Gem::Version
105
+ version: '0'
92
106
  - !ruby/object:Gem::Dependency
93
107
  name: bundler
94
108
  requirement: !ruby/object:Gem::Requirement
@@ -308,9 +322,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
308
322
  version: '2.6'
309
323
  required_rubygems_version: !ruby/object:Gem::Requirement
310
324
  requirements:
311
- - - ">="
325
+ - - ">"
312
326
  - !ruby/object:Gem::Version
313
- version: '0'
327
+ version: 1.3.1
314
328
  requirements: []
315
329
  rubygems_version: 3.3.3
316
330
  signing_key:
metadata.gz.sig CHANGED
Binary file