Skip to content

Commit

Permalink
Add chacha20 option and AES-NI negotiation
Browse files Browse the repository at this point in the history
  • Loading branch information
angt committed Jul 12, 2016
1 parent f4e94a9 commit fe5bc54
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mud
Submodule mud updated 2 files
+127 −42 mud.c
+1 −1 mud.h
5 changes: 4 additions & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
};
Expand Down Expand Up @@ -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");
Expand Down

0 comments on commit fe5bc54

Please sign in to comment.