From d8ca1bbb90adaaf1f5255ba7fb4e66dbbf3d6c69 Mon Sep 17 00:00:00 2001 From: c0repwn3r Date: Wed, 3 May 2023 21:55:12 -0400 Subject: [PATCH] write ncpf and netcatpf - code cleanup --- ncpf/src/main.rs | 4 ++-- netcatpf/src/main.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ncpf/src/main.rs b/ncpf/src/main.rs index 6854c95..3b386b8 100644 --- a/ncpf/src/main.rs +++ b/ncpf/src/main.rs @@ -1,9 +1,9 @@ use std::error::Error; -use std::io::{stdin, Write}; +use std::io::{Write}; use std::net::{IpAddr, SocketAddr}; use clap::{Parser}; use tokio::io::AsyncReadExt; -use tokio::net::{TcpListener, TcpSocket}; +use tokio::net::{TcpSocket}; use tokio::select; use libepf::ca_pool::load_ca_pool; use libepf::handshake_stream::{ClientAuthentication, EpfClientHandshaker, EpfClientUpgradable, EpfStreamOps}; diff --git a/netcatpf/src/main.rs b/netcatpf/src/main.rs index 40ceb12..a739998 100644 --- a/netcatpf/src/main.rs +++ b/netcatpf/src/main.rs @@ -1,6 +1,6 @@ use std::error::Error; use std::fs; -use std::io::{stdin, Write}; +use std::io::{Write}; use std::net::{IpAddr, SocketAddr}; use std::path::PathBuf; use clap::{Parser}; @@ -8,7 +8,7 @@ use tokio::io::AsyncReadExt; use tokio::net::TcpListener; use tokio::select; 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}; #[derive(Parser)]