aboutsummaryrefslogtreecommitdiffstats
path: root/src/router/device.rs
diff options
context:
space:
mode:
authorMathias Hall-Andersen <mathias@hall-andersen.dk>2019-08-27 22:20:22 +0200
committerMathias Hall-Andersen <mathias@hall-andersen.dk>2019-08-27 22:20:22 +0200
commite5f515098afc2e60ceba4ed5faa56a887b9dbc75 (patch)
tree668a7e857f9583f1fb3c8a0b7692b189141ff2ed /src/router/device.rs
parentAdded sealing/opening to the router worker (diff)
downloadwireguard-rs-e5f515098afc2e60ceba4ed5faa56a887b9dbc75.tar.xz
wireguard-rs-e5f515098afc2e60ceba4ed5faa56a887b9dbc75.zip
Work on inbound/outbound consume code
Diffstat (limited to 'src/router/device.rs')
-rw-r--r--src/router/device.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/router/device.rs b/src/router/device.rs
index 3670cb5..0d5224e 100644
--- a/src/router/device.rs
+++ b/src/router/device.rs
@@ -44,6 +44,7 @@ pub struct EncryptionState {
pub struct DecryptionState<T: Opaque, S: Callback<T>, R: Callback<T>, K: KeyCallback<T>> {
pub key: [u8; 32],
pub keypair: Weak<KeyPair>,
+ pub confirmed: AtomicBool,
pub protector: spin::Mutex<AntiReplay>,
pub peer: Weak<PeerInner<T, S, R, K>>,
pub death: Instant, // time when the key can no longer be used for decryption