Minor fixes in Thrussh-keys (parsing key files)

[?]
Apr 28, 2021, 6:03 PM
CROEJT6QCCQYQOZ52ILS6TAT4OZCLXFSBLHBZ2MSHIYQH65HG6WQC

Dependencies

  • [2] 2WEO7OZL Version updates: getting rid of anyhow + moving to Tokio 1.0
  • [3] 7FRJYUI6 Reboot because of a bad change

Change contents

  • replacement in thrussh-keys/src/lib.rs at line 166
    [3.28793][3.28793:28846]()
    BASE64_MIME.encode(&self.public_key_bytes())
    [3.28793]
    [3.28846]
    let mut s = BASE64_MIME.encode(&self.public_key_bytes());
    assert_eq!(s.pop(), Some('\n'));
    assert_eq!(s.pop(), Some('\r'));
    s
  • replacement in thrussh-keys/src/lib.rs at line 225
    [2.621][3.30559:30711](),[3.30559][3.30559:30711]()
    let name = publickey.name().as_bytes();
    w.write_all(name)?;
    w.write_all(b" ")?;
    w.write_all(publickey.public_key_base64().as_bytes())?;
    [2.621]
    [3.30711]
    let pk = publickey.public_key_base64();
    writeln!(w, "{} {}", publickey.name(), pk)?;
  • replacement in thrussh-keys/src/lib.rs at line 275
    [3.32019][3.32019:32055]()
    file.seek(SeekFrom::Start(0))?;
    [3.32019]
    [3.32055]
    file.seek(SeekFrom::End(0))?;
  • edit in thrussh-keys/src/lib.rs at line 309
    [3.32890]
    [3.32890]
    debug!("host_port = {:?}", host_port);