Commit Graph

167 Commits

Author SHA1 Message Date
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
Sergey Abramchuk
066d6704f2 Use predefined result value for error reason 2017-09-07 10:35:02 +03:00
Sergey Abramchuk
b714cf11a1 Implement writing certificate DER data 2017-09-07 10:21:10 +03:00
Sergey Abramchuk
d5a96bf764 Modify localized descriptions 2017-09-06 23:31:25 +03:00
Sergey Abramchuk
7cbb69fed5 Implement writing certificate PEM data 2017-09-06 23:29:06 +03:00
Sergey Abramchuk
18a41d88d1 Remove a condition from the deallocation 2017-09-06 23:05:15 +03:00
Sergey Abramchuk
f22702d2f6 Remove unnecessary nullable keywords from method definitions 2017-09-06 23:02:22 +03:00
Sergey Abramchuk
da4abe9ba1 Return error object if parsing finished with failure 2017-09-06 22:58:41 +03:00
Sergey Abramchuk
aa6eb81f97 Convert integer result to error reason 2017-09-06 22:57:35 +03:00
Sergey Abramchuk
1d10acb6cf Remove unnecessary nullable keywords from method definitions 2017-09-06 22:35:58 +03:00
Sergey Abramchuk
7cb7602feb Merge branch 'develop' into feature/convert-certificates
* develop:
  Change project name and header names
  Rename OpenVPNEvent to OpenVPNAdapterEvent
2017-09-06 22:34:49 +03:00
Sergey Abramchuk
9c5831fd9d Change project name and header names 2017-09-06 22:34:32 +03:00
Sergey Abramchuk
f966977a95 Rename OpenVPNEvent to OpenVPNAdapterEvent 2017-09-06 22:31:20 +03:00
Sergey Abramchuk
7b4a4c0d8d Merge branch 'develop' into feature/convert-certificates
* develop:
  Rename connection queue
2017-09-06 22:23:52 +03:00
Sergey Abramchuk
ef90868ac6 Rename connection queue 2017-09-06 22:23:41 +03:00
Sergey Abramchuk
3c2040aacd Add error domain for identities 2017-09-06 22:09:57 +03:00
Sergey Abramchuk
637a6729e9 Merge branch 'develop' into feature/convert-certificates
* develop:
  Rename OpenVPNError enum to OpenVPNAdapterError
2017-09-06 22:04:59 +03:00
Sergey Abramchuk
85d1276520 Rename OpenVPNError enum to OpenVPNAdapterError 2017-09-06 22:02:34 +03:00
Sergey Abramchuk
760a5c7b74 Add assign modifier to the crt property 2017-09-06 19:04:03 +03:00
Sergey Abramchuk
5f1343f7f2 Implement parsing certificate DER data 2017-09-06 18:18:36 +03:00
Sergey Abramchuk
062b07a957 Implement parsing certificate PEM data 2017-09-06 18:10:26 +03:00
Sergey Abramchuk
55524d4722 Add OpenVPNCertificate to the public headers 2017-09-06 18:09:44 +03:00
Sergey Abramchuk
23beb936cf Declare OpenVPNCertificate class and its methods for parsing PEM and DER format 2017-09-06 18:07:16 +03:00
Sergey Abramchuk
eea832c876 Add callback argument to start tracking method and hide reachability status changed block 2017-08-22 09:52:43 +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
e2283bf295 Start/stop tracking asynchronously 2017-07-18 21:19:07 +03:00
Sergey Abramchuk
cfa7ec3666 Add isTracking property 2017-07-18 18:09:58 +03:00
Sergey Abramchuk
bcfd4ef1d9 Perform start/stop tracking in the main queue 2017-07-18 18:06:27 +03:00
Sergey Abramchuk
95d2ec6d17 Add explicit modifiers to the vpnClient property 2017-07-18 17:27:16 +03:00
Sergey Abramchuk
c02376339a Implement internet reachability monitor 2017-07-18 17:26:39 +03:00
Sergey Abramchuk
6edc5e3fe2 Add missing public modifier 2017-07-18 17:25:45 +03:00