mirror of https://github.com/ospab/ostp.git
fix: resolve KeyExchange import error and clean compiler warnings
- Removed stale KeyExchange re-export from crypto/mod.rs (kex.rs only exports HybridSharedSecret and HybridKex after stub refactor) - Removed unused imports in ostp-server/lib.rs (AsyncWriteExt, tcp::OwnedWriteHalf) - Suppressed dead_code warning on HelperMsg::Log variant (IPC spec) - Verified: cargo check passes with zero errors and zero warnings
This commit is contained in:
parent
07511debbd
commit
696d416eff
|
|
@ -745,7 +745,7 @@ checksum = "c08d65885ee38876c4f86fa503fb49d7b507c2b62552df7c70b2fce627e06381"
|
|||
|
||||
[[package]]
|
||||
name = "ostp"
|
||||
version = "0.1.58"
|
||||
version = "0.1.60"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"base64",
|
||||
|
|
@ -762,7 +762,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "ostp-client"
|
||||
version = "0.1.58"
|
||||
version = "0.1.60"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"bytes",
|
||||
|
|
@ -780,7 +780,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "ostp-core"
|
||||
version = "0.1.58"
|
||||
version = "0.1.60"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"async-trait",
|
||||
|
|
@ -813,7 +813,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "ostp-server"
|
||||
version = "0.1.58"
|
||||
version = "0.1.60"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"bytes",
|
||||
|
|
@ -828,7 +828,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "ostp-tun-helper"
|
||||
version = "0.1.58"
|
||||
version = "0.1.60"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"chrono",
|
||||
|
|
|
|||
|
|
@ -4,6 +4,6 @@ pub mod noise;
|
|||
pub mod obfuscation;
|
||||
|
||||
pub use aead::SessionCipher;
|
||||
pub use kex::{HybridSharedSecret, KeyExchange};
|
||||
pub use kex::{HybridSharedSecret, HybridKex};
|
||||
pub use noise::{NoiseRole, NoiseSession};
|
||||
pub use obfuscation::{deobfuscate_header_inplace, deobfuscate_packet_inplace, obfuscate_packet_inplace, derive_obfuscation_key, derive_psk};
|
||||
|
|
|
|||
|
|
@ -10,8 +10,8 @@ use dispatcher::{DispatchOutcome, Dispatcher};
|
|||
use ostp_core::relay::RelayMessage;
|
||||
use ostp_core::{NoiseRole, PaddingStrategy, ProtocolConfig};
|
||||
use signal::wait_for_shutdown_signal;
|
||||
use tokio::io::{AsyncReadExt, AsyncWriteExt};
|
||||
use tokio::net::{tcp::OwnedWriteHalf, TcpStream, UdpSocket};
|
||||
use tokio::io::AsyncReadExt;
|
||||
use tokio::net::{TcpStream, UdpSocket};
|
||||
use tokio::sync::mpsc;
|
||||
use tokio::time::{interval, Duration, Instant};
|
||||
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@ enum GuiCmd {
|
|||
|
||||
#[derive(Serialize)]
|
||||
#[serde(tag = "type", rename_all = "lowercase")]
|
||||
#[allow(dead_code)]
|
||||
enum HelperMsg {
|
||||
Status { value: u8 },
|
||||
Log { message: String },
|
||||
|
|
|
|||
Loading…
Reference in New Issue