Roopesh Chander
7f4b5b4a7b
Log view: Don't use a global array to store log entries
2019-04-10 17:57:36 +05:30
Roopesh Chander
43024dfcbb
Swift 5 migration: Handle changes in Data's pointer interface
2019-04-09 11:25:04 +05:30
Roopesh Chander
283462dc9b
Swift 5 migration: Fix switch warnings
...
We now get a warning when switching over enums from system
frameworks even when we handle all public cases because
there can be future cases that aren't handled.
When such a future case is introduced, we'll get a warning.
2019-04-09 11:25:04 +05:30
Roopesh Chander
fb4dca6018
macOS: Better handling of tunnels created by another user
...
Previously, the tunnels just got deleted.
2019-04-03 19:04:12 +05:30
Jason A. Donenfeld
2e86e5ac35
ringlogger: document races
2019-03-18 12:50:00 -06:00
Jason A. Donenfeld
5716e3fb50
ringlogger: support mpsc for singlefile
2019-03-17 08:51:27 +01:00
Jason A. Donenfeld
1d768d4e9d
wg-quick parser: trim \r as well
...
The influx of Windows users has already begun to infect our nice
project.
Reported-by: Cosku Bas <cosku.bas@gmail.com>
2019-03-11 14:05:16 -06:00
Roopesh Chander
74f55febab
Log migration of tunnel configuration
2019-02-12 19:17:32 +05:30
Roopesh Chander
078780a3ba
Don't migrate in asTunnelConfiguration()
...
It causes problems when installing a tunnel through a
Configuration Profile on macOS and activating it first through
Network Preferences.
2019-02-12 17:37:27 +05:30
Roopesh Chander
3cea15f6f2
Fix writing of preshared key to config format
2019-02-09 14:57:24 +05:30
Jason A. Donenfeld
6134817b23
Global: fix swiftlint issues
2019-02-08 17:07:28 +01:00
Jason A. Donenfeld
98866b323b
KeyEncoding: rename file to match extension filename style
2019-02-08 16:15:10 +01:00
Jason A. Donenfeld
9852a75f01
Key: we already do len checking in C
2019-02-08 14:39:59 +01:00
Jason A. Donenfeld
7ebf36d0f4
Key: Use C implementation instead
...
Swift compiles so slowly and it's unclear all of the insane type punning
was even correct.
2019-02-08 03:23:15 +01:00
Jason A. Donenfeld
e2c717212b
Key: Constant time encoding
2019-02-08 03:23:15 +01:00
Jason A. Donenfeld
c005893fe7
PrivateDataConfirmation: prompt with touch/face/pin/password ID for viewing/exporting keys
2019-02-06 06:20:23 +01:00
Jason A. Donenfeld
30576a1fe6
LegacyConfig: Remove and support plaintext for .mobileconfig
2019-02-06 06:20:23 +01:00
Jason A. Donenfeld
0407d41005
Keychain: store configurations in keychain instead of providerConfig
2019-02-06 06:20:23 +01:00
Roopesh Chander
4ac1437c4b
wg-quick conf parser: Handle inline comments correctly
2019-02-05 16:45:32 +05:30
Roopesh Chander
558f6db3c2
Logger: Convert do-catch to try?
2019-01-28 17:50:48 +05:30
Roopesh Chander
e95cb6e6bd
Config file parsing: Fix bug when there are comments at the end
2019-01-24 16:23:07 +05:30
Jason A. Donenfeld
fef3e80472
Tunnel: support getting runtime configuration
2019-01-24 01:37:57 +01:00
Roopesh Chander
ca827d2d10
Better os() directives
2019-01-22 04:06:37 +05:30
Roopesh Chander
728b3ef61f
Parsing: Always error on unrecognized keys
2019-01-14 14:52:34 +05:30
Roopesh Chander
bc9f050d7f
Parsing: Error on duplicate entries
2019-01-14 14:52:34 +05:30
Roopesh Chander
309d06217f
macOS: Refactor config file parsing
...
- To report more fine grained errors
- To make the parse errors conform to WireGuardAppError
2019-01-14 14:52:34 +05:30
Roopesh Chander
c41be2a29d
Make app groups work on both iOS and macOS
2019-01-14 14:52:28 +05:30
Jason A. Donenfeld
7bf3d7b09d
Update copyright
2019-01-07 19:23:39 -05:00
Roopesh Chander
2e37d511db
Don't set username on NETunnelProviderProtocol
...
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.
2018-12-22 16:13:31 +05:30
Eric Kuck
8fb8d9a9d2
All models now Equatable
2018-12-21 22:57:17 -06:00
Jason A. Donenfeld
0b2d91a7f4
Localize remaining strings in network extension
2018-12-22 03:42:01 +01:00
Jason A. Donenfeld
30cf9a1d1d
Move model helpers to model directory
2018-12-22 01:36:42 +01:00
Jason A. Donenfeld
e1c3d9b57a
Move name from interface to tunnel
2018-12-22 00:28:18 +01:00
Jason A. Donenfeld
775e174967
Nuke trailing spaces
2018-12-21 23:34:56 +01:00
Eric Kuck
c62c56da13
providerConfiguration is now a WgQuickConfig
2018-12-21 16:32:08 -06:00
Eric Kuck
d7a27426e9
All migration stuff moved to one gross file
2018-12-21 12:51:14 -06:00
Jason A. Donenfeld
d540c1811c
Simplify versioning of stored data
2018-12-21 18:58:06 +01:00
Jason A. Donenfeld
df698658d2
Get rid of superflous isActivateOnDemandEnabled key
2018-12-21 18:50:32 +01:00
Eric Kuck
f39893685f
Updated NETunnelProvider save format
2018-12-21 16:42:16 +01:00
Eric Kuck
9c7f27f19f
Enabled more swiftlint rules
2018-12-20 11:22:37 -06:00
Roopesh Chander
8f46713b0d
Remove non-helpful comments
2018-12-19 18:35:53 +05:30
Roopesh Chander
4c1c1f013c
TunnelsManager: If only Activate On Demand has changed, don't restart tunnel
2018-12-19 18:35:53 +05:30
Roopesh Chander
b8c331c72d
NE: Handle bad domain names and Activate On Demand
...
This combination causes iOS to keep trying to bring up the tunnel,
leading to a lot of displayMessage() alerts.
In this fix, if we get a DNS resolution error in an Activate On Demand
enabled tunnel, we silently retry 9 times (with a 4-second delay before
each retry) and then show the displayMessage() alert.
2018-12-19 15:38:00 +05:30
Eric Kuck
b06a43e2a2
Most similar views now shared between ViewControllers
2018-12-14 17:15:22 -06:00
Jason A. Donenfeld
9a7571051f
Prettier log time format
2018-12-15 00:08:54 +01:00
Jason A. Donenfeld
33d88529c6
Simplify logging tags
...
This was roop's initial idea, and it turns out to be the better one, now
that we can pass cstrings more easily.
2018-12-14 22:53:42 +01:00
Jason A. Donenfeld
628ba73aa3
Simplify filemanager extension
2018-12-13 23:25:18 +01:00
Jason A. Donenfeld
b4348a33d2
Can't -> cannot
2018-12-13 23:17:05 +01:00
Roopesh Chander
e6c1e46b1d
NE: Communicate last error to app through a shared file
2018-12-14 02:24:53 +05:30
Jason A. Donenfeld
d7f91f2888
Simplify C strings
2018-12-13 19:08:38 +01:00