Fixing authentication with RSA
[?]
Nov 22, 2020, 3:30 PM
MFMCIUMJUYCV2GW5P25D5753YBYXWIMLWKKWX4PABEM7ACUIBGWACDependencies
- [2]
7FRJYUI6Reboot because of a bad change
Change contents
- edit in thrussh-keys/src/key.rs at line 207
pub fn set_algorithm(&mut self, algorithm: &[u8]) {if let PublicKey::RSA { ref mut hash, .. } = self {if algorithm == b"rsa-sha2-512" {*hash = SignatureHash::SHA2_512} else if algorithm == b"rsa-sha2-256" {*hash = SignatureHash::SHA2_256} else if algorithm == b"ssh-rsa" {*hash = SignatureHash::SHA1}}} - replacement in thrussh-keys/Cargo.toml at line 2
version = "0.18.3"version = "0.18.8" - replacement in thrussh/src/server/encrypted.rs at line 285
Ok(pubkey) => {Ok(mut pubkey) => { - edit in thrussh/src/server/encrypted.rs at line 302
pubkey.set_algorithm(algo_); - edit in thrussh/src/client/mod.rs at line 1099
let is_first_time = session.common.encrypted.is_none(); - replacement in thrussh/src/client/mod.rs at line 1102
sent: is_first_time,sent: false, - edit in thrussh/src/client/mod.rs at line 1106
if is_first_time {debug!("sending ssh-userauth service requset");let p = b"\x05\0\0\0\x0Cssh-userauth";session.common.cipher.write(p, &mut session.common.write_buffer);}