write ncpf and netcatpf - code cleanup
This commit is contained in:
parent
2ea8a01617
commit
d8ca1bbb90
|
@ -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};
|
||||||
|
|
|
@ -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)]
|
||||||
|
|
Loading…
Reference in New Issue