diff options
author | Miklós Fazekas <mfazekas@szemafor.com> | 2021-08-10 10:14:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-10 10:14:31 +0200 |
commit | 7a05fe9947f91266fc4f4026233b650f63c37a93 (patch) | |
tree | b46baac1946a416eda4a19deca4559838daf2b9e | |
parent | f6cf8810e313b9a9130752e6ef4b11769597fbdd (diff) | |
parent | 79365879eeb3091de961eb2ae449613956decdbe (diff) | |
download | net-ssh-7a05fe9947f91266fc4f4026233b650f63c37a93.tar.gz |
Merge pull request #781 from haccht/missing_ssh_signature_type
Fix missing OpenSSL::Pkey::EC::Point#ssh_signature_type
-rw-r--r-- | lib/net/ssh/transport/openssl.rb | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/lib/net/ssh/transport/openssl.rb b/lib/net/ssh/transport/openssl.rb index e10792c..af0a0cc 100644 --- a/lib/net/ssh/transport/openssl.rb +++ b/lib/net/ssh/transport/openssl.rb @@ -52,9 +52,7 @@ module OpenSSL "ssh-rsa" end - def ssh_signature_type - ssh_type - end + alias ssh_signature_type ssh_type # Converts the key to a blob, according to the SSH2 protocol. def to_blob @@ -91,9 +89,7 @@ module OpenSSL "ssh-dss" end - def ssh_signature_type - ssh_type - end + alias ssh_signature_type ssh_type # Converts the key to a blob, according to the SSH2 protocol. def to_blob @@ -171,9 +167,7 @@ module OpenSSL "ecdsa-sha2-#{CurveNameAliasInv[group.curve_name]}" end - def ssh_signature_type - ssh_type - end + alias ssh_signature_type ssh_type def digester if group.curve_name =~ /^[a-z]+(\d+)\w*\z/ @@ -244,6 +238,8 @@ module OpenSSL "ecdsa-sha2-#{CurveNameAliasInv[group.curve_name]}" end + alias ssh_signature_type ssh_type + # Converts the key to a blob, according to the SSH2 protocol. def to_blob @blob ||= Net::SSH::Buffer.from(:string, ssh_type, |