summaryrefslogtreecommitdiff
path: root/lib/net/ssh/buffer.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/net/ssh/buffer.rb')
-rw-r--r--lib/net/ssh/buffer.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/net/ssh/buffer.rb b/lib/net/ssh/buffer.rb
index d3fb788..c17da78 100644
--- a/lib/net/ssh/buffer.rb
+++ b/lib/net/ssh/buffer.rb
@@ -243,14 +243,14 @@ module Net; module SSH
# a key. Only RSA, DSA, and ECDSA keys are supported.
def read_keyblob(type)
case type
- when "ssh-dss"
+ when /^ssh-dss(-cert-v01@openssh\.com)?$/
key = OpenSSL::PKey::DSA.new
key.p = read_bignum
key.q = read_bignum
key.g = read_bignum
key.pub_key = read_bignum
- when "ssh-rsa"
+ when /^ssh-rsa(-cert-v01@openssh\.com)?$/
key = OpenSSL::PKey::RSA.new
key.e = read_bignum
key.n = read_bignum