diff options
| author | Bug Magnet <marco.nikic@mullvad.net> | 2024-10-30 17:10:43 +0100 |
|---|---|---|
| committer | Bug Magnet <marco.nikic@mullvad.net> | 2024-11-13 15:41:48 +0100 |
| commit | 26b75ba407b6099ae815775ac921024c6708d055 (patch) | |
| tree | 3cf4c06914d66baa6acce0f8298fb77fdcd21c85 /ios/MullvadRustRuntime/include | |
| parent | e763bf54a1d49f1452d6328acb2b2aaea26beae9 (diff) | |
| download | mullvadvpn-26b75ba407b6099ae815775ac921024c6708d055.tar.xz mullvadvpn-26b75ba407b6099ae815775ac921024c6708d055.zip | |
Add shadowsocks obfuscation as an option
Diffstat (limited to 'ios/MullvadRustRuntime/include')
| -rw-r--r-- | ios/MullvadRustRuntime/include/mullvad_rust_runtime.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ios/MullvadRustRuntime/include/mullvad_rust_runtime.h b/ios/MullvadRustRuntime/include/mullvad_rust_runtime.h index a110313c72..26904b89df 100644 --- a/ios/MullvadRustRuntime/include/mullvad_rust_runtime.h +++ b/ios/MullvadRustRuntime/include/mullvad_rust_runtime.h @@ -6,6 +6,15 @@ #include <stdlib.h> /** + * SAFETY: `TunnelObfuscatorProtocol` values must either be `0` or `1` + */ +enum TunnelObfuscatorProtocol { + UdpOverTcp = 0, + Shadowsocks, +}; +typedef uint8_t TunnelObfuscatorProtocol; + +/** * A thin wrapper around [`mullvad_encrypted_dns_proxy::state::EncryptedDnsProxyState`] that * can start a local forwarder (see [`Self::start`]). */ @@ -179,6 +188,7 @@ int32_t stop_shadowsocks_proxy(struct ProxyHandle *proxy_config); int32_t start_tunnel_obfuscator_proxy(const uint8_t *peer_address, uintptr_t peer_address_len, uint16_t peer_port, + TunnelObfuscatorProtocol obfuscation_protocol, struct ProxyHandle *proxy_handle); int32_t stop_tunnel_obfuscator_proxy(struct ProxyHandle *proxy_handle); |
