File tree 3 files changed +7
-7
lines changed
3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import TalpidTunnelConfigClientProxy
14
14
import WireGuardKitTypes
15
15
16
16
// swiftlint:disable function_parameter_count
17
- public protocol PostQuantumKeyNegotiation {
17
+ public protocol PostQuantumKeyNegotiating {
18
18
func startNegotiation(
19
19
gatewayIP: IPv4Address ,
20
20
devicePublicKey: PublicKey ,
@@ -32,7 +32,7 @@ public protocol PostQuantumKeyNegotiation {
32
32
/**
33
33
Attempt to start the asynchronous process of key negotiation. Returns true if successfully started, false if failed.
34
34
*/
35
- public class PostQuantumKeyNegotiator : PostQuantumKeyNegotiation {
35
+ public class PostQuantumKeyNegotiator : PostQuantumKeyNegotiating {
36
36
required public init ( ) { }
37
37
38
38
var cancelToken : PostQuantumCancelToken ?
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ class TunnelProviderStub: TunnelProvider {
43
43
}
44
44
}
45
45
46
- class FailedNegotiatorStub : PostQuantumKeyNegotiation {
46
+ class FailedNegotiatorStub : PostQuantumKeyNegotiating {
47
47
var onCancelKeyNegotiation : ( ( ) -> Void ) ?
48
48
49
49
required init ( ) {
@@ -68,7 +68,7 @@ class FailedNegotiatorStub: PostQuantumKeyNegotiation {
68
68
}
69
69
}
70
70
71
- class SuccessfulNegotiatorStub : PostQuantumKeyNegotiation {
71
+ class SuccessfulNegotiatorStub : PostQuantumKeyNegotiating {
72
72
var onCancelKeyNegotiation : ( ( ) -> Void ) ?
73
73
required init ( ) {
74
74
onCancelKeyNegotiation = nil
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ import WireGuardKitTypes
15
15
16
16
public class PostQuantumKeyExchangeActor {
17
17
struct Negotiation {
18
- var negotiator : PostQuantumKeyNegotiation
18
+ var negotiator : PostQuantumKeyNegotiating
19
19
var inTunnelTCPConnection : NWTCPConnection
20
20
var tcpConnectionObserver : NSKeyValueObservation
21
21
@@ -30,15 +30,15 @@ public class PostQuantumKeyExchangeActor {
30
30
internal var negotiation : Negotiation ?
31
31
private var timer : DispatchSourceTimer ?
32
32
private var keyExchangeRetriesIterator : AnyIterator < Duration >
33
- private let negotiationProvider : PostQuantumKeyNegotiation . Type
33
+ private let negotiationProvider : PostQuantumKeyNegotiating . Type
34
34
35
35
// Callback in the event of the negotiation failing on startup
36
36
var onFailure : ( ) -> Void
37
37
38
38
public init (
39
39
packetTunnel: any TunnelProvider ,
40
40
onFailure: @escaping ( ( ) -> Void ) ,
41
- negotiationProvider: PostQuantumKeyNegotiation . Type = PostQuantumKeyNegotiator . self,
41
+ negotiationProvider: PostQuantumKeyNegotiating . Type = PostQuantumKeyNegotiator . self,
42
42
keyExchangeRetriesIterator: AnyIterator < Duration > = REST . RetryStrategy. postQuantumKeyExchange
43
43
. makeDelayIterator ( )
44
44
) {
You can’t perform that action at this time.
0 commit comments