summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklós Fazekas <mfazekas@szemafor.com>2021-08-10 10:14:31 +0200
committerGitHub <noreply@github.com>2021-08-10 10:14:31 +0200
commit7a05fe9947f91266fc4f4026233b650f63c37a93 (patch)
treeb46baac1946a416eda4a19deca4559838daf2b9e
parentf6cf8810e313b9a9130752e6ef4b11769597fbdd (diff)
parent79365879eeb3091de961eb2ae449613956decdbe (diff)
downloadnet-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.rb14
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,