write ncpf and netcatpf - code cleanup

This commit is contained in:
c0repwn3r 2023-05-03 21:55:12 -04:00
parent 2ea8a01617
commit d8ca1bbb90
Signed by: core
GPG Key ID: FDBF740DADDCEECF
2 changed files with 4 additions and 4 deletions

View File

@ -1,9 +1,9 @@
use std::error::Error; use std::error::Error;
use std::io::{stdin, Write}; use std::io::{Write};
use std::net::{IpAddr, SocketAddr}; use std::net::{IpAddr, SocketAddr};
use clap::{Parser}; use clap::{Parser};
use tokio::io::AsyncReadExt; use tokio::io::AsyncReadExt;
use tokio::net::{TcpListener, TcpSocket}; use tokio::net::{TcpSocket};
use tokio::select; use tokio::select;
use libepf::ca_pool::load_ca_pool; use libepf::ca_pool::load_ca_pool;
use libepf::handshake_stream::{ClientAuthentication, EpfClientHandshaker, EpfClientUpgradable, EpfStreamOps}; use libepf::handshake_stream::{ClientAuthentication, EpfClientHandshaker, EpfClientUpgradable, EpfStreamOps};

View File

@ -1,6 +1,6 @@
use std::error::Error; use std::error::Error;
use std::fs; use std::fs;
use std::io::{stdin, Write}; use std::io::{Write};
use std::net::{IpAddr, SocketAddr}; use std::net::{IpAddr, SocketAddr};
use std::path::PathBuf; use std::path::PathBuf;
use clap::{Parser}; use clap::{Parser};
@ -8,7 +8,7 @@ use tokio::io::AsyncReadExt;
use tokio::net::TcpListener; use tokio::net::TcpListener;
use tokio::select; use tokio::select;
use libepf::ca_pool::load_ca_pool; use libepf::ca_pool::load_ca_pool;
use libepf::handshake_stream::{ClientAuthentication, EpfServerHandshaker, EpfServerUpgradable, EpfStreamOps}; use libepf::handshake_stream::{EpfServerHandshaker, EpfServerUpgradable, EpfStreamOps};
use libepf::pki::{EPFCertificate, EpfPkiSerializable, EpfPrivateKey}; use libepf::pki::{EPFCertificate, EpfPkiSerializable, EpfPrivateKey};
#[derive(Parser)] #[derive(Parser)]