From 180982ac43422197028cc5740e63a6d0eccbc095 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Thu, 8 Dec 2016 01:53:22 +0100 Subject: device: clear all peer ephemeral keys on sleep --- src/device.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/device.h') diff --git a/src/device.h b/src/device.h index e8e00a0..f716242 100644 --- a/src/device.h +++ b/src/device.h @@ -14,6 +14,7 @@ #include #include #include +#include struct wireguard_device { struct sock __rcu *sock4, *sock6; @@ -32,6 +33,7 @@ struct wireguard_device { struct list_head peer_list; struct mutex device_update_lock; struct mutex socket_update_lock; + struct notifier_block clear_peers_on_suspend; }; int device_init(void); -- cgit v1.2.3-59-g8ed1b