Compare commits

...

2 Commits

Author SHA1 Message Date
Adrien Gallouët
fe5bc5454e Add chacha20 option and AES-NI negotiation 2016-07-12 17:01:41 +00:00
Adrien Gallouët
f4e94a9089 Remove -flto for now 2016-07-11 10:24:47 +00:00
3 changed files with 7 additions and 4 deletions

View File

@@ -4,10 +4,10 @@ export CC="gcc -static"
git clone https://github.com/jedisct1/libsodium --depth=1 --branch stable
cd libsodium || exit 1
./autogen.sh && ./configure CFLAGS=-flto LDFLAGS=-flto --enable-minimal --disable-shared --prefix=/usr && make install
./autogen.sh && ./configure --enable-minimal --disable-shared --prefix=/usr && make install
cd ..
./autogen.sh && ./configure CFLAGS=-flto LDFLAGS=-flto && make
./autogen.sh && ./configure && make
[ -x glorytun ] || exit 1
mkdir -p deploy

2
mud

Submodule mud updated: 4bbb3bf714...67f1f6abc2

View File

@@ -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");