We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83aacd1 commit bf235bcCopy full SHA for bf235bc
russh/src/client/encrypted.rs
@@ -892,13 +892,16 @@ impl Encrypted {
892
cert.to_bytes()?.as_slice().encode(&mut self.write)?;
893
true
894
}
895
- auth::Method::FuturePublicKey { ref key, .. } => {
+ auth::Method::FuturePublicKey { ref key, hash_alg } => {
896
user.as_bytes().encode(&mut self.write)?;
897
"ssh-connection".encode(&mut self.write)?;
898
"publickey".encode(&mut self.write)?;
899
self.write.push(0); // This is a probe
900
901
- key.algorithm().as_str().encode(&mut self.write)?;
+ key.algorithm()
902
+ .with_hash_alg(hash_alg)
903
+ .as_str()
904
+ .encode(&mut self.write)?;
905
906
key.to_bytes()?.as_slice().encode(&mut self.write)?;
907
0 commit comments