From 779353fc97b34da6aa48fd02bfa4ecd391f32be2 Mon Sep 17 00:00:00 2001 From: Sergey Abramchuk Date: Tue, 18 Aug 2020 14:21:07 +0300 Subject: [PATCH 1/6] Bump mbedTLS version --- OpenVPNAdapter.xcodeproj/project.pbxproj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenVPNAdapter.xcodeproj/project.pbxproj b/OpenVPNAdapter.xcodeproj/project.pbxproj index 2a879ea..00fc1b5 100644 --- a/OpenVPNAdapter.xcodeproj/project.pbxproj +++ b/OpenVPNAdapter.xcodeproj/project.pbxproj @@ -1692,7 +1692,7 @@ "$(TOOLCHAIN_DIR)/usr/lib/swift/macosx", ); MACH_O_TYPE = staticlib; - MARKETING_VERSION = 2.7.12; + MARKETING_VERSION = 2.7.13; OTHER_SWIFT_FLAGS = "$(inherited)"; PRODUCT_BUNDLE_IDENTIFIER = mbedTLS; PRODUCT_MODULE_NAME = "$(TARGET_NAME:c99extidentifier)"; @@ -1721,7 +1721,7 @@ "$(TOOLCHAIN_DIR)/usr/lib/swift/macosx", ); MACH_O_TYPE = staticlib; - MARKETING_VERSION = 2.7.12; + MARKETING_VERSION = 2.7.13; OTHER_SWIFT_FLAGS = "$(inherited)"; PRODUCT_BUNDLE_IDENTIFIER = mbedTLS; PRODUCT_MODULE_NAME = "$(TARGET_NAME:c99extidentifier)"; From 37296b6b987011b16ca5501923410180527818e6 Mon Sep 17 00:00:00 2001 From: Sergey Abramchuk Date: Tue, 18 Aug 2020 14:21:37 +0300 Subject: [PATCH 2/6] Bump OpenVPNClient version --- OpenVPNAdapter.xcodeproj/project.pbxproj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenVPNAdapter.xcodeproj/project.pbxproj b/OpenVPNAdapter.xcodeproj/project.pbxproj index 00fc1b5..6a63201 100644 --- a/OpenVPNAdapter.xcodeproj/project.pbxproj +++ b/OpenVPNAdapter.xcodeproj/project.pbxproj @@ -1630,7 +1630,7 @@ "$(TOOLCHAIN_DIR)/usr/lib/swift/macosx", ); MACH_O_TYPE = staticlib; - MARKETING_VERSION = 3.5.4; + MARKETING_VERSION = 3.5.6; OTHER_CFLAGS = "$(inherited)"; OTHER_LDFLAGS = "$(inherited)"; OTHER_SWIFT_FLAGS = "$(inherited)"; @@ -1661,7 +1661,7 @@ "$(TOOLCHAIN_DIR)/usr/lib/swift/macosx", ); MACH_O_TYPE = staticlib; - MARKETING_VERSION = 3.5.4; + MARKETING_VERSION = 3.5.6; OTHER_CFLAGS = "$(inherited)"; OTHER_LDFLAGS = "$(inherited)"; OTHER_SWIFT_FLAGS = "$(inherited)"; From de616fc4061d5c7d5981d3531a2b0d471c8d2033 Mon Sep 17 00:00:00 2001 From: Sergey Abramchuk Date: Tue, 18 Aug 2020 14:22:11 +0300 Subject: [PATCH 3/6] Bump OpenVPNAdapter version --- OpenVPNAdapter.xcodeproj/project.pbxproj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenVPNAdapter.xcodeproj/project.pbxproj b/OpenVPNAdapter.xcodeproj/project.pbxproj index 6a63201..eb6d24d 100644 --- a/OpenVPNAdapter.xcodeproj/project.pbxproj +++ b/OpenVPNAdapter.xcodeproj/project.pbxproj @@ -1547,7 +1547,7 @@ "$(inherited)", "$(TOOLCHAIN_DIR)/usr/lib/swift/macosx", ); - MARKETING_VERSION = 0.6.0; + MARKETING_VERSION = 0.7.0; OTHER_SWIFT_FLAGS = "$(inherited)"; PRODUCT_BUNDLE_IDENTIFIER = OpenVPNAdapter; PRODUCT_MODULE_NAME = "$(TARGET_NAME:c99extidentifier)"; @@ -1576,7 +1576,7 @@ "$(inherited)", "$(TOOLCHAIN_DIR)/usr/lib/swift/macosx", ); - MARKETING_VERSION = 0.6.0; + MARKETING_VERSION = 0.7.0; OTHER_SWIFT_FLAGS = "$(inherited)"; PRODUCT_BUNDLE_IDENTIFIER = OpenVPNAdapter; PRODUCT_MODULE_NAME = "$(TARGET_NAME:c99extidentifier)"; From 1843ebfb1d7afd3923ff22754f75d6fd42ebcb79 Mon Sep 17 00:00:00 2001 From: Sergey Abramchuk Date: Tue, 18 Aug 2020 14:31:03 +0300 Subject: [PATCH 4/6] Update podspec file --- OpenVPNAdapter.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenVPNAdapter.podspec b/OpenVPNAdapter.podspec index 3cc20df..faf1437 100644 --- a/OpenVPNAdapter.podspec +++ b/OpenVPNAdapter.podspec @@ -3,7 +3,7 @@ Pod::Spec.new do |s| # ――― Spec Metadata ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # s.name = "OpenVPNAdapter" - s.version = "0.6.0" + s.version = "0.7.0" s.summary = "Objective-C wrapper for OpenVPN library. Compatible with iOS and macOS." s.description = <<-DESC OpenVPNAdapter is an Objective-C framework that allows to easily configure and establish VPN connection using OpenVPN protocol. From d9346d7622d675c8ee0d25f35575d00cf2bb5fca Mon Sep 17 00:00:00 2001 From: Sergey Abramchuk Date: Tue, 18 Aug 2020 14:31:30 +0300 Subject: [PATCH 5/6] Update readme file --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 98ed0a0..fc49965 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ To install OpenVPNAdapter with Cocoapods, add the following lines to your `Podfi ```ruby target 'Your Target Name' do use_frameworks! - pod 'OpenVPNAdapter', :git => 'https://github.com/ss-abramchuk/OpenVPNAdapter.git', :tag => '0.6.0' + pod 'OpenVPNAdapter', :git => 'https://github.com/ss-abramchuk/OpenVPNAdapter.git', :tag => '0.7.0' end ``` @@ -191,16 +191,16 @@ class PacketTunnelProvider: NEPacketTunnelProvider { // configuration.tunPersist = true // Apply OpenVPN configuration - let properties: OpenVPNProperties + let evaluation: OpenVPNConfigurationEvaluation do { - properties = try vpnAdapter.apply(configuration: configuration) + evaluation = try vpnAdapter.apply(configuration: configuration) } catch { completionHandler(error) return } // Provide credentials if needed - if !properties.autologin { + if !evaluation.autologin { // If your VPN configuration requires user credentials you can provide them by // `protocolConfiguration.username` and `protocolConfiguration.passwordReference` // properties. It is recommended to use persistent keychain reference to a keychain From 9dd3ca3bf5f75088449d5911ba5ae4a19a4b1b4f Mon Sep 17 00:00:00 2001 From: Sergey Abramchuk Date: Tue, 18 Aug 2020 14:31:44 +0300 Subject: [PATCH 6/6] Update changelog --- CHANGELOG.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index adac210..182ce6b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,10 +1,15 @@ # Changelog +## 0.7.0 +- **Added**: An option to evaluate configuration without creating an instance of `OpenVPNAdapter`. +- **Updated**: Class `OpenVPNProperties` renamed to `OpenVPNConfigurationEvaluation`. +- **Updated**: openvpn3 library to 3.5.6 version, mbedTLS library to 2.7.13 version; + ## 0.6.0 - **Updated**: Slightly changed API of the framework. - **Fixed**: Reading packets issue affecting on connection when network interface is changed. ## 0.5.0 - **Added**: Swift Package Manager support; -- **Updated**: openvpn3 library – 3.5.4 version; +- **Updated**: openvpn3 library to 3.5.4 version; - **Fixed**: Network issue when adapter used in macOS projects.