diff options
-rw-r--r-- | lib/net/ssh/transport/openssl.rb | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/lib/net/ssh/transport/openssl.rb b/lib/net/ssh/transport/openssl.rb index 4511d8f..d12a74b 100644 --- a/lib/net/ssh/transport/openssl.rb +++ b/lib/net/ssh/transport/openssl.rb @@ -53,9 +53,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 @@ -92,9 +90,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 @@ -172,9 +168,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/ @@ -245,9 +239,7 @@ module OpenSSL "ecdsa-sha2-#{CurveNameAliasInv[group.curve_name]}" 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 |