aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorMathias Hall-Andersen <mathias@hall-andersen.dk>2019-08-13 19:42:05 +0200
committerMathias Hall-Andersen <mathias@hall-andersen.dk>2019-08-13 19:42:05 +0200
commit657a1ccb440cbca438da1c72257298131a017b61 (patch)
treee2c6f8cf4ef4a831b14f09095fd93cba6f784339 /src/main.rs
parentPort replay filter and sketch router state (diff)
downloadwireguard-rs-657a1ccb440cbca438da1c72257298131a017b61.tar.xz
wireguard-rs-657a1ccb440cbca438da1c72257298131a017b61.zip
Implement add_keypair semantics
Diffstat (limited to '')
-rw-r--r--src/main.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index e49a217..90ba496 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -4,12 +4,16 @@ mod handshake;
mod router;
mod types;
-use sodiumoxide;
+use std::sync::Arc;
-use handshake::Device;
+use sodiumoxide;
use types::KeyPair;
fn main() {
// choose optimal crypto implementations for platform
sodiumoxide::init().unwrap();
+
+ let mut rdev = router::Device::new();
+
+ let pref = rdev.add();
}