From 612f1ab34c9254100613a553d3a701a43395d276 Mon Sep 17 00:00:00 2001 From: Jesse Shawl Date: Wed, 29 Mar 2023 17:22:54 -0500 Subject: [PATCH] Change return type of PrivateKey::RSA.from_openssl This PR updates the documentation comment to return an `OpenSSL::PKey::RSA` instance instead of `OpenSSL::PKey::DSA` --- lib/ssh_data/private_key/rsa.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ssh_data/private_key/rsa.rb b/lib/ssh_data/private_key/rsa.rb index d539cee..a8e0ba2 100644 --- a/lib/ssh_data/private_key/rsa.rb +++ b/lib/ssh_data/private_key/rsa.rb @@ -21,9 +21,9 @@ def self.generate(size, unsafe_allow_small_key: false) # Import an openssl private key. # - # key - An OpenSSL::PKey::DSA instance. + # key - An OpenSSL::PKey::RSA instance. # - # Returns a DSA instance. + # Returns a RSA instance. def self.from_openssl(key) new( algo: PublicKey::ALGO_RSA,