Alessio Nossa
a37ae8a99b
Merge branch 'master' into an/shortcuts-integration
2024-02-28 10:28:12 +01:00
Alessio Nossa
2f99f5c781
Remove backward compatibility of GetPeers with SiriKit version
...
Signed-off-by: Alessio Nossa <alessio.nossa@gmail.com >
2024-02-28 00:36:19 +01:00
Alessio Nossa
8a2a4ebd9f
Add backwards compatibility of GetPeers wit SiriKit version
...
Signed-off-by: Alessio Nossa <alessio.nossa@gmail.com >
2024-02-28 00:36:19 +01:00
Alessio Nossa
06ed6e91ad
Update AppIntents Strings
...
Signed-off-by: Alessio Nossa <alessio.nossa@gmail.com >
2024-02-28 00:36:18 +01:00
Alessio Nossa
7da272a421
Rename constant to satisfy SwiftLint
...
Signed-off-by: Alessio Nossa <alessio.nossa@gmail.com >
2024-02-28 00:36:18 +01:00
Alessio Nossa
56c4d6cc4d
Remove missing peers error in UpdateTunnelConfiguration Intent
...
Signed-off-by: Alessio Nossa <alessio.nossa@gmail.com >
2024-02-28 00:36:18 +01:00
Alessio Nossa
7abdf6eaf2
Fix return value of AppIntents in iOS 17
...
Signed-off-by: Alessio Nossa <alessio.nossa@gmail.com >
2024-02-28 00:36:17 +01:00
Alessio Nossa
97bf1c1309
WireguardApp: macOS: Add App Intents to macOS app
...
Signed-off-by: Alessio Nossa <alessio.nossa@gmail.com >
2023-04-12 00:44:03 +02:00
Alessio Nossa
ee035362ec
Implement UpdateTunnelConfiguration App Intent
...
Signed-off-by: Alessio Nossa <alessio.nossa@gmail.com >
2023-04-12 00:44:02 +02:00
Alessio Nossa
e13bc40f88
Implement BuildPeerConfigurationUpdate App Intent
...
Signed-off-by: Alessio Nossa <alessio.nossa@gmail.com >
2023-04-12 00:44:02 +02:00
Alessio Nossa
eec11c1eef
Remove UpdateConfiguration Intent with Dictionary input
...
Signed-off-by: Alessio Nossa <alessio.nossa@gmail.com >
2023-04-12 00:44:02 +02:00
Alessio Nossa
ba250fe1a5
Implement UpdateConfiguration AppIntent with Dictionary as input
...
Signed-off-by: Alessio Nossa <alessio.nossa@gmail.com >
2023-04-12 00:44:02 +02:00
Alessio Nossa
1cb06536f1
WireguardApp: Add async variant of modify tunnel function
...
Signed-off-by: Alessio Nossa <alessio.nossa@gmail.com >
2023-04-12 00:44:02 +02:00
Alessio Nossa
a0a6f26846
WireguardApp: iOS: Cleanup after SiriKit Intents removal
...
Signed-off-by: Alessio Nossa <alessio.nossa@gmail.com >
2023-04-12 00:44:01 +02:00
Alessio Nossa
c1d7199f85
Remove WireGuardIntentsExtension
...
Signed-off-by: Alessio Nossa <alessio.nossa@gmail.com >
2023-04-12 00:09:21 +02:00
Alessio Nossa
d05a1693e2
Removed UpdateConfigurationIntent SiriKit Intent
...
Signed-off-by: Alessio Nossa <alessio.nossa@gmail.com >
2023-04-12 00:09:21 +02:00
Alessio Nossa
bee5d346b1
Implement GetPeers AppIntent
...
Signed-off-by: Alessio Nossa <alessio.nossa@gmail.com >
2023-04-12 00:09:21 +02:00
Alessio Nossa
2952206138
Remove GetPeers SiriKit Intent
...
Signed-off-by: Alessio Nossa <alessio.nossa@gmail.com >
2023-04-05 13:42:56 +02:00
Alessio Nossa
7ec6974005
Complete cleanup after SetTunnelStatus Intent removal
...
Signed-off-by: Alessio Nossa <alessio.nossa@gmail.com >
2023-04-01 16:12:32 +02:00
Alessio Nossa
63c09565f2
Removed SetTunnelStatus
...
Signed-off-by: Alessio Nossa <alessio.nossa@gmail.com >
2023-04-01 16:00:24 +02:00
Jason A. Donenfeld
2fec12a6e1
App: version bump
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com >
1.0.16-27
2023-02-15 14:20:52 +01:00
Jason A. Donenfeld
7b279383d1
App: bump copyright
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com >
2023-02-15 14:20:35 +01:00
Jason A. Donenfeld
901fe1cf58
App: bump minimum OS versions
...
This allows us to remove a good deal of legacy cruft.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com >
2023-02-15 14:20:30 +01:00
Jason A. Donenfeld
ccc7472fd7
WireGuardKitGo: bump
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com >
2023-02-14 16:09:14 +01:00
John Biggs
12b095470a
WireGuardKit: fix incorrect IP address allocation size
...
According to [1], the `capacity` parameter is specified as "the number
of instances of T in the re-bound region" and not the total size of the
rebound struct.
Without this patch, there are crashes in the extension with the
following error:
Fatal error: self must be a properly aligned pointer for types Pointee and T`
Since the subsequent line in the code only reads `sizeof(in_addr)` or
`sizeof(in6_addr)` anyway, change the `capacity` parameter to just be a
count of 1.
[1] https://developer.apple.com/documentation/swift/unsafepointer/withmemoryrebound(to:capacity:_:)
Signed-off-by: John Biggs <john.biggs@proton.ch >
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com >
2023-02-08 13:08:40 -03:00
Jason A. Donenfeld
9c07693951
global: apply MIT more consistently
...
People keep asking.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com >
2022-11-17 01:17:52 +01:00
Alessio Nossa
c29787f898
WireguardApp: iOS: Added Siri shortcuts donations for SetTunnelStatus intent
...
Signed-off-by: Alessio Nossa <alessio.nossa@gmail.com >
2022-02-01 20:14:21 +01:00
Alessio Nossa
bb6ea1b2f3
Implemented SetTunnelStatus intent
...
Signed-off-by: Alessio Nossa <alessio.nossa@gmail.com >
2022-02-01 20:14:02 +01:00
Alessio Nossa
fe3f2d089b
Implemented UpdateConfiguration intent
...
Signed-off-by: Alessio Nossa <alessio.nossa@gmail.com >
2022-02-01 20:13:38 +01:00
Alessio Nossa
ceabb4ea34
WireguardApp: iOS: Moved tunnelsManager initialization to AppDelegate
...
Signed-off-by: Alessio Nossa <alessio.nossa@gmail.com >
2022-02-01 20:13:13 +01:00
Alessio Nossa
ab1e96fcdc
Implemented GetPeers intent
...
Signed-off-by: Alessio Nossa <alessio.nossa@gmail.com >
2022-02-01 20:12:47 +01:00
Alessio Nossa
0dd0672844
project: Added sources to WireGuardIntentsExtensioniOS
...
Signed-off-by: Alessio Nossa <alessio.nossa@gmail.com >
2022-02-01 20:12:15 +01:00
Alessio Nossa
3c63c386b9
project: Added WireGuardIntentsExtensioniOS target and Siri capability
...
Signed-off-by: Alessio Nossa <alessio.nossa@gmail.com >
2022-02-01 20:11:33 +01:00
Alessio Nossa
a0fe44d214
Automatic configuration files changes by Xcode
...
Signed-off-by: Alessio Nossa <alessio.nossa@gmail.com >
2022-02-01 20:10:59 +01:00
Roopesh Chander
23618f994f
UI: When saving on-demand rules, deactivate if reqd and then save
...
Signed-off-by: Roopesh Chander <roop@roopc.net >
2021-09-28 00:16:35 +05:30
Roopesh Chander
ba644415c7
UI: When saving on-demand rules on a config, enable on-demand if active
...
When a user saves on-demand rules on the configuration, set
onDemandEnabled to true if the tunnel is active, and false if it isn't.
Then deactivate the tunnel.
Signed-off-by: Roopesh Chander <roop@roopc.net >
2021-09-24 01:01:10 +05:30
Jason A. Donenfeld
10da5cfdef
App: version bump
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com >
1.0.15-26
2021-09-23 06:20:28 +02:00
Jason A. Donenfeld
75b6925deb
UI: macOS: increase login detector file timeout
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com >
2021-09-23 06:19:48 +02:00
Jason A. Donenfeld
03a59ff38e
Model: migrate iOS 14 keychain references to iOS 15 format
...
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 >
2021-09-23 06:11:19 +02:00
Jason A. Donenfeld
abf506c1fe
UI: iOS: remove list pinking when no config
...
This reverts commit 86afd1a46a .
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com >
2021-09-23 06:08:53 +02:00
Jason A. Donenfeld
dfb685f258
WireGuardApp: restore old keychain consistency behavior
...
This reverts commit adcbd17ebe .
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com >
2021-09-23 05:40:10 +02:00
Jason A. Donenfeld
f3798d0e11
App: version bump
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com >
1.0.14-25
2021-09-22 20:59:19 +02:00
Jason A. Donenfeld
86afd1a46a
UI: iOS: disable list rows when no config
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com >
2021-09-22 20:56:25 +02:00
Jason A. Donenfeld
7171df84fa
WireGuardApp: use file to communicate launch-by-login-helper
...
Apple event params are broken on recent macOS versions.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com >
2021-09-22 19:22:44 +02:00
Jason A. Donenfeld
d882a486a9
Keychain: remove class constraint when copying
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com >
2021-09-22 16:51:25 +02:00
Jason A. Donenfeld
adcbd17ebe
WireGuardApp: do not delete unverifying profiles ever
...
The Keychain code is much too fragile, and it's better to err on the
safe side. Instead just log an error when this happens.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com >
2021-09-22 07:13:48 +02:00
Jason A. Donenfeld
3d8de22b96
WireGuardKitGo: bump wireguard-go version
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com >
2021-09-22 06:58:14 +02:00
Roopesh Chander
ba4d1e7b21
MacAppStoreUpdateDetector: Detect StoreAEService correctly
...
In macOS 10.15 and macOS 11, the quit Apple event is sent by:
com.apple.AppStoreDaemon.StoreAEService
In some earlier macOS release, the quit Apple event was sent by:
com.apple.CommerceKit.StoreAEService
Signed-off-by: Roopesh Chander <roop@roopc.net >
2021-09-22 06:58:14 +02:00
Roopesh Chander
f5a14b8434
MacAppStoreUpdateDetector: Add pid to the log
...
Signed-off-by: Roopesh Chander <roop@roopc.net >
2021-09-22 06:58:14 +02:00
Jason A. Donenfeld
b74eb7239a
WireGuardKitGo: include new homebrew location in PATH
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com >
2021-09-22 06:58:14 +02:00