Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | wg-quick parser: trim \r as well | Jason A. Donenfeld | 2019-03-11 | 1 | -5/+5 |
| | | | | | | | | The influx of Windows users has already begun to infect our nice project. Reported-by: Cosku Bas <cosku.bas@gmail.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> | ||||
* | Log migration of tunnel configuration | Roopesh Chander | 2019-02-12 | 1 | -0/+1 |
| | | | | Signed-off-by: Roopesh Chander <roop@roopc.net> | ||||
* | Don't migrate in asTunnelConfiguration() | Roopesh Chander | 2019-02-12 | 1 | -11/+8 |
| | | | | | | | | It causes problems when installing a tunnel through a Configuration Profile on macOS and activating it first through Network Preferences. Signed-off-by: Roopesh Chander <roop@roopc.net> | ||||
* | Fix writing of preshared key to config format | Roopesh Chander | 2019-02-09 | 1 | -1/+1 |
| | | | | Signed-off-by: Roopesh Chander <roop@roopc.net> | ||||
* | Global: fix swiftlint issues | Jason A. Donenfeld | 2019-02-08 | 1 | -3/+0 |
| | | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> | ||||
* | KeyEncoding: rename file to match extension filename style | Jason A. Donenfeld | 2019-02-08 | 1 | -0/+0 |
| | | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> | ||||
* | Key: we already do len checking in C | Jason A. Donenfeld | 2019-02-08 | 1 | -6/+0 |
| | | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> | ||||
* | Key: Use C implementation instead | Jason A. Donenfeld | 2019-02-08 | 3 | -111/+159 |
| | | | | | | | Swift compiles so slowly and it's unclear all of the insane type punning was even correct. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> | ||||
* | Key: Constant time encoding | Jason A. Donenfeld | 2019-02-08 | 2 | -7/+159 |
| | | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> | ||||
* | PrivateDataConfirmation: prompt with touch/face/pin/password ID for viewing/exporting keys | Jason A. Donenfeld | 2019-02-06 | 1 | -2/+2 |
| | | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> | ||||
* | LegacyConfig: Remove and support plaintext for .mobileconfig | Jason A. Donenfeld | 2019-02-06 | 2 | -205/+13 |
| | | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> | ||||
* | Keychain: store configurations in keychain instead of providerConfig | Jason A. Donenfeld | 2019-02-06 | 2 | -21/+49 |
| | | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> | ||||
* | wg-quick conf parser: Handle inline comments correctly | Roopesh Chander | 2019-02-05 | 1 | -3/+3 |
| | | | | Signed-off-by: Roopesh Chander <roop@roopc.net> | ||||
* | Config file parsing: Fix bug when there are comments at the end | Roopesh Chander | 2019-01-24 | 1 | -28/+28 |
| | | | | Signed-off-by: Roopesh Chander <roop@roopc.net> | ||||
* | Tunnel: support getting runtime configuration | Jason A. Donenfeld | 2019-01-24 | 2 | -0/+5 |
| | | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> | ||||
* | Parsing: Always error on unrecognized keys | Roopesh Chander | 2019-01-14 | 1 | -12/+10 |
| | | | | Signed-off-by: Roopesh Chander <roop@roopc.net> | ||||
* | Parsing: Error on duplicate entries | Roopesh Chander | 2019-01-14 | 1 | -2/+7 |
| | | | | Signed-off-by: Roopesh Chander <roop@roopc.net> | ||||
* | macOS: Refactor config file parsing | Roopesh Chander | 2019-01-14 | 1 | -26/+71 |
| | | | | | | | - To report more fine grained errors - To make the parse errors conform to WireGuardAppError Signed-off-by: Roopesh Chander <roop@roopc.net> | ||||
* | Update copyright | Jason A. Donenfeld | 2019-01-07 | 10 | -10/+10 |
| | | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> | ||||
* | Don't set username on NETunnelProviderProtocol | Roopesh Chander | 2018-12-22 | 1 | -3/+0 |
| | | | | | | | | The username corresponds to the Account field in iOS system VPN UI, but if we don't set it, the field is not shown, so setting it isn't really required. Signed-off-by: Roopesh Chander <roop@roopc.net> | ||||
* | All models now Equatable | Eric Kuck | 2018-12-21 | 6 | -0/+75 |
| | | | | Signed-off-by: Eric Kuck <eric@bluelinelabs.com> | ||||
* | Localize remaining strings in network extension | Jason A. Donenfeld | 2018-12-22 | 1 | -0/+8 |
| | | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> | ||||
* | Move model helpers to model directory | Jason A. Donenfeld | 2018-12-22 | 4 | -0/+463 |
| | | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> | ||||
* | Move name from interface to tunnel | Jason A. Donenfeld | 2018-12-22 | 2 | -5/+5 |
| | | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> | ||||
* | Nuke trailing spaces | Jason A. Donenfeld | 2018-12-21 | 5 | -11/+11 |
| | | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> | ||||
* | providerConfiguration is now a WgQuickConfig | Eric Kuck | 2018-12-21 | 6 | -162/+2 |
| | | | | Signed-off-by: Eric Kuck <eric@bluelinelabs.com> | ||||
* | All migration stuff moved to one gross file | Eric Kuck | 2018-12-21 | 6 | -235/+0 |
| | | | | Signed-off-by: Eric Kuck <eric@bluelinelabs.com> | ||||
* | Updated NETunnelProvider save format | Eric Kuck | 2018-12-21 | 13 | -169/+494 |
| | | | | Signed-off-by: Eric Kuck <eric@bluelinelabs.com> | ||||
* | Remove non-helpful comments | Roopesh Chander | 2018-12-19 | 3 | -6/+0 |
| | | | | Signed-off-by: Roopesh Chander <roop@roopc.net> | ||||
* | Most similar views now shared between ViewControllers | Eric Kuck | 2018-12-14 | 1 | -1/+1 |
| | | | | Signed-off-by: Eric Kuck <eric@bluelinelabs.com> | ||||
* | More formatting nits and cyclomatic complexity fixes | Eric Kuck | 2018-12-12 | 2 | -6/+4 |
| | | | | Signed-off-by: Eric Kuck <eric@bluelinelabs.com> | ||||
* | Tons more swiftlint warnings fixed. Still a few remaining. | Eric Kuck | 2018-12-12 | 1 | -7/+7 |
| | | | | Signed-off-by: Eric Kuck <eric@bluelinelabs.com> | ||||
* | Added swiftlint and fixed all errors (and a bunch, but not all, warnings) | Eric Kuck | 2018-12-12 | 4 | -16/+24 |
| | | | | Signed-off-by: Eric Kuck <eric@bluelinelabs.com> | ||||
* | Model: Declare keyLength constant and use that wherever applicable | Roopesh Chander | 2018-12-09 | 1 | -3/+6 |
| | | | | Signed-off-by: Roopesh Chander <roop@roopc.net> | ||||
* | Model, Tunnels manager: Rewrite the model for VPN-on-demand | Roopesh Chander | 2018-11-12 | 2 | -87/+1 |
| | | | | | | | | | The VPN-on-demand settings should not be part of the tunnel configuration. Rather, the onDemandRules stored in the tunnel provider configuration serve as the one place where the VPN-on-demand settings are stored. Signed-off-by: Roopesh Chander <roop@roopc.net> | ||||
* | Model: Add activationType to tunnel configuration | Roopesh Chander | 2018-11-11 | 2 | -18/+24 |
| | | | | | | | | | We make sure existing tunnel serializations can be deserialized correctly. We also bump up the tunnelConfigurationVersion, because the tunnel configuration contents have changed. Signed-off-by: Roopesh Chander <roop@roopc.net> | ||||
* | Model: ActivityType enum to represent VPN-on-demand options | Roopesh Chander | 2018-11-10 | 1 | -0/+66 |
| | | | | Signed-off-by: Roopesh Chander <roop@roopc.net> | ||||
* | Model: TunnelConfiguration: Add explicit conformance to Decodable | Roopesh Chander | 2018-11-10 | 1 | -1/+15 |
| | | | | Signed-off-by: Roopesh Chander <roop@roopc.net> | ||||
* | Model: Ensure that a TunnelConfiguration always has a valid array of peers | Roopesh Chander | 2018-11-10 | 1 | -2/+9 |
| | | | | Signed-off-by: Roopesh Chander <roop@roopc.net> | ||||
* | Model: Endpoint.hostname() | Roopesh Chander | 2018-11-08 | 1 | -0/+11 |
| | | | | Signed-off-by: Roopesh Chander <roop@roopc.net> | ||||
* | Model: Move InterfaceConfiguration.publicKey to Curve25519.swift | Roopesh Chander | 2018-11-08 | 1 | -4/+0 |
| | | | | | | The code for public key calculation need not be shared with the extension Signed-off-by: Roopesh Chander <roop@roopc.net> | ||||
* | Move logic to extension: Move model files to Shared | Roopesh Chander | 2018-11-08 | 4 | -0/+287 |
Signed-off-by: Roopesh Chander <roop@roopc.net> |