From fe5bc5454e92f5065648829c89f487865d8a13a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20Gallou=C3=ABt?= Date: Tue, 12 Jul 2016 17:01:41 +0000 Subject: [PATCH] Add chacha20 option and AES-NI negotiation --- mud | 2 +- src/main.c | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/mud b/mud index 4bbb3bf..67f1f6a 160000 --- a/mud +++ b/mud @@ -1 +1 @@ -Subproject commit 4bbb3bf714056b1cae2f0e847ad4161b4ae51a70 +Subproject commit 67f1f6abc2ce6e0718ca761cb208bc063cc93ec1 diff --git a/src/main.c b/src/main.c index 15b0c07..5571d6a 100644 --- a/src/main.c +++ b/src/main.c @@ -268,6 +268,7 @@ int main (int argc, char **argv) { "time-tolerance", &time_tolerance, option_long }, { "v4only", NULL, option_option }, { "v6only", NULL, option_option }, + { "chacha20", NULL, option_option }, { "version", NULL, option_option }, { NULL }, }; @@ -317,7 +318,9 @@ int main (int argc, char **argv) fd_set_nonblock(tun_fd); - struct mud *mud = mud_create(bind_port, v4, v6); + int chacha = option_is_set(opts, "chacha20"); + + struct mud *mud = mud_create(bind_port, v4, v6, !chacha); if (!mud) { gt_log("couldn't create mud\n");