diff options
author | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2019-07-25 18:23:30 +0200 |
---|---|---|
committer | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2019-07-25 18:23:30 +0200 |
commit | 409ba51750add70fa7a39cfc1f77717b6b5653f4 (patch) | |
tree | d5c68ed727df32e11da882843faffaab1a0cc6db /src/types.rs | |
parent | Avoid race-condition when allocating a new identity (diff) | |
download | wireguard-rs-409ba51750add70fa7a39cfc1f77717b6b5653f4.tar.xz wireguard-rs-409ba51750add70fa7a39cfc1f77717b6b5653f4.zip |
Added opaque identity to output
Diffstat (limited to '')
-rw-r--r-- | src/types.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/types.rs b/src/types.rs index 27807f2..593500f 100644 --- a/src/types.rs +++ b/src/types.rs @@ -91,7 +91,9 @@ pub struct KeyPair { pub recv : Key // key for inbound messages } -pub type Output = ( +pub type Output<T> = ( + T, // external identifier associated with peer + // (e.g. a reference or vector index) Option<Vec<u8>>, // message to send Option<KeyPair> // resulting key-pair of successful handshake ); |