aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.gitattributes (unfollow)
Commit message (Collapse)AuthorFilesLines
2020-08-20version: bumpv1.0.20200820Jason A. Donenfeld1-1/+1
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-08-06wg-quick: wait on process substitutionsJason A. Donenfeld4-49/+49
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>
2020-08-06ctype: use non-locale-specific ctype.hJason A. Donenfeld5-14/+43
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>
2020-08-06pubkey: isblank is a subset of isspaceJason A. Donenfeld1-1/+1
Therefore, there's no need to test both. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-07-28man: wg-quick: use syncconf instead of addconf for strip exampleJason A. Donenfeld1-3/+1
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-07-24systemd: add reload target to systemd unitDomonkos P. Tomcsanyi1-0/+1
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>
2020-05-25wincompat: fold random into genkeyJason A. Donenfeld5-16/+6
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-05-25ipc: split into separate files per-platformJason A. Donenfeld6-1152/+1201
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-05-13version: bumpv1.0.20200513Jason A. Donenfeld1-1/+1
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-05-13ipc: openbsd: switch to array ioctl interfaceJason A. Donenfeld2-89/+80
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-05-11Makefile: remember to install all systemd unitsJason A. Donenfeld1-1/+1
Reported-by: Unit 193 <unit193@unit193.net> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-05-10version: bumpv1.0.20200510Jason A. Donenfeld1-1/+1
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-05-10wg-quick: cleanup openbsd supportJason A. Donenfeld2-26/+35
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-05-10wg-quick: add support for openbsd kernel implementationMatt Dunwoodie1-4/+19
Signed-off-by: Matt Dunwoodie <ncon@noconroy.net>
2020-05-10ipc: cleanup openbsd supportJason A. Donenfeld5-94/+212
We also add a wg_if.h in the fallback include path. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-05-10ipc: add support for openbsd kernel implementationMatt Dunwoodie1-3/+262
Signed-off-by: Matt Dunwoodie <ncon@noconroy.net>
2020-05-10ipc: remove extra spaceJason A. Donenfeld1-1/+1
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-05-09wg-quick: support dns search domainsJason A. Donenfeld8-36/+88
If DNS= has an IP in it, treat it as a DNS server. If DNS= has a non-IP in it, treat it as a DNS search domain. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-05-01systemd: add wg-quick.targetMartin Hauke2-0/+3
Add file wg-quick.target, which allows starting and stopping all wg-quick@.service instances at once. Signed-off-by: Martin Hauke <mardnh@gmx.de> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-04-20terminal: specialize color_mode to stdout onlyJason A. Donenfeld2-17/+7
By specializing this to stdout, we can cache the isatty result. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>