aboutsummaryrefslogtreecommitdiffstats
path: root/src/types.rs
diff options
context:
space:
mode:
authorMathias Hall-Andersen <mathias@hall-andersen.dk>2019-07-12 14:49:53 +0200
committerMathias Hall-Andersen <mathias@hall-andersen.dk>2019-07-12 14:49:53 +0200
commitdfed3b448f30249a9b65cba998dba77667e6c76d (patch)
tree35a8b8257b74b5452f0a7c9d4baf354f5c488b87 /src/types.rs
parentAdd unit tests (diff)
downloadwireguard-rs-dfed3b448f30249a9b65cba998dba77667e6c76d.tar.xz
wireguard-rs-dfed3b448f30249a9b65cba998dba77667e6c76d.zip
Add peers and psks to device
Diffstat (limited to '')
-rw-r--r--src/types.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/types.rs b/src/types.rs
new file mode 100644
index 0000000..3729555
--- /dev/null
+++ b/src/types.rs
@@ -0,0 +1,10 @@
+struct Key {
+ key : [u8; 32],
+ id : u32
+}
+
+pub struct KeyPair {
+ confimed : bool, // has the key-pair been confirmed?
+ send : Key, // key for outbound messages
+ recv : Key // key for inbound messages
+}