more moves

This commit is contained in:
nora 2024-08-25 23:34:33 +02:00
parent 8a627949a3
commit 362d8c57ce
16 changed files with 164 additions and 175 deletions

View file

@ -7,11 +7,10 @@ use crate::{
self, AlgorithmName, EncodedSshSignature, EncryptionAlgorithm, HostKeySigningAlgorithm,
KeyExchangeSecret, SupportedAlgorithms,
},
numbers,
packet::{Packet, PacketTransport, ProtocolIdentParser},
peer_error, Msg, Result, SshRng, SshStatus,
};
use cluelessh_format::{NameList, Reader, Writer};
use cluelessh_format::{numbers, NameList, Reader, Writer};
pub struct ClientConnection {
state: ClientState,
@ -111,8 +110,7 @@ impl ClientConnection {
let description = p.utf8_string()?;
let _language_tag = p.utf8_string()?;
let reason_string =
numbers::disconnect_reason_to_string(reason).unwrap_or("<unknown>");
let reason_string = numbers::disconnect_reason_to_string(reason);
info!(%reason, %reason_string, %description, "Server disconnecting");