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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/CHANGES.txt +3 -1
- data/lib/net/ssh/authentication/agent.rb +14 -0
- data/lib/net/ssh/version.rb +1 -1
- metadata +5 -5
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dab784d4c76e8674d88c4552bf84a2fc48b7742190580447bf6588b3beabd8b4
|
4
|
+
data.tar.gz: 1f8a83e388a1837ecc1f37748d17eee872b0a6ae2e1bb10b1bcdc1aaf658273d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10cff19386b74e9fe46dbc312f207abf487742159a143fa71f98707c47cd8f4d5115f6e6fdcc25b3faaabbdc4ec57d725d01dc7ac90099029e42e4a64c34dff7
|
7
|
+
data.tar.gz: 9df5c393d4a7df322f3c0f58c3876ab55e2b342b9dc561a8a09a0e11b24025cbca6ee99abe90c151ef786af3fdd3288563cbe2799da8fd7e9065d2f06e4911c5
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/CHANGES.txt
CHANGED
@@ -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
|
data/lib/net/ssh/version.rb
CHANGED
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.
|
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-
|
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
|