net-ssh 6.2.0.beta1 → 6.2.0.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: 4e74d12e16e132ebfb6235718a438feb6576d1fe59fd858853458d88d5bb5c6f
4
- data.tar.gz: 8f403340fb29215a24790d1115bf891eccc1fc1a754181745cb3bbac19d97d88
3
+ metadata.gz: dab784d4c76e8674d88c4552bf84a2fc48b7742190580447bf6588b3beabd8b4
4
+ data.tar.gz: 1f8a83e388a1837ecc1f37748d17eee872b0a6ae2e1bb10b1bcdc1aaf658273d
5
5
  SHA512:
6
- metadata.gz: e77a53f19272b62fe0fa52d6aea6dc66c68f37b388a79858cb4127a924c616311dc569b18d644bf7aaa96ea7239b0b81836cca4b03621390fd508b7be6540f5a
7
- data.tar.gz: 7e1f389d39afbfc159f0f195ae5b8c4232af232123005760b1036e9b5e1b208cab14925f32f60f50396a6865eed603561c70ce80f86d33b2d5a85d24be9845a9
6
+ metadata.gz: 10cff19386b74e9fe46dbc312f207abf487742159a143fa71f98707c47cd8f4d5115f6e6fdcc25b3faaabbdc4ec57d725d01dc7ac90099029e42e4a64c34dff7
7
+ data.tar.gz: 9df5c393d4a7df322f3c0f58c3876ab55e2b342b9dc561a8a09a0e11b24025cbca6ee99abe90c151ef786af3fdd3288563cbe2799da8fd7e9065d2f06e4911c5
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -1,4 +1,6 @@
1
- === 6.2.0. beta1
1
+ === 6.2.0 rc1
2
+
3
+ === 6.2.0 beta1
2
4
 
3
5
  * rsa-sha2-512, rsa-sha2-256 host_key algs [#771]
4
6
  * JRuby aes*-ctr suppport [#767]
@@ -39,6 +39,8 @@ module Net
39
39
  SSH2_AGENT_ADD_IDENTITY = 17
40
40
  SSH2_AGENT_REMOVE_IDENTITY = 18
41
41
  SSH2_AGENT_REMOVE_ALL_IDENTITIES = 19
42
+ SSH2_AGENT_LOCK = 22
43
+ SSH2_AGENT_UNLOCK = 23
42
44
  SSH2_AGENT_ADD_ID_CONSTRAINED = 25
43
45
  SSH2_AGENT_FAILURE = 30
44
46
  SSH2_AGENT_VERSION_RESPONSE = 103
@@ -189,6 +191,18 @@ module Net
189
191
  raise AgentError, "could not remove all identity from agent" if type != SSH_AGENT_SUCCESS
190
192
  end
191
193
 
194
+ # lock the ssh agent with password
195
+ def lock(password)
196
+ type, = send_and_wait(SSH2_AGENT_LOCK, :string, password)
197
+ raise AgentError, "could not lock agent" if type != SSH_AGENT_SUCCESS
198
+ end
199
+
200
+ # unlock the ssh agent with password
201
+ def unlock(password)
202
+ type, = send_and_wait(SSH2_AGENT_UNLOCK, :string, password)
203
+ raise AgentError, "could not unlock agent" if type != SSH_AGENT_SUCCESS
204
+ end
205
+
192
206
  private
193
207
 
194
208
  def unix_socket_class
@@ -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 = "beta1"
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)
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: net-ssh
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.2.0.beta1
4
+ version: 6.2.0.rc1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jamis Buck
8
8
  - Delano Mandelbaum
9
9
  - Miklós Fazekas
10
- autorequire:
10
+ autorequire:
11
11
  bindir: exe
12
12
  cert_chain:
13
13
  - |
@@ -31,7 +31,7 @@ cert_chain:
31
31
  voajiJNS75Pw/2j13WnPB4Q6w7dHSb57E/VluBpVKmcQZN0dGdAkEIVty3v7kw9g
32
32
  y++VpCpWM/PstIFv4ApZMf501UY=
33
33
  -----END CERTIFICATE-----
34
- date: 2020-06-11 00:00:00.000000000 Z
34
+ date: 2020-06-30 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: bcrypt_pbkdf
@@ -268,7 +268,7 @@ licenses:
268
268
  - MIT
269
269
  metadata:
270
270
  changelog_uri: https://github.com/net-ssh/net-ssh/blob/master/CHANGES.txt
271
- post_install_message:
271
+ post_install_message:
272
272
  rdoc_options: []
273
273
  require_paths:
274
274
  - lib
@@ -284,7 +284,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
284
284
  version: 1.3.1
285
285
  requirements: []
286
286
  rubygems_version: 3.0.3
287
- signing_key:
287
+ signing_key:
288
288
  specification_version: 4
289
289
  summary: 'Net::SSH: a pure-Ruby implementation of the SSH2 client protocol.'
290
290
  test_files: []
metadata.gz.sig CHANGED
Binary file