Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | wg-quick: darwin: support being called from launchd | Jason A. Donenfeld | 2019-06-24 | 2 | -0/+37 |
| | | | | | | | This causes wg-quick up to wait for the monitor to exit before it exits, so that launchd can correctly wait on it. Reported-by: Cameron Palmer <cameron@promon.no> | ||||
* | tools: genkey: account for short reads of /dev/urandom | Jason A. Donenfeld | 2019-02-28 | 1 | -6/+11 |
| | | | | | | | | | | Apparently Haiku has a misbehaving /dev/urandom. While we're at it, simplify the function signature to completely succeed or completely fail and make sure the caller checks the result. Reported-by: Alexander von Gluck IV <kallisti5@unixzen.com> Nitpicked-by: Aaron Jones <aaronmdjones@gmail.com> | ||||
* | highlighter: when subtracting char, cast to unsigned | Jason A. Donenfeld | 2019-01-31 | 1 | -2/+2 |
| | | | | Windows. | ||||
* | netlink: use __kernel_timespec for handshake time | Jason A. Donenfeld | 2019-01-23 | 1 | -1/+7 |
| | |||||
* | contrib: introduce simple highlighter library | Jason A. Donenfeld | 2019-01-23 | 8 | -0/+904 |
| | |||||
* | global: normalize -> clamp | Jason A. Donenfeld | 2019-01-23 | 2 | -6/+6 |
| | |||||
* | keygen-html: bring back pure javascript implementation | Jason A. Donenfeld | 2019-01-23 | 6 | -139/+186 |
| | | | | | | | This reverts commit 9d5baf7d1d14ca7eb0852b41566330259229d489. Benoît Viguier has proofs that values will stay well within 2^53. We also have an improved carry function that's much simpler. | ||||
* | global: update copyright | Jason A. Donenfeld | 2019-01-07 | 26 | -26/+26 |
| | |||||
* | makefile: use immediate expansion and use correct template patterns | Jason A. Donenfeld | 2018-12-18 | 2 | -0/+2 |
| | |||||
* | embeddable-wg-library: do not warn on unrecognized netlink attributes | Jason A. Donenfeld | 2018-12-07 | 1 | -15/+1 |
| | | | | This is a follow up of bcf8684c9ec90fe0d283a67d1654d05fb3eae019. | ||||
* | jerry-rig: replace S_shipped with pl | Jason A. Donenfeld | 2018-11-19 | 1 | -1/+1 |
| | |||||
* | chacha20,poly1305: switch to perlasm originals on mips and arm | Jason A. Donenfeld | 2018-11-14 | 1 | -1/+1 |
| | | | | | We also separate out Eric Biggers' Cortex A7 implementation into its own file. | ||||
* | global: various formatting tweeks | Jason A. Donenfeld | 2018-11-13 | 1 | -25/+25 |
| | |||||
* | keygen-html: add missing glue macro | Jason A. Donenfeld | 2018-11-06 | 1 | -0/+1 |
| | |||||
* | tools: don't fail if a netlink interface dump is inconsistent | Jason A. Donenfeld | 2018-10-13 | 1 | -2/+9 |
| | | | | | | | | | | Netlink returns NLM_F_DUMP_INTR if the set of all tunnels changed during the dump. That's unfortunate, but is pretty common on busy systems that are adding and removing tunnels all the time. Rather than retrying, potentially indefinitely, we just work with the partial results. Reported-by: Robert Gerus <ar@is-a.cat> | ||||
* | global: rename struct wireguard_ to struct wg_ | Jason A. Donenfeld | 2018-10-08 | 1 | -5/+5 |
| | | | | | | This required a bit of pruning of our christmas trees. Suggested-by: Jiri Pirko <jiri@resnulli.us> | ||||
* | netlink: do not stuff index into nla type | Jason A. Donenfeld | 2018-10-08 | 1 | -5/+4 |
| | | | | | | | It's not used for anything, and LKML doesn't like the type being used as an index value. Suggested-by: Eugene Syromiatnikov <esyr@redhat.com> | ||||
* | create-patch: blacklist instead of whitelist | Jason A. Donenfeld | 2018-10-08 | 1 | -1/+2 |
| | | | | | | This will deal with filename changes more gracefully. Reported-by: Jordan Glover <Golden_Miller83@protonmail.ch> | ||||
* | crypto: clean up remaining .h->.c | Jason A. Donenfeld | 2018-10-07 | 1 | -1/+1 |
| | |||||
* | crypto: make constant naming scheme consistent | Jason A. Donenfeld | 2018-09-25 | 1 | -2/+2 |
| | |||||
* | global: put SPDX identifier on its own line | Jason A. Donenfeld | 2018-09-20 | 10 | -20/+20 |
| | | | | | The kernel has very specific rules correlating file type with comment type, and also SPDX identifiers can't be merged with other comments. | ||||
* | crypto: import zinc | Jason A. Donenfeld | 2018-09-03 | 2 | -2/+4 |
| | |||||
* | global: run through clang-format | Jason A. Donenfeld | 2018-08-28 | 1 | -1/+1 |
| | | | | | | | This is the worst commit in the whole repo, making the code much less readable, but so it goes with upstream maintainers. We are now woefully wrapped at 80 columns. | ||||
* | embeddable-wg-library: do not left shift negative numbers | Jason A. Donenfeld | 2018-07-24 | 1 | -7/+2 |
| | | | | Otherwise we incur undefined behavior. | ||||
* | dns-hatchet: apply resolv.conf's selinux context to new resolv.conf | Jason A. Donenfeld | 2018-06-17 | 1 | -0/+2 |
| | |||||
* | tools: encoding: add missing static array constraints | Jason A. Donenfeld | 2018-06-06 | 2 | -3/+3 |
| | |||||
* | tools: constanter time encoding | Jason A. Donenfeld | 2018-05-31 | 1 | -7/+7 |
| | |||||
* | ncat-client-server: do not always call sudo and use env bash | Jason A. Donenfeld | 2018-05-22 | 1 | -2/+3 |
| | |||||
* | dns-hatchet: update paths | Jason A. Donenfeld | 2018-05-16 | 1 | -1/+1 |
| | | | | Suggested-by: Martin Hauke <mardnh@gmx.de> | ||||
* | ncat-client-server: add wg-quick variant | Jason A. Donenfeld | 2018-05-15 | 2 | -4/+37 |
| | |||||
* | embeddable-wg-library: zero attribute padding | Jason A. Donenfeld | 2018-05-03 | 1 | -0/+4 |
| | | | | See: http://git.netfilter.org/libmnl/commit/?id=37c876b55a2c00424ccda5a300ab5fdec1d88b22 | ||||
* | keygen-html: add zip file example | Jason A. Donenfeld | 2018-05-02 | 1 | -3/+127 |
| | | | | A little bit more JavaScript for easy copy&pasting. | ||||
* | contrib: add extract-handshakes kprobe example | Jason A. Donenfeld | 2018-03-04 | 5 | -0/+175 |
| | |||||
* | Revert "contrib: keygen-html: rewrite in pure javascript" | Jason A. Donenfeld | 2018-03-02 | 5 | -187/+129 |
| | | | | | | | This reverts commit e5203543a674453ce1e0cbbcb234d3308762fe65. As swanky as it is to have a really short file, it's hard to justify and makes me nervous. | ||||
* | contrib: keygen-html: rewrite in pure javascript | Jason A. Donenfeld | 2018-03-02 | 5 | -129/+187 |
| | | | | | Emscripten is too cumbersome. This code here is much slower, but it's shorter and simpler. | ||||
* | contrib: embedded-wg-library: add key generation functions | Jason A. Donenfeld | 2018-03-02 | 3 | -2/+205 |
| | |||||
* | contrib: embedded-wg-library: add ability to add and del interfaces | Jason A. Donenfeld | 2018-02-21 | 3 | -3/+109 |
| | |||||
* | contrib: add embeddable wireguard library | Jason A. Donenfeld | 2018-02-17 | 6 | -0/+1671 |
| | |||||
* | tools: allow in-line comments | Jason A. Donenfeld | 2018-02-17 | 1 | -2/+3 |
| | |||||
* | external-tests: update go version | Jason A. Donenfeld | 2018-02-15 | 1 | -2/+2 |
| | |||||
* | keygen-html: fix up copyright | Jason A. Donenfeld | 2018-02-02 | 1 | -4/+0 |
| | |||||
* | curve25519: replace fiat64 with faster hacl64 | Jason A. Donenfeld | 2018-02-01 | 1 | -1/+1 |
| | | | | | This reverts commit da4ff396cc5d5e0ff21f9ecbc2f951c048c63fff and adds some optimizations to hacl64. | ||||
* | curve25519: replace hacl64 with fiat64 | Jason A. Donenfeld | 2018-02-01 | 1 | -1/+1 |
| | | | | | | | | | | For now, it's faster: hacl64: 109782 cycles per call fiat64: 108984 cycles per call It's quite possible this commit will be reverted with nice changes from INRIA, though. | ||||
* | contrib: keygen-html: share curve25519 implementation with kernel | Jason A. Donenfeld | 2018-01-23 | 2 | -831/+31 |
| | |||||
* | curve25519-fiat32: uninline certain functions | Jason A. Donenfeld | 2018-01-18 | 1 | -4/+4 |
| | | | | | | | | | | | While this has a negative performance impact on x86_64, it has a positive performance impact on smaller machines, which is where we're actually using this code. For example, an A53: Before: fiat32: 228605 cycles per call After: fiat32: 188307 cycles per call | ||||
* | contrib: keygen-html: update curve25519 implementation | Jason A. Donenfeld | 2018-01-18 | 1 | -785/+769 |
| | |||||
* | external-tests: add python implementation | Piotr Lizończyk | 2018-01-11 | 1 | -0/+94 |
| | |||||
* | wg-quick: ifnames have max len of 15 | Jason A. Donenfeld | 2018-01-10 | 1 | -2/+2 |
| | |||||
* | global: year bump | Jason A. Donenfeld | 2018-01-03 | 20 | -20/+20 |
| | |||||
* | keygen-html: remove prebuilt file | Jason A. Donenfeld | 2017-12-12 | 7 | -45/+42 |
| | | | | | | | We also reduce the optimization level, just in case, but add closure compiler into the mix. Suggested-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net> |