aboutsummaryrefslogtreecommitdiffstats
path: root/src/configuration/uapi/get.rs
diff options
context:
space:
mode:
authorMathias Hall-Andersen <mathias@hall-andersen.dk>2019-11-10 17:57:39 +0100
committerMathias Hall-Andersen <mathias@hall-andersen.dk>2019-11-10 17:57:39 +0100
commit2ff044dda954ad2402309bd9022b33dd385bb3d7 (patch)
tree3030233c8958c96e292a4f3dd80a7622eb042c26 /src/configuration/uapi/get.rs
parentRemoval of secret key in the handshake module (diff)
downloadwireguard-rs-2ff044dda954ad2402309bd9022b33dd385bb3d7.tar.xz
wireguard-rs-2ff044dda954ad2402309bd9022b33dd385bb3d7.zip
Implemented UAPI "get" line-parser
Diffstat (limited to 'src/configuration/uapi/get.rs')
-rw-r--r--src/configuration/uapi/get.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/configuration/uapi/get.rs b/src/configuration/uapi/get.rs
new file mode 100644
index 0000000..c6f3c42
--- /dev/null
+++ b/src/configuration/uapi/get.rs
@@ -0,0 +1,15 @@
+use hex::FromHex;
+use subtle::ConstantTimeEq;
+use x25519_dalek::{PublicKey, StaticSecret};
+
+use super::{ConfigError, Configuration};
+
+struct Serializer<C: Configuration> {
+ config: C,
+}
+
+impl<C: Configuration> Serializer<C> {
+ fn get(&self) -> Vec<String> {
+ vec![]
+ }
+}