Skip to content

Commit

Permalink
Clarify todo comments
Browse files Browse the repository at this point in the history
  • Loading branch information
buggmagnet committed Sep 5, 2024
1 parent ce54ef5 commit f8638f9
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func tcpConnectionReceive(
}
}

/// End sequence of a quantum-secure pre shared key exchange.
/// End sequence of an ephemeral peer exchange.
///
/// This FFI function is called by Rust when an ephemeral peer negotiation succeeded or failed.
/// When both the `rawPresharedKey` and the `rawEphemeralKey` are raw pointers to 32 bytes data arrays,
Expand Down
2 changes: 1 addition & 1 deletion ios/MullvadVPN/TunnelManager/TunnelState+UI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ extension TunnelState {
)
}

// TODO: How to Handle Daita here ?
// TODO: Handle Daita here in an upcoming PR for the UI
case .negotiatingEphemeralPeer:
NSLocalizedString(
"TUNNEL_STATE_NEGOTIATING_KEY",
Expand Down
3 changes: 1 addition & 2 deletions ios/MullvadVPN/TunnelManager/TunnelState.swift
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ enum TunnelState: Equatable, CustomStringConvertible {
/// Connecting the tunnel.
case connecting(SelectedRelays?, isPostQuantum: Bool)

// TODO: Add information here to support Daita ???
/// Negotiating an ephemeral peer either for post-quantum resistance or Daita
case negotiatingEphemeralPeer(SelectedRelays, PrivateKey)

Expand Down Expand Up @@ -113,7 +112,7 @@ enum TunnelState: Equatable, CustomStringConvertible {
case let .error(blockedStateReason):
"error state: \(blockedStateReason)"
case let .negotiatingEphemeralPeer(tunnelRelays, _):
// TODO: Handle Daita and PQ here
// TODO: Handle Daita and PQ here in an upcoming PR for the UI
"""
negotiating key with exit relay: \(tunnelRelays.exit.hostname)\
\(tunnelRelays.entry.flatMap { " via \($0.hostname)" } ?? "")
Expand Down
1 change: 0 additions & 1 deletion ios/PacketTunnelCore/Actor/ObservedState+Extensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ extension ObservedState {
"Connected"
case .connecting:
"Connecting"
// TODO: Handle Daita here ?
case .negotiatingEphemeralPeer:
"Negotiating Post Quantum Secure Key"
case .reconnecting:
Expand Down
5 changes: 2 additions & 3 deletions ios/PacketTunnelCore/Actor/PacketTunnelActorCommand.swift
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,10 @@ extension PacketTunnelActor {
return "networkReachability"
case .switchKey:
return "switchKey"
// TODO: Handle Daita here ???
case .ephemeralPeerNegotiationStateChanged:
return "postQuantumNegotiationStateChanged"
return "ephemeralPeerNegotiationStateChanged"
case .notifyEphemeralPeerNegotiated:
return "notifyPostQuantumKeyExchanged"
return "notifyEphemeralPeerNegotiated"
}
}
}
Expand Down
1 change: 0 additions & 1 deletion mullvad-ios/src/post_quantum_proxy/ios_runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ impl IOSRuntime {
let (async_provider, shutdown_handle) = unsafe {
match Self::ios_tcp_client(self.packet_tunnel.clone()).await {
Ok(result) => result,

Err(error) => {
log::error!("Failed to create iOS TCP client: {error}");
swift_ephemeral_peer_ready(
Expand Down

0 comments on commit f8638f9

Please sign in to comment.