diff options
author | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2020-03-29 22:56:57 +0200 |
---|---|---|
committer | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2020-03-29 22:56:57 +0200 |
commit | ef60e92ea6bfef6cb41df718b5186a68c4ccc332 (patch) | |
tree | 99b5b816a9f3858ebff07562704303a00601f202 /src/wireguard/handshake/peer.rs | |
parent | Experiment with locking performance. (diff) | |
download | wireguard-rs-ef60e92ea6bfef6cb41df718b5186a68c4ccc332.tar.xz wireguard-rs-ef60e92ea6bfef6cb41df718b5186a68c4ccc332.zip |
Added checks for zero shared-secret
To mirror the behavior from the kernel module,
as per private correspondence with Jason.
Diffstat (limited to 'src/wireguard/handshake/peer.rs')
-rw-r--r-- | src/wireguard/handshake/peer.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/wireguard/handshake/peer.rs b/src/wireguard/handshake/peer.rs index f4d15fc..1636e62 100644 --- a/src/wireguard/handshake/peer.rs +++ b/src/wireguard/handshake/peer.rs @@ -18,10 +18,9 @@ use super::types::*; const TIME_BETWEEN_INITIATIONS: Duration = Duration::from_millis(20); -/* Represents the recomputation and state of a peer. - * - * This type is only for internal use and not exposed. - */ +// Represents the state of a peer. +// +// This type is only for internal use and not exposed. pub(super) struct Peer<O> { // opaque type which identifies a peer pub opaque: O, |