Skip to content

Commit

Permalink
Fix #854 regression
Browse files Browse the repository at this point in the history
  • Loading branch information
fwininger committed Apr 29, 2022
1 parent aca76f4 commit 39aa8df
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/net/ssh/buffer.rb
Expand Up @@ -284,11 +284,7 @@ def read_private_keyblob(type)
end
key
when /^ecdsa\-sha2\-(\w*)$/
key = OpenSSL::PKey::EC.read_keyblob($1, self)
key.private_key = read_bignum
_key_comment = read_string

key
OpenSSL::PKey::EC.read_keyblob($1, self)
else
raise Exception, "Cannot decode private key of type #{type}"
end
Expand Down

0 comments on commit 39aa8df

Please sign in to comment.