summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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,