aboutsummaryrefslogtreecommitdiffstats
path: root/Sources/Shared (follow)
Commit message (Collapse)AuthorAgeFilesLines
* App: bump copyrightJason A. Donenfeld2023-02-159-9/+9
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* App: bump minimum OS versionsJason A. Donenfeld2023-02-151-18/+16
| | | | | | This allows us to remove a good deal of legacy cruft. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Model: migrate iOS 14 keychain references to iOS 15 formatJason A. Donenfeld2021-09-231-1/+22
| | | | | | | | | | | | | | | | | | | | | | | Keychain references used to be bijective, but with the change in format, Apple tried to be too clever, and references are no longer bijective. This lead to us deleting keychain entries, which in turn emptied out people's configs upon upgrading to iOS 15. Disaster! Fix this by detecting the change in format and saving the new password reference. We still rely on this being bijective moving forward; hopefully this bug won't repeat itself. It would be nice to not rely on that property, but doing so without grinding startup to a halt isn't obviously done, given how slow the keychain accesses are and how limited the API is. Reported-by: Eddie <stunnel@attglobal.net> Reported-by: Anatoli <me@anatoli.ws> Reported-by: Alan Graham <alan@meshify.app> Reported-by: Jacob Wilder <oss@jacobwilder.org> Reported-by: Miguel Arroz <miguel.arroz@gmail.com> Reported-by: Reid Rankin <reidrankin@gmail.com> Reported-by: Fabien <patate.cosmique@pm.me> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* WireGuardApp: use file to communicate launch-by-login-helperJason A. Donenfeld2021-09-221-0/+4
| | | | | | Apple event params are broken on recent macOS versions. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Keychain: remove class constraint when copyingJason A. Donenfeld2021-09-221-4/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Global: bump copyright yearJason A. Donenfeld2021-06-179-9/+9
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* UI: use NotificationToken to properly clean up observersAndrej Mihajlov2020-12-221-0/+33
| | | | | | | When the variable goes out of scope, the observer isn't removed unless an explicit call is made to the token. Signed-off-by: Andrej Mihajlov <and@mullvad.net>
* Keychain: prevent call to stat() when determining appex pathAndrej Mihajlov2020-12-221-1/+1
| | | | Signed-off-by: Andrej Mihajlov <and@mullvad.net>
* global: support DNS search domainsJason A. Donenfeld2020-12-151-5/+10
| | | | | | | This has been supported by Windows and Linux for quite some time. Add support here for iOS and macOS. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: bump year in headerJason A. Donenfeld2020-12-048-8/+8
| | | | | | A bit overdue, but better late than never. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* WireGuardApp: Remove backend version call in Logger.swift & extract wireguard-go version script from network extension targetsAndrej Mihajlov2020-12-041-1/+2
| | | | Signed-off-by: Andrej Mihajlov <and@mullvad.net>
* Keychain: Avoid roundtrip via items when accessing item label (stored in kSecAttrLabel)Andrej Mihajlov2020-12-041-4/+3
| | | | Signed-off-by: Andrej Mihajlov <and@mullvad.net>
* Keychain: Remove unnecessary cast to String in Keychain queriesAndrej Mihajlov2020-12-041-23/+23
| | | | Signed-off-by: Andrej Mihajlov <and@mullvad.net>
* WireGuardApp: Add back the wireguard-go version extraction script and use WIREGUARD_GO_VERSION directlyAndrej Mihajlov2020-12-041-1/+1
| | | | | | Avoids linking against libwg-go.a in order to access the WireGuard backend version. Signed-off-by: Andrej Mihajlov <and@mullvad.net>
* WireGuardApp: integrate WireGuardKit sources directlyAndrej Mihajlov2020-12-033-3/+0
| | | | Signed-off-by: Andrej Mihajlov <and@mullvad.net>
* Linter: Fix all linter issues across the codebaseAndrej Mihajlov2020-12-031-4/+4
| | | | Signed-off-by: Andrej Mihajlov <and@mullvad.net>
* Move all source files to `Sources/` and rename WireGuardKit targetsAndrej Mihajlov2020-12-039-0/+850
Signed-off-by: Andrej Mihajlov <and@mullvad.net>