Make sure RSA and ECDSA have KeyPair instances.

This commit is contained in:
2019-04-13 21:15:29 -07:00
parent cfc06c3b56
commit 8a7e604fbd
3 changed files with 18 additions and 3 deletions

View File

@@ -94,7 +94,6 @@ pub fn render_openssh_u32<O: Write>(output: &mut O, val: u32) -> Result<(),SSHKe
pub fn parse_openssh_string<I: Read>(input: &mut I) -> Result<String,SSHKeyParseError>
{
let length = parse_openssh_u32(input)?;
println!("len: {:X}", length);
let mut limited_input = input.take(length as u64);
let mut result = String::new();
limited_input.read_to_string(&mut result)?;