diff options
author | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2019-11-15 15:32:36 +0100 |
---|---|---|
committer | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2019-11-15 15:32:36 +0100 |
commit | 05710c455f1c759cf9bc1a1eaa6307fe564f15cc (patch) | |
tree | c671d703d0db93a9bc8f27d0e2b02d0422120352 /src/wireguard/wireguard.rs | |
parent | Initial version of full UAPI parser (diff) | |
download | wireguard-rs-05710c455f1c759cf9bc1a1eaa6307fe564f15cc.tar.xz wireguard-rs-05710c455f1c759cf9bc1a1eaa6307fe564f15cc.zip |
Update UAPI semantics for remove
Diffstat (limited to '')
-rw-r--r-- | src/wireguard/wireguard.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wireguard/wireguard.rs b/src/wireguard/wireguard.rs index 77be9f8..c0a8d9d 100644 --- a/src/wireguard/wireguard.rs +++ b/src/wireguard/wireguard.rs @@ -201,7 +201,7 @@ impl<T: Tun, B: Bind> Wireguard<T, B> { .map(|sk| StaticSecret::from(sk.to_bytes())) } - pub fn set_psk(&self, pk: PublicKey, psk: Option<[u8; 32]>) -> bool { + pub fn set_psk(&self, pk: PublicKey, psk: [u8; 32]) -> bool { self.state.handshake.write().set_psk(pk, psk).is_ok() } pub fn get_psk(&self, pk: &PublicKey) -> Option<[u8; 32]> { |