From c64cb79bfebbe83d5152ea9888ce903e5661086f Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Mon, 28 Dec 2020 16:30:26 +0100 Subject: [PATCH] Update Demo and tests --- Demo/Podfile.lock | 14 +++++++------- Demo/Shared/Configuration.swift | 2 +- TunnelKitTests/OpenVPN/AppExtensionTests.swift | 3 ++- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/Demo/Podfile.lock b/Demo/Podfile.lock index add11b9..83316e9 100644 --- a/Demo/Podfile.lock +++ b/Demo/Podfile.lock @@ -1,16 +1,16 @@ PODS: - OpenSSL-Apple (1.1.1h.8) - SwiftyBeaver (1.9.3) - - TunnelKit (3.0.0): - - TunnelKit/Protocols/OpenVPN (= 3.0.0) - - TunnelKit/AppExtension (3.0.0): + - TunnelKit (3.1.0): + - TunnelKit/Protocols/OpenVPN (= 3.1.0) + - TunnelKit/AppExtension (3.1.0): - SwiftyBeaver - TunnelKit/Core - - TunnelKit/Core (3.0.0): + - TunnelKit/Core (3.1.0): - SwiftyBeaver - - TunnelKit/Manager (3.0.0): + - TunnelKit/Manager (3.1.0): - SwiftyBeaver - - TunnelKit/Protocols/OpenVPN (3.0.0): + - TunnelKit/Protocols/OpenVPN (3.1.0): - OpenSSL-Apple (~> 1.1.1h.8) - TunnelKit/AppExtension - TunnelKit/Core @@ -32,7 +32,7 @@ EXTERNAL SOURCES: SPEC CHECKSUMS: OpenSSL-Apple: 70990157548ecf94885310231aff52db698e1077 SwiftyBeaver: 2e8acd6fc90c6d0a27055867a290794926d57c02 - TunnelKit: 231da80bc3ccbcad7cad1e661f8e08cd26703fc0 + TunnelKit: 4db9180956f8aaf4ab152fd0d38c6c9c63a46cf8 PODFILE CHECKSUM: 518aaea9a529c96ba3024918bc0850dd6e92ac61 diff --git a/Demo/Shared/Configuration.swift b/Demo/Shared/Configuration.swift index 97230ec..0bdc26d 100644 --- a/Demo/Shared/Configuration.swift +++ b/Demo/Shared/Configuration.swift @@ -179,8 +179,8 @@ M69t86apMrAxkUxVJAWLRBd9fbYyzJgTW61tFqXWTZpiz6bhuWApSEzaHcL3/f5l sessionBuilder.endpointProtocols = [EndpointProtocol(socketType, port)] sessionBuilder.clientCertificate = clientCertificate sessionBuilder.clientKey = clientKey + sessionBuilder.mtu = 1350 var builder = OpenVPNTunnelProvider.ConfigurationBuilder(sessionConfiguration: sessionBuilder.build()) - builder.mtu = 1350 builder.shouldDebug = true builder.masksPrivateData = false return builder.build() diff --git a/TunnelKitTests/OpenVPN/AppExtensionTests.swift b/TunnelKitTests/OpenVPN/AppExtensionTests.swift index c9484f1..861c6e9 100644 --- a/TunnelKitTests/OpenVPN/AppExtensionTests.swift +++ b/TunnelKitTests/OpenVPN/AppExtensionTests.swift @@ -65,6 +65,7 @@ class AppExtensionTests: XCTestCase { sessionBuilder.digest = .sha256 sessionBuilder.hostname = hostname sessionBuilder.endpointProtocols = [] + sessionBuilder.mtu = 1230 builder = OpenVPNTunnelProvider.ConfigurationBuilder(sessionConfiguration: sessionBuilder.build()) XCTAssertNotNil(builder) @@ -87,7 +88,7 @@ class AppExtensionTests: XCTestCase { XCTAssertEqual(proto?.providerConfiguration?[K.cipherAlgorithm] as? String, cfg.sessionConfiguration.cipher?.rawValue) XCTAssertEqual(proto?.providerConfiguration?[K.digestAlgorithm] as? String, cfg.sessionConfiguration.digest?.rawValue) XCTAssertEqual(proto?.providerConfiguration?[K.ca] as? String, cfg.sessionConfiguration.ca?.pem) - XCTAssertEqual(proto?.providerConfiguration?[K.mtu] as? Int, cfg.mtu) + XCTAssertEqual(proto?.providerConfiguration?[K.mtu] as? Int, cfg.sessionConfiguration.mtu) XCTAssertEqual(proto?.providerConfiguration?[K.renegotiatesAfter] as? TimeInterval, cfg.sessionConfiguration.renegotiatesAfter) XCTAssertEqual(proto?.providerConfiguration?[K.debug] as? Bool, cfg.shouldDebug) }