Formatting
[?]
Nov 28, 2020, 8:24 AM
JBFDZQ46EJFVOM3LLBH6SF2BTH4MQY4OTNAP4CVN4PMITYXO6Z5QCDependencies
- [2]
OGPWDWHUCompilation error on Windows - [3]
KNLLUDOICorrect usage of `tokio::select!` - [4]
2Q2DF2ROUpdating thrussh-config to make it usable in real projects - [5]
PBHNTGEXFixing a channel window error - [6]
Y5HHIQXVWait for the connection to be encrypted in `connect` - [7]
7FRJYUI6Reboot because of a bad change - [8]
SJBZKVM5Debug messages
Change contents
- replacement in thrussh-keys/src/lib.rs at line 330
pub fn learn_known_hosts(host: &str, port: u16, pubkey: &key::PublicKey) -> Result<(), anyhow::Error> {pub fn learn_known_hosts(host: &str,port: u16,pubkey: &key::PublicKey,) -> Result<(), anyhow::Error> { - edit in thrussh-config/src/lib.rs at line 8
use std::path::Path; - edit in thrussh-config/src/lib.rs at line 9
use std::path::Path; - replacement in thrussh-config/src/lib.rs at line 52
Stream::tcp_connect(&(self.host_name.as_str(), self.port).to_socket_addrs()?.next().unwrap()).awaitStream::tcp_connect(&(self.host_name.as_str(), self.port).to_socket_addrs()?.next().unwrap(),).await - replacement in thrussh-config/src/lib.rs at line 109
},"port" => if let Ok(port) = value.trim_start().parse() {config.port = port},}"port" => {if let Ok(port) = value.trim_start().parse() {config.port = port}} - replacement in thrussh/src/ssh_read.rs at line 51
(SshRead {id: self.id,r}, w)(SshRead { id: self.id, r }, w) - edit in thrussh/src/ssh_read.rs at line 55
- replacement in thrussh/src/session.rs at line 226
debug!("buffer: {:?} {:?}", write.len(), channel.recipient_window_size);debug!("buffer: {:?} {:?}",write.len(),channel.recipient_window_size); - replacement in thrussh/src/server/mod.rs at line 445
async fn start_reading<R: AsyncRead + Unpin>(mut stream_read: R, mut buffer: SSHBuffer, cipher: Arc<crate::cipher::CipherPair>) -> Result<(usize, R, SSHBuffer), anyhow::Error> {async fn start_reading<R: AsyncRead + Unpin>(mut stream_read: R,mut buffer: SSHBuffer,cipher: Arc<crate::cipher::CipherPair>,) -> Result<(usize, R, SSHBuffer), anyhow::Error> { - replacement in thrussh/src/server/mod.rs at line 578
breakbreak; - replacement in thrussh/src/client/mod.rs at line 809
async fn start_reading<R: AsyncRead + Unpin>(mut stream_read: R, mut buffer: SSHBuffer, cipher: Arc<crate::cipher::CipherPair>) -> Result<(usize, R, SSHBuffer), anyhow::Error> {async fn start_reading<R: AsyncRead + Unpin>(mut stream_read: R,mut buffer: SSHBuffer,cipher: Arc<crate::cipher::CipherPair>,) -> Result<(usize, R, SSHBuffer), anyhow::Error> { - replacement in thrussh/src/client/mod.rs at line 933
debug!("writing to stream: {:?} bytes", self.common.write_buffer.buffer.len());stream_write.write_all(&self.common.write_buffer.buffer).await?;debug!("writing to stream: {:?} bytes",self.common.write_buffer.buffer.len());stream_write.write_all(&self.common.write_buffer.buffer).await?;