~garritfra/wireguard-tools

Merge branch 'master' into v1.0.20200827.0
7a321ce8 — Jason A. Donenfeld 4 years ago
version: bump

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
91fbeb4a — Jason A. Donenfeld 4 years ago
Revert "wg-quick: wait on process substitutions"

This reverts commit 26683f6c9ad18d9914b23312c221f27fd5ecab51, which
means the old problem comes back. That's an issue. But waiting on
process substitutions is not available with commonly used bash versions:

  # wg-quick up demo
  [#] ip link add demo type wireguard
  [#] wg setconf demo /dev/fd/63
  /usr/bin/wg-quick: line 251: wait: pid 2955 is not a child of this shell
  [#] ip link delete dev demo

This means we have to wait a few years before fixing this issue. IOW,
bash limitation; can't fix.

Reported-by: Theodore Mozzo <theodore.mozzo@gmail.com>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
9a0d65e2 — Jason A. Donenfeld 4 years ago
wg-quick: android: use iproute2 to bring up interface instead of ndc

Android 11's ndc regresses even more, but it turns out that netd doesn't
need to track up/down state via direct invocation, so just set the
interface up by way of normal iproute2.

Reported-by: Harsh Shandilya <me@msfjarvis.dev>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
f25dddec — garritfra 4 years ago
Merge remote-tracking branch 'jason/master' into master
fbca033c — Jason A. Donenfeld 4 years ago
version: bump

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
26683f6c — Jason A. Donenfeld 4 years ago
wg-quick: wait on process substitutions

Bash does not propagate error values, which is a bummer, but process
substitutions are a useful feature. Introduce a new idiom to deal with
this: either "; wait $!" after the line to propagate the error, or "||
true" to indicate explicitly that we don't care about the error.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
13fac76a — Jason A. Donenfeld 4 years ago
ctype: use non-locale-specific ctype.h

We also make these constant time, even though we're never distinguishing
between bits of a secret using them. From that perspective, though, this
is markedly better than the locale-specific table lookups in glibc, even
though base64 characters span two cache lines and valid private keys
must hit both.

Co-authored-by: Samuel Neves <sneves@dei.uc.pt>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Samuel Neves <sneves@dei.uc.pt>
cf2bf095 — Jason A. Donenfeld 4 years ago
pubkey: isblank is a subset of isspace

Therefore, there's no need to test both.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
b4a8a187 — Jason A. Donenfeld 4 years ago
man: wg-quick: use syncconf instead of addconf for strip example

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
a66219fa — Domonkos P. Tomcsanyi 4 years ago
systemd: add reload target to systemd unit

Users can now run `systemctl reload wg-quick@wgnet0`, as described in
the wg-quick(8) man page. Note that this won't adjust Address=, DNS=, or
the various other non-wg(8) fields.

Signed-off-by: Domonkos P. Tomcsanyi <domi@tomcsanyi.net>
[zx2c4: use exec for bash commands to reduce excess forks, and rewrite
        commit message]
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
e6b9cdc6 — Garrit Franke 4 years ago
wg-quick: darwin: add restart command
f668b335 — Garrit Franke 4 years ago
wg-quick: openbsd: add restart command
3d06c3d9 — Garrit Franke 4 years ago
wg-quick: linux: add notice to restart command
fe909e16 — Garrit Franke 4 years ago
wg-quick: freebsd: add restart command
781a4ede — Garrit Franke 4 years ago
wg-quick: add restart man page
be03dc94 — Garrit Franke 4 years ago
wg-quick: linux: add restart command
eb4665ec — Jason A. Donenfeld 4 years ago
wincompat: fold random into genkey

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
197995d5 — Jason A. Donenfeld 4 years ago
ipc: split into separate files per-platform

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
c45d422a — Jason A. Donenfeld 4 years ago
version: bump

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Next
Do not follow this link