aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tunnel (follow)
Commit message (Collapse)AuthorAgeFilesLines
* version: bump1.0.20200401Jason A. Donenfeld2020-04-031-0/+0
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tunnel: libwg-go: use deterministic verdef nameJason A. Donenfeld2020-04-031-1/+1
| | | | | | | | | | | | | | | | | From the ld.gold source: const char* name = parameters->options().soname(); if (name == NULL) name = parameters->options().output_file_name(); That means by default it uses `-o {output}` as the verdef aux name, which is random every time due to Go's build system. By passing in `--soname={somethingexplicit}` we can instead have a deterministic verdef. This commit makes wireguard-android reproducible. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tunnel: libwg-go: remove -x option from flockJason A. Donenfeld2020-04-011-2/+2
| | | | | | It's already the default and the macOS port of flock doesn't support it. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: cleanup code styleJason A. Donenfeld2020-03-306-18/+27
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tunnel: libwg-go: check sha256 of downloaded tarballJason A. Donenfeld2020-03-291-1/+5
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tunnel: libwg-go: stick go tarball in gradle cacheJason A. Donenfeld2020-03-293-7/+18
| | | | | | This way we don't have to build over and over. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tunnel: libwg-go: prevent parallel downloadsJason A. Donenfeld2020-03-291-3/+5
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tunnel: fix package name being passed through to cmakeJason A. Donenfeld2020-03-291-0/+16
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: hardcode tags so that minification doesn't ruin the logJason A. Donenfeld2020-03-285-5/+5
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* libwg-go: update go modulesJason A. Donenfeld2020-03-222-13/+13
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* libwg-go: bump go versionJason A. Donenfeld2020-03-221-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* InetEndpoint: return proper parser exceptionJason A. Donenfeld2020-03-191-1/+1
| | | | | | | Wrapping this in something foreign doesn't make sense. Reported-by: Luis Ressel <aranea@aixah.de> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* publish.gradle: Use non-deprecated API to prevent eager configuration of tasksHarsh Shandilya2020-03-141-2/+2
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* tunnel: Add an initial set of unit testsHarsh Shandilya2020-03-1413-0/+308
| | | | | | | Includes a control set of broken configuration files that we attempt to parse and verify that the parser fails in a predictable and consistent manner. Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* tunnel: Remove MISSING_VALUE from BadConfigException reasonsHarsh Shandilya2020-03-141-1/+0
| | | | | | | This is covered under SYNTAX_ERROR which feels like a reasonable choice, so get rid of this unused field and associated resource string. Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* config: show missing section error correctlyJason A. Donenfeld2020-03-131-1/+3
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tunnel: replace CompletableFuture with GhettoCompletableFutureJason A. Donenfeld2020-03-122-3/+33
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tunnel: we return Optional types so mark retrostreams as apiJason A. Donenfeld2020-03-121-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tunnel: add javadoc supportJason A. Donenfeld2020-03-114-11/+26
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tunnel: the external API does not expose java9Jason A. Donenfeld2020-03-101-2/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tunnel: tools: update to latest goJason A. Donenfeld2020-03-102-29/+29
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tunnel: make use of @RestrictToJason A. Donenfeld2020-03-102-0/+7
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* build: abstract out groupNameJason A. Donenfeld2020-03-102-4/+4
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: java access control has important semantic meaningJason A. Donenfeld2020-03-103-3/+3
| | | | | | | It's not right to blindly follow all of AndroidStudio's suggestions, especially for things in tunnel/ which comprise useful API. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tunnel: Codestyle cleanupsHarsh Shandilya2020-03-106-37/+33
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* ui: Codestyle cleanupsHarsh Shandilya2020-03-101-3/+3
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* tunnel: upload aar to bintrayJason A. Donenfeld2020-03-102-0/+67
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* build: apply version to both modulesJason A. Donenfeld2020-03-091-2/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Version bumpJason A. Donenfeld2020-03-091-0/+0
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: format codeJason A. Donenfeld2020-03-0911-184/+195
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: optimize importsJason A. Donenfeld2020-03-0915-44/+29
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: get rid of nonnull gradle hackJason A. Donenfeld2020-03-0925-1/+70
| | | | | | | | | | Hacking things up via gradle is not right, and package-info.java poses problems with two modules, so instead we just apply it manually to every class. Remember to add this to new classes! Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* WgQuickBackend: by default use single-tunnel mode like GoBackend, but add optionJason A. Donenfeld2020-03-091-3/+35
| | | | | | | | | Note that this currently doesn't play well with people activating wg-quick tunnels from outside the app. Those tunnels won't be deactivated. But presumably that's desired behavior anyway, considering people are mucking around at the command line. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ModuleLoader: move to right projectJason A. Donenfeld2020-03-092-0/+187
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* AsyncWorker: move back to original locationJason A. Donenfeld2020-03-091-63/+0
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Use AndroidX Nullable annotation everywhereHarsh Shandilya2020-03-092-2/+2
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* Enable nonnull generation for tunnel moduleHarsh Shandilya2020-03-091-0/+1
| | | | | | Also cleanup nonnull.gradle while we're at it Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* Migrate tunnel related classes to tunnel/ Gradle moduleHarsh Shandilya2020-03-0937-0/+4148
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>