Commit Graph

62 Commits

Author SHA1 Message Date
Sergey Abramchuk
47959a77e8 Merge commit 'f65d76170b26155358c2fc27686f87e0475f6a94' as 'OpenVPN Adapter/Vendors/openvpn' 2017-04-09 14:13:07 +03:00
Sergey Abramchuk
f65d76170b Squashed 'OpenVPN Adapter/Vendors/openvpn/' content from commit da99df6
git-subtree-dir: OpenVPN Adapter/Vendors/openvpn
git-subtree-split: da99df69492256d7a18bbea303ae98457782a4bf
2017-04-09 14:13:07 +03:00
Sergey Abramchuk
b662539303 Delete asio sources 2017-04-09 13:28:44 +03:00
Sergey Abramchuk
2de8ab8859 Delete old openvpn sources 2017-04-09 12:56:18 +03:00
Sergey Abramchuk
e423ade642 Update name of configuration method and add templates for documentation 2017-03-22 19:22:47 +03:00
Sergey Abramchuk
a953a8ab24 Don’t clear username and password after disconnection 2017-03-22 19:15:05 +03:00
Sergey Abramchuk
6fa887de8d Fix format of returned subnet mask 2017-03-20 21:56:47 +03:00
Sergey Abramchuk
a5531f61fb Fix forgotten initialization of configuration 2017-03-20 21:31:21 +03:00
Sergey Abramchuk
40eeafc99d Add support of IPv6 addresses 2017-03-20 21:23:00 +03:00
Sergey Abramchuk
6dc4f7c0b7 Test connections without credentials 2017-03-17 20:12:25 +03:00
Sergey Abramchuk
42c692b225 Add method for handling OpenVPN log to the adapter delegate 2017-03-17 20:12:07 +03:00
Sergey Abramchuk
ac4ec556c9 Use target name instead of directory name for tag script 2017-03-17 19:10:28 +03:00
Sergey Abramchuk
669eb029f1 Move iOS client and tunnel provider to another repo 2017-03-17 18:19:01 +03:00
Sergey Abramchuk
60690fd8fb Get rid of forgotten fatal error and just exit 2017-03-16 21:33:09 +03:00
Sergey Abramchuk
82d9b4115f Handle events and errors by tunnel provider 2017-03-16 20:09:30 +03:00
Sergey Abramchuk
c83816ce06 Discard username and password after disconnection 2017-03-16 20:09:08 +03:00
Sergey Abramchuk
6860411e53 Add TODOs 2017-03-16 20:00:07 +03:00
Sergey Abramchuk
d33692bf1d Add socket source to run loop with default mode 2017-03-16 19:59:53 +03:00
Sergey Abramchuk
8fc4ef3c7c Fix issue with iOS testing 2017-03-11 14:55:55 +03:00
Sergey Abramchuk
42e85175fa Fix typo 2017-03-11 14:01:21 +03:00
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