Commit Graph

60 Commits

Author SHA1 Message Date
Jonathan Downing
f5c85fcb12 Add OpenVPNNetworkSettingsBuilder
Add OpenVPNPacketFlowAdapter
2017-10-12 13:50:30 +01:00
Jonathan Downing
3bb4ff773a Add Spacing to Interface Declarations 2017-10-11 19:27:42 +01:00
Jonathan Downing
1e48a38de0 Use NEProxySettings 2017-10-11 19:25:01 +01:00
Jonathan Downing
d1456adf85 Refactor OpenVPNAdapter, update tests 2017-10-11 13:39:41 +01:00
Sergey Abramchuk
ae3e8ee0c3 Fix typo 2017-10-05 13:19:36 +03:00
Jonathan Downing
aecdeaf0f1 Change -establishTunnel return type (#25) 2017-09-23 12:36:07 +03:00
Sergey Abramchuk
9932456cda Fix variable names corrupted during incomplete conflict resolving 2017-09-23 12:28:54 +03:00
Jonathan Downing
435663953e FIx spurious static analysis warnings relating to CFSocketRef (#24) 2017-09-23 12:25:35 +03:00
Jonathan Downing
73d593fe4c Reconnection Bugfix Proposal (#20)
* Add proposed fix to reconnection bug

* Utilise tun_builder_teardown method to initiate settings reset

* Move socket teardown code to -teardownTunnel:
2017-09-23 11:46:51 +03:00
Sergey Abramchuk
1d10acb6cf Remove unnecessary nullable keywords from method definitions 2017-09-06 22:35:58 +03:00
Sergey Abramchuk
f966977a95 Rename OpenVPNEvent to OpenVPNAdapterEvent 2017-09-06 22:31:20 +03:00
Sergey Abramchuk
ef90868ac6 Rename connection queue 2017-09-06 22:23:41 +03:00
Sergey Abramchuk
85d1276520 Rename OpenVPNError enum to OpenVPNAdapterError 2017-09-06 22:02:34 +03:00
Sergey Abramchuk
cf678a5f24 Remove contain error reason key and return reasons for all available errors 2017-07-21 14:54:29 +03:00
Sergey Abramchuk
385119f073 Provide even empty error message 2017-07-21 14:31:47 +03:00
Sergey Abramchuk
eaee122fac Distinguish events and errors, and add additional info to the error dictionary 2017-07-21 14:27:29 +03:00
Sergey Abramchuk
95d2ec6d17 Add explicit modifiers to the vpnClient property 2017-07-18 17:27:16 +03:00
Sergey Abramchuk
e745b43d52 Refactor TUN packets reading 2017-07-06 16:16:19 +03:00
Sergey Abramchuk
248585943e Fix broken reader of VPN traffic on iOS 2017-06-23 17:44:59 +03:00
Sergey Abramchuk
700c3aad70 Fix incorrect protocol versions for outgoing packets 2017-06-23 17:14:07 +03:00
Sergey Abramchuk
0714a6d0f6 Return protocol family depending on version 2017-06-22 21:19:19 +03:00
Sergey Abramchuk
6d2de5cb4e Fix incorrect macro 2017-06-22 20:55:34 +03:00
Sergey Abramchuk
76413feea7 Get protocol version from header if a target is macOS 2017-06-22 20:50:23 +03:00
Sergey Abramchuk
b0756eae4c Don't add protocol prefix if a target other than iPhone 2017-06-22 20:02:52 +03:00
Sergey Abramchuk
545098ea0e Use openvpn helper to convert prefix length to subnet and call adapter delegate methods within main queue 2017-06-18 14:21:11 +03:00
Sergey Abramchuk
d2ddcbbd5b Add dots to the event description 2017-06-02 14:50:24 +03:00
Sergey Abramchuk
db8424c620 Provide error reason 2017-06-02 14:26:19 +03:00
Sergey Abramchuk
7e0bf6a2ab Fix missing semicolon 2017-05-20 12:28:55 +03:00
Sergey Abramchuk
37cfcbd0b2 Check for UNSPEC gateway within adapter 2017-05-20 11:21:38 +03:00
Sergey Abramchuk
a753067e64 Increase input and output buffers of connected sockets 2017-05-10 11:36:10 +03:00
Sergey Abramchuk
adb995579e Rename tunnel settings class 2017-05-05 19:02:51 +03:00
Sergey Abramchuk
f7b168e114 Return the methods and configurations related to the tun builder which were removed after merging 2017-05-05 17:50:53 +03:00
Sergey Abramchuk
036e9f9ab4 Call clock_tick method 2017-05-01 13:07:07 +03:00
Sergey Abramchuk
1464cd1ce9 Reconnect vpn client 2017-05-01 12:48:24 +03:00
Sergey Abramchuk
a66c3eed27 Resume vpn client 2017-05-01 12:29:28 +03:00
Sergey Abramchuk
099309c498 Pause vpn client 2017-05-01 12:26:09 +03:00
Sergey Abramchuk
105810082f Call handleLog only if delegate responds to selector 2017-05-01 00:24:27 +03:00
Sergey Abramchuk
1cf30b1175 Return core copyright 2017-04-30 23:56:03 +03:00
Sergey Abramchuk
c05b7215eb Remove expiration class method and convert platform to class property 2017-04-30 23:51:24 +03:00
Sergey Abramchuk
7d9f0abe76 Return expiration and platform 2017-04-30 19:15:41 +03:00
Sergey Abramchuk
a195d65e96 Return session token 2017-04-30 18:25:48 +03:00
Sergey Abramchuk
b32f7e2496 Return transport stats and interface stats 2017-04-30 18:00:58 +03:00
Sergey Abramchuk
c3be418936 Return connection info 2017-04-30 17:28:01 +03:00
Sergey Abramchuk
0c1ce5037f Change queue name 2017-04-28 22:33:53 +03:00
Sergey Abramchuk
0b1e8117f0 Rename category from Client to Internal. Set tick and handleLog methods of adapter delegate as optional.
Delete unnecessary properties ad methods. Implement applying configuration and providing credentials.
2017-04-27 23:43:10 +03:00
Sergey Abramchuk
8cba80999b Clean up unnecessary methods and classes 2017-04-21 18:04:45 +03:00
Sergey Abramchuk
a51bedaef5 Delete extra lines and spaces 2017-04-15 14:17:50 +03:00
Sergey Abramchuk
be46d31c7e Add comment about waiting time 2017-04-15 10:39:54 +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