Commit Graph

199 Commits

Author SHA1 Message Date
Sergey Abramchuk
c956d61597 Add extra spaces and empty lines 2018-01-17 11:33:05 +03:00
Sergey Abramchuk
d3a2d6ec0c Add pragma marks 2018-01-16 17:08:00 +03:00
Sergey Abramchuk
3eba7cc615 Refactor implementation of OpenVPNPacketFlowBridge class 2018-01-16 17:00:41 +03:00
Sergey Abramchuk
f840b4a046 Move data preparation to the implementation of OpenVPNPacket 2018-01-15 17:13:04 +03:00
Sergey Abramchuk
c19bd1df76 Define OpenVPNPacket class 2018-01-15 16:33:02 +03:00
Sergey Abramchuk
1ca2f3a54f Move definition of OpenVPNAdapterPacketFlow protocol to its own header file 2018-01-15 13:08:54 +03:00
Sergey Abramchuk
2dd1e98e18 Break long comment lines 2018-01-15 12:50:25 +03:00
Sergey Abramchuk
aa6a4bf66b Use forward declaration of events instead of direct import 2018-01-15 12:48:03 +03:00
Sergey Abramchuk
338e5b853d Return definition of OpenVPNAdapterPacketFlow protocol 2018-01-15 12:45:20 +03:00
Sergey Abramchuk
ee5d190087 Fix position of asterix in const definitions and remove nullability specifiers 2018-01-12 14:04:27 +03:00
Sergey Abramchuk
5fd8a82934 Move definition and implementation of OpenVPNClient into separate files 2018-01-12 13:50:44 +03:00
Sergey Abramchuk
fd5811541f Merge branch 'feature/update-dependenies' into feature/cleanup
* feature/update-dependenies:
  Squashed 'OpenVPN Adapter/Vendors/openvpn/' changes from 4095565..3e002c8
2018-01-08 12:02:18 +03:00
Sergey Abramchuk
31ceba3bd6 Merge commit '82fea30fcce1d169de7ec42be84d079e0899519c' into feature/update-dependenies 2018-01-08 11:44:56 +03:00
Sergey Abramchuk
f7678976c5 Rename OpenVPNPacketFlow to OpenVPNPacketFlowBridge 2017-10-28 13:12:25 +03:00
Sergey Abramchuk
542d449f91 Light refactoring: line breaking and classes/vars renaming 2017-10-28 12:56:23 +03:00
Sergey Abramchuk
8a0c88cd8d Initialize packet flow adapter inside completion handler 2017-10-28 12:34:22 +03:00
Sergey Abramchuk
21e5b5be4d Fix order of import statements 2017-10-28 10:55:37 +03:00
Jonathan Downing
f5dfdda31c Fix Reconnect Problem 2017-10-12 17:18:50 +01:00
Jonathan Downing
db1fa1cffc Refactor OpenVPNPacketFlowAdapter 2017-10-12 15:30:31 +01:00
Jonathan Downing
a87927dde3 Fix Circular Reference 2017-10-12 14:47:20 +01:00
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
b87feba195 Update Spacing 2017-10-11 13:44:38 +01:00
Jonathan Downing
d1456adf85 Refactor OpenVPNAdapter, update tests 2017-10-11 13:39:41 +01:00
Sergey Abramchuk
cb4490ad0d Return current reachability status using openvpn::Reachability class 2017-10-05 15:45:13 +03: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
Jonathan Downing
7230e1f83d Convert OpenVPNAdapterError to NS_ERROR_ENUM (#22) 2017-09-18 11:43:51 +03:00
Sergey Abramchuk
cf5b705bef Merge pull request #19 from JonathanDowning/static-analysis-error-pointer-fix
Fix a possible null pointer dereference error
2017-09-16 20:10:09 +03:00
Jonathan Downing
bfa8ab801a OpeVPNTransportStats lastPacketReceived NSInteger -> NSDate (#21)
* Add NSCopying, NSSecureCoding Support to Informational Classes

* Remove Redundant Copies

* Revert out-of-context typo corrections

* Revert out-of-context changes

* Convert lastPacketReceived to NSDate

* Add NSCopying, NSSecureCoding Support to Informational Classes

* Revert out-of-context changes

* Convert lastPacketReceived to NSDate
2017-09-16 19:59:57 +03:00
Jonathan Downing
270d5b8cac Add NSCopying, NSSecureCoding Support to Informational Classes (#17)
* Add NSCopying, NSSecureCoding Support to Informational Classes

* Remove Redundant Copies

* Revert out-of-context typo corrections

* Revert out-of-context changes
2017-09-16 17:42:57 +03:00
Jonathan Downing
fc4b257ffd Fix a possible null pointer dereference error 2017-09-16 14:45:38 +03:00
Sergey Abramchuk
cd1390fb46 Use malloc instead of calloc 2017-09-07 20:09:14 +03:00
Sergey Abramchuk
edea44cd0a Increase buffer length 2017-09-07 20:08:54 +03:00
Sergey Abramchuk
5746b24e5f Fix incorrect password length and increase size of the buffers 2017-09-07 20:04:32 +03:00
Sergey Abramchuk
ebb2157390 Implement writing private key DER and PEM data 2017-09-07 14:50:08 +03:00
Sergey Abramchuk
6b1b0c95eb Add missing semicolon 2017-09-07 14:36:12 +03:00
Sergey Abramchuk
8b390e969f Return type of the key 2017-09-07 14:35:33 +03:00
Sergey Abramchuk
69718e1e74 Add OpenVPNKeyType.h to the umbrella header 2017-09-07 14:31:48 +03:00
Sergey Abramchuk
1ddcad1487 Define available key types 2017-09-07 14:30:59 +03:00
Sergey Abramchuk
8ead0babeb Return size of the key in bits 2017-09-07 14:26:05 +03:00
Sergey Abramchuk
a346e0c51a Free allocated PEM buffer 2017-09-07 14:11:57 +03:00
Sergey Abramchuk
6d0b1d28b0 Implement parsing private key DER and PEM data 2017-09-07 14:07:42 +03:00
Sergey Abramchuk
9df7dee2df Add OpenVPNPrivateKey.h to the umbrella header 2017-09-07 13:56:46 +03:00
Sergey Abramchuk
b3ecfa1680 Add boilerplate for OpenVPNPrivateKey implementation 2017-09-07 10:51:57 +03:00
Sergey Abramchuk
e4d57245ad Remove null character 2017-09-07 10:35:57 +03:00