mirror of
https://github.com/Noratrieb/cluelessh.git
synced 2026-01-15 00:45:06 +01:00
move orchestration logic into ssh-tokio
This commit is contained in:
parent
9532065b16
commit
ea28daca0c
11 changed files with 477 additions and 209 deletions
|
|
@ -7,6 +7,14 @@ pub use ssh_transport as transport;
|
|||
pub use ssh_transport::{Result, SshStatus};
|
||||
use tracing::debug;
|
||||
|
||||
pub struct ThreadRngRand;
|
||||
impl transport::SshRng for ThreadRngRand {
|
||||
fn fill_bytes(&mut self, dest: &mut [u8]) {
|
||||
use rand::RngCore;
|
||||
rand::thread_rng().fill_bytes(dest);
|
||||
}
|
||||
}
|
||||
|
||||
pub struct ServerConnection {
|
||||
transport: ssh_transport::server::ServerConnection,
|
||||
state: ServerConnectionState,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue