summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDelano Mandelbaum <delano@delanotes.com>2014-01-30 08:46:09 -0800
committerDelano Mandelbaum <delano@delanotes.com>2014-01-30 08:46:09 -0800
commit526bb62b8aed0c87a6c7ee3ef9e0ba3c76ba3ce1 (patch)
tree27be0b8560bccbace5aedc754e4ab705c937b0c8
parentf93a6b7d84347da4995297fcd5584d664ff764fc (diff)
parentd158b80821365a8132f857805367562f3d009b99 (diff)
downloadnet-ssh-526bb62b8aed0c87a6c7ee3ef9e0ba3c76ba3ce1.tar.gz
Merge pull request #129 from ecki/patch-1
allow KeyManager to recover from incompatible agents.
-rw-r--r--lib/net/ssh/authentication/agent/socket.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/net/ssh/authentication/agent/socket.rb b/lib/net/ssh/authentication/agent/socket.rb
index 8fa20a0..0bb43a1 100644
--- a/lib/net/ssh/authentication/agent/socket.rb
+++ b/lib/net/ssh/authentication/agent/socket.rb
@@ -76,9 +76,9 @@ module Net; module SSH; module Authentication
type, body = send_and_wait(SSH2_AGENT_REQUEST_VERSION, :string, Transport::ServerVersion::PROTO_VERSION)
if type == SSH2_AGENT_VERSION_RESPONSE
- raise NotImplementedError, "SSH2 agents are not yet supported"
+ raise AgentNotAvailable, "SSH2 agents are not yet supported"
elsif type != SSH_AGENT_RSA_IDENTITIES_ANSWER1 && type != SSH_AGENT_RSA_IDENTITIES_ANSWER2
- raise AgentError, "unknown response from agent: #{type}, #{body.to_s.inspect}"
+ raise AgentNotAvailable, "unknown response from agent: #{type}, #{body.to_s.inspect}"
end
end