mirror of
https://github.com/deneraraujo/OpenVPNAdapter.git
synced 2026-05-13 00:04:14 +08:00
Distinguish events and errors, and add additional info to the error dictionary
This commit is contained in:
@@ -11,12 +11,77 @@
|
||||
FOUNDATION_EXPORT NSString * __nonnull const OpenVPNAdapterErrorDomain;
|
||||
|
||||
FOUNDATION_EXPORT NSString * __nonnull const OpenVPNAdapterErrorFatalKey;
|
||||
FOUNDATION_EXPORT NSString * __nonnull const OpenVPNAdapterErrorEventIdentifierKey;
|
||||
FOUNDATION_EXPORT NSString * __nonnull const OpenVPNAdapterErrorMessageKey;
|
||||
FOUNDATION_EXPORT NSString * __nonnull const OpenVPNAdapterErrorContainsReasonKey;
|
||||
|
||||
/**
|
||||
<#Description#>
|
||||
OpenVPN error codes
|
||||
*/
|
||||
typedef NS_ENUM(NSUInteger, OpenVPNError) {
|
||||
OpenVPNErrorConfigurationFailure,
|
||||
OpenVPNErrorClientFailure
|
||||
typedef NS_ENUM(NSInteger, OpenVPNError) {
|
||||
OpenVPNErrorConfigurationFailure = 1,
|
||||
OpenVPNErrorCredentialsFailure,
|
||||
OpenVPNErrorNetworkRecvError,
|
||||
OpenVPNErrorNetworkEOFError,
|
||||
OpenVPNErrorNetworkSendError,
|
||||
OpenVPNErrorNetworkUnavailable,
|
||||
OpenVPNErrorDecryptError,
|
||||
OpenVPNErrorHMACError,
|
||||
OpenVPNErrorReplayError,
|
||||
OpenVPNErrorBufferError,
|
||||
OpenVPNErrorCCError,
|
||||
OpenVPNErrorBadSrcAddr,
|
||||
OpenVPNErrorCompressError,
|
||||
OpenVPNErrorResolveError,
|
||||
OpenVPNErrorSocketProtectError,
|
||||
OpenVPNErrorTUNReadError,
|
||||
OpenVPNErrorTUNWriteError,
|
||||
OpenVPNErrorTUNFramingError,
|
||||
OpenVPNErrorTUNSetupFailed,
|
||||
OpenVPNErrorTUNIfaceCreate,
|
||||
OpenVPNErrorTUNIfaceDisabled,
|
||||
OpenVPNErrorTUNError,
|
||||
OpenVPNErrorTAPNotSupported,
|
||||
OpenVPNErrorRerouteGatewayNoDns,
|
||||
OpenVPNErrorTransportError,
|
||||
OpenVPNErrorTCPOverflow,
|
||||
OpenVPNErrorTCPSizeError,
|
||||
OpenVPNErrorTCPConnectError,
|
||||
OpenVPNErrorUDPConnectError,
|
||||
OpenVPNErrorSSLError,
|
||||
OpenVPNErrorSSLPartialWrite,
|
||||
OpenVPNErrorEncapsulationError,
|
||||
OpenVPNErrorEPKICertError,
|
||||
OpenVPNErrorEPKISignError,
|
||||
OpenVPNErrorHandshakeTimeout,
|
||||
OpenVPNErrorKeepaliveTimeout,
|
||||
OpenVPNErrorInactiveTimeout,
|
||||
OpenVPNErrorConnectionTimeout,
|
||||
OpenVPNErrorPrimaryExpire,
|
||||
OpenVPNErrorTLSVersionMin,
|
||||
OpenVPNErrorTLSAuthFail,
|
||||
OpenVPNErrorCertVerifyFail,
|
||||
OpenVPNErrorPEMPasswordFail,
|
||||
OpenVPNErrorAuthFailed,
|
||||
OpenVPNErrorClientHalt,
|
||||
OpenVPNErrorClientRestart,
|
||||
OpenVPNErrorRelay,
|
||||
OpenVPNErrorRelayError,
|
||||
OpenVPNErrorPauseNumber,
|
||||
OpenVPNErrorReconnectNumber,
|
||||
OpenVPNErrorKeyLimitRenegNumber,
|
||||
OpenVPNErrorKeyStateError,
|
||||
OpenVPNErrorProxyError,
|
||||
OpenVPNErrorProxyNeedCreds,
|
||||
OpenVPNErrorKevNegotiateError,
|
||||
OpenVPNErrorKevPendingError,
|
||||
OpenVPNErrorKevExpireNumber,
|
||||
OpenVPNErrorPKTIDInvalid,
|
||||
OpenVPNErrorPKTIDBacktrack,
|
||||
OpenVPNErrorPKTIDExpire,
|
||||
OpenVPNErrorPKTIDReplay,
|
||||
OpenVPNErrorPKTIDTimeBacktrack,
|
||||
OpenVPNErrorDynamicChallenge,
|
||||
OpenVPNErrorEPKIError,
|
||||
OpenVPNErrorEPKIInvalidAlias,
|
||||
OpenVPNErrorUnknown
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user