diff --git a/Cargo.toml b/Cargo.toml index 02892bb..5d72e2c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sshcerts" -version = "0.14.0" +version = "0.14.1" authors = ["Mitchell Grenier "] edition = "2021" license-file = "LICENSE" diff --git a/src/ssh/privkey.rs b/src/ssh/privkey.rs index 9a31f4a..26c28f5 100644 --- a/src/ssh/privkey.rs +++ b/src/ssh/privkey.rs @@ -291,7 +291,8 @@ impl super::SSHCertificateSigner for PrivateKey { } } impl PrivateKey { - fn read_private_key(reader: &mut Reader<'_>) -> Result { + /// Create a private key from an existing reader of decrypted private bytes + pub fn read_private_key(reader: &mut Reader<'_>) -> Result { let key_type = reader.read_string()?; let kt = KeyType::from_name(&key_type)?;