Commit Graph

242 Commits

Author SHA1 Message Date
Sergey Abramchuk
146ea30114 OpenVPN Adapter now can be compiled for both macOS and iOS 2017-03-11 13:48:47 +03:00
Sergey Abramchuk
fd528d6274 Add Then implementation to the provider 2017-03-09 20:14:24 +03:00
Sergey Abramchuk
efdc474411 Fix possible memory leaks and decrease timeout for establishing tunnel 2017-03-09 19:58:55 +03:00
Sergey Abramchuk
1e886eaca7 Define OpenVPNAdapterPacketFlow and use it instead of NEPacketTunnelFlow object to simplify testing 2017-03-09 19:16:08 +03:00
Sergey Abramchuk
3c840cd0f8 Declare variables for username, password and delegate.
Implement getters and setters for declared variables.
Fix deallocation issue when sockets are not configured.
Fix issue with username and password when they are nil.
2017-03-09 16:05:41 +03:00
Sergey Abramchuk
8903bb6fc6 Put OpenVPN adapter into separate framework and add libraries compiled for simulator 2017-03-09 15:06:12 +03:00
Sergey Abramchuk
cf50678dfc Initialize OpenVPN adapter and establish connection 2017-03-07 22:22:22 +03:00
Sergey Abramchuk
ab57a64a4a Get password from keychain using persistent reference 2017-03-07 22:20:50 +03:00
Sergey Abramchuk
be7bb371e3 Configure keychain access group 2017-03-06 21:25:07 +03:00
Sergey Abramchuk
8f8f7d22d8 Update keychain dependency 2017-03-06 21:24:37 +03:00
Sergey Abramchuk
57577377e1 Set username and password via properties instead of adapter method 2017-03-06 21:24:02 +03:00
Sergey Abramchuk
5ef43a447c Use explicit variables for DNS and domains 2017-03-06 20:13:39 +03:00
Sergey Abramchuk
7b5f0cd714 Read data from OpenVPN and pass it to the TUN interface 2017-03-06 20:12:51 +03:00
Sergey Abramchuk
db6ba2ea8f Read data from TUN interface and pass it to the VPN; Rename sockets. 2017-02-26 16:19:51 +03:00
Sergey Abramchuk
0e90827f3e Don’t wait forever for tunnel configuration 2017-02-26 16:06:56 +03:00
Sergey Abramchuk
4daa634f6c Establish TUN interface 2017-02-26 15:59:30 +03:00
Sergey Abramchuk
6130e19c62 Store and reset TUN configuration 2017-02-26 15:36:03 +03:00
Sergey Abramchuk
16fc55f655 Defined an object containing TUN configuration 2017-02-26 15:09:08 +03:00
Sergey Abramchuk
0b42b1d8ac Disable implicit conversion and documentation warnings 2017-02-26 14:32:20 +03:00
Sergey Abramchuk
acd3093bc9 Added necessary entitlements to the project and changed bundle IDs 2017-02-26 14:27:24 +03:00
Sergey Abramchuk
c8b9da6fd0 Add extra spaces 2017-02-12 16:22:41 +03:00
Sergey Abramchuk
169ae80bd5 Initialize and stop connection to the vpn server 2017-02-12 16:15:13 +03:00
Sergey Abramchuk
2b91cf1c29 Configure openvpn client and generate errors if configuration fails 2017-02-12 16:04:49 +03:00
Sergey Abramchuk
d8bf4648fd Add configuration argument to the configuration method 2017-02-12 16:03:39 +03:00
Sergey Abramchuk
357913a543 Define a key representing client error and define codes for errors 2017-02-12 16:03:03 +03:00
Sergey Abramchuk
4b81e400fc Get error and send it to the delegate 2017-02-11 21:07:11 +03:00
Sergey Abramchuk
5867367320 Add event and error headers to bridge header 2017-02-11 21:06:06 +03:00
Sergey Abramchuk
1ba043888c Update project configuration 2017-02-11 21:05:39 +03:00
Sergey Abramchuk
5d24f03ad8 Define error domain and key for fatal error 2017-02-11 21:04:56 +03:00
Sergey Abramchuk
22a6586b5d Get event and send it to the delegate 2017-02-11 17:26:57 +03:00
Sergey Abramchuk
83a2090085 Configure a pair of connected sockets 2017-02-11 17:03:19 +03:00
Sergey Abramchuk
fb40b4575c Update project configuration 2017-02-11 16:46:19 +03:00
Sergey Abramchuk
a63f7a0117 Declare public methods of adapter and add adapter header to the bridge header 2017-02-11 16:45:02 +03:00
Sergey Abramchuk
9cc997b206 Rename setup method to avoid ambiguity 2017-02-11 16:41:09 +03:00
Sergey Abramchuk
9e3a72e02a Declare adapter delegate 2017-02-11 16:26:58 +03:00
Sergey Abramchuk
1130f46f00 Update project configuration 2017-02-11 15:27:03 +03:00
Sergey Abramchuk
b6341f3ce9 Declare category for open vpn adapter so it will available for tunnel provider 2017-02-11 15:26:50 +03:00
Sergey Abramchuk
a957e0488e Pass basic configuration vpn to the adapter 2017-02-11 15:25:28 +03:00
Sergey Abramchuk
471f365b45 Change return type of configuration methods 2017-02-11 15:18:56 +03:00
Sergey Abramchuk
bc37cef1a4 Declare open vpn adapter class and methods for client configuration 2017-02-11 15:16:25 +03:00
Sergey Abramchuk
bc67a391b0 Define OpenVPN events 2017-02-11 14:38:03 +03:00
Sergey Abramchuk
d316cd7ebd Initial commit 2017-02-05 13:38:35 +03:00