summaryrefslogtreecommitdiffhomepage
path: root/mullvad-api/src/lib.rs
AgeCommit message (Collapse)AuthorFilesLines
2023-11-07Configure firewall rules to allow proxy clientsMarkus Pettersson1-3/+3
The default setting will (always) be to only allow processes with root-privilege to send/receive traffic from an allowed endpoint. This change is only supposed to be used with the local SOCKS5 api access method.
2023-11-07Add configurable transport protocol to local SOCKS5 access methodMarkus Pettersson1-3/+3
2023-10-30Share hostname string in RequestFactoryDavid Lönnhager1-1/+1
2023-10-30Remove unused URL componentDavid Lönnhager1-1/+1
2023-10-30Newtype REST ResponseDavid Lönnhager1-11/+8
2023-10-30Handle authentication and errors in API clientDavid Lönnhager1-113/+55
2023-10-19Fold all access token requests into a single requestDavid Lönnhager1-9/+27
2023-10-16Add android conditional compilation for google payJonathan1-1/+6
Add conditional compilation for google pay API access for only android. Also allow new error type to be parsed. Additionally fix review comments, formatting and warnings.
2023-10-16Add piping for google play payment API requestsJonathan1-1/+58
This commit adds all of the basic piping in order to let Android use the JNI interface in order to make requests to our API pertaining to google play payment initialization and status.
2023-08-04Replace all use of `lazy_static` with `once_cell`Markus Pettersson1-1/+1
To align more with the upcoming standardizations within the Rust ecosystem which started with the release of `1.70.0` and the inevitable deprecation of `lazy_static`.
2023-08-04Remove some use of `once_cell` with new std alternativesMarkus Pettersson1-4/+4
`OnceCell` and `OnceLock` was stabilized in Rust `1.70.0`, which allow us to refactor some use of the `once_cell` crate to use the implementations in the standard library.
2023-07-14Remove `x_threshold_wg_default` codeMarkus Pettersson1-10/+0
Since we migrated to using Wireguard as the definitive default VPN, we can stop reading the `x_threshold_wg_default` field from the API and remove all daemon code related to using it
2023-03-29Remove getters and setters from SettingsPersisterDavid Lönnhager1-1/+0
2023-01-30Run `cargo clippy --fix` with the new Rust 1.67 preferred formatLinus Färnstrand1-8/+8
2022-11-28Conditionally compile some API override fieldsDavid Lönnhager1-2/+14
2022-11-28Warn about MULLVAD_API_DISABLE_TLS being set if the API address and host are notDavid Lönnhager1-3/+10
2022-11-28Make API address overridable from MullvadDaemonDavid Lönnhager1-9/+44
2022-11-28Add option to disable TLS for API RPCs, and resolve address from hostname if ↵David Lönnhager1-14/+28
needed
2022-11-28Don't use bridges if the API endpoint is overriddenDavid Lönnhager1-0/+3
2022-11-28Add support for non-TLS API connectionsDavid Lönnhager1-0/+2
2022-11-28Use once_cell instead of lazy_static in mullvad-apiDavid Lönnhager1-4/+3
2022-11-21Update API ipAndrej Mihajlov1-1/+1
2022-08-29Fix Clippy errorsDavid Lönnhager1-3/+2
2022-08-15Allow for migrating windows users to WGJonathan1-0/+10
Use a potential value between 0 and 1 provided by the API version check to decide if the Windows client should use WireGuard or OpenVpn. This decision is then persisted in the settings in the form of a random value between 0 and 1 where if the value is higher than the value provided by the API the client will use OpenVpn. If there is no value provided by the API then the client will use WireGuard as the migration has concluded.
2022-06-21Fix the large majority of clippy warningsJonathan1-1/+1
This commit fixes most of the remaining clippy warnings in the codebase. These warnings were the more semantically difficult ones to fix. There are some warnings that remain from the rebase that will be fixed in the upcoming PR.
2022-06-20Add abstraction for atomic file I/ODavid Lönnhager1-0/+1
2022-06-13Perform a clippy --fixjonathan1-6/+2
This is a giant commit which performs only a clippy --fix. Auditing can happen in two ways, either by reading every line or by running a `cargo clippy --fix` on the previous commit and make sure that the result is the same.
2022-05-11Check status in API response body to determine whether a device has been revokedDavid Lönnhager1-0/+3
2022-05-09Use stable device API endpointsDavid Lönnhager1-1/+1
2022-05-02Remove account number field from non-creation account API responseDavid Lönnhager1-8/+12
2022-04-21Change API IP to use DDoS protected IPDavid Lönnhager1-1/+1
2022-03-23Rename `mullvad_api::MullvadRpcRuntime` to `mullvad_api::Runtime`David Lönnhager1-7/+7
2022-03-23Rename mullvad-rpc to mullvad-apiDavid Lönnhager1-0/+530