diff options
author | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2019-11-18 12:04:20 +0100 |
---|---|---|
committer | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2019-11-18 12:04:20 +0100 |
commit | b1fbd7fbbaa92dde20d292307f4f4347e4c01450 (patch) | |
tree | 3ad79a99ff36568aa801121fad4b065cb819b1ea /src/wireguard/router/workers.rs | |
parent | Update configuration API (diff) | |
download | wireguard-rs-b1fbd7fbbaa92dde20d292307f4f4347e4c01450.tar.xz wireguard-rs-b1fbd7fbbaa92dde20d292307f4f4347e4c01450.zip |
Bug fixes from compliance tests with WireGuard
Diffstat (limited to 'src/wireguard/router/workers.rs')
-rw-r--r-- | src/wireguard/router/workers.rs | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/wireguard/router/workers.rs b/src/wireguard/router/workers.rs index 5482cee..d87174f 100644 --- a/src/wireguard/router/workers.rs +++ b/src/wireguard/router/workers.rs @@ -24,20 +24,17 @@ use super::super::{bind, tun, Endpoint}; pub const SIZE_TAG: usize = 16; -#[derive(Debug)] pub struct JobEncryption { pub msg: Vec<u8>, pub keypair: Arc<KeyPair>, pub counter: u64, } -#[derive(Debug)] pub struct JobDecryption { pub msg: Vec<u8>, pub keypair: Arc<KeyPair>, } -#[derive(Debug)] pub enum JobParallel { Encryption(oneshot::Sender<JobEncryption>, JobEncryption), Decryption(oneshot::Sender<Option<JobDecryption>>, JobDecryption), |