Distinguish events and errors, and add additional info to the error dictionary

This commit is contained in:
Sergey Abramchuk
2017-07-21 14:27:29 +03:00
parent cfb220b118
commit eaee122fac
4 changed files with 255 additions and 112 deletions
+2 -22
View File
@@ -9,9 +9,9 @@
#import <Foundation/Foundation.h>
/**
<#Description#>
OpenVPN event codes
*/
typedef NS_ENUM(NSUInteger, OpenVPNEvent) {
typedef NS_ENUM(NSInteger, OpenVPNEvent) {
OpenVPNEventDisconnected,
OpenVPNEventConnected,
OpenVPNEventReconnecting,
@@ -27,25 +27,5 @@ typedef NS_ENUM(NSUInteger, OpenVPNEvent) {
OpenVPNEventPause,
OpenVPNEventResume,
OpenVPNEventRelay,
OpenVPNEventTransportError,
OpenVPNEventTunError,
OpenVPNEventClientRestart,
OpenVPNEventAuthFailed,
OpenVPNEventCertVerifyFail,
OpenVPNEventTLSVersionMin,
OpenVPNEventClientHalt,
OpenVPNEventConnectionTimeout,
OpenVPNEventInactiveTimeout,
OpenVPNEventDynamicChallenge,
OpenVPNEventProxyNeedCreds,
OpenVPNEventProxyError,
OpenVPNEventTunSetupFailed,
OpenVPNEventTunIfaceCreate,
OpenVPNEventTunIfaceDisabled,
OpenVPNEventEPKIError,
OpenVPNEventEPKIInvalidAlias,
OpenVPNEventRelayError,
OpenVPNEventInitializationFailed,
OpenVPNEventConnectionFailed,
OpenVPNEventUnknown
};