Add chacha20 option and AES-NI negotiation
This commit is contained in:
2
mud
2
mud
Submodule mud updated: 4bbb3bf714...67f1f6abc2
@@ -268,6 +268,7 @@ int main (int argc, char **argv)
|
|||||||
{ "time-tolerance", &time_tolerance, option_long },
|
{ "time-tolerance", &time_tolerance, option_long },
|
||||||
{ "v4only", NULL, option_option },
|
{ "v4only", NULL, option_option },
|
||||||
{ "v6only", NULL, option_option },
|
{ "v6only", NULL, option_option },
|
||||||
|
{ "chacha20", NULL, option_option },
|
||||||
{ "version", NULL, option_option },
|
{ "version", NULL, option_option },
|
||||||
{ NULL },
|
{ NULL },
|
||||||
};
|
};
|
||||||
@@ -317,7 +318,9 @@ int main (int argc, char **argv)
|
|||||||
|
|
||||||
fd_set_nonblock(tun_fd);
|
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) {
|
if (!mud) {
|
||||||
gt_log("couldn't create mud\n");
|
gt_log("couldn't create mud\n");
|
||||||
|
|||||||
Reference in New Issue
Block a user