-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherrors.go
More file actions
49 lines (47 loc) · 3.12 KB
/
Copy patherrors.go
File metadata and controls
49 lines (47 loc) · 3.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
package openvpn
import E "github.com/sagernet/sing/common/exceptions"
var (
ErrMissingServer = E.New("missing openvpn server")
ErrMissingListenAddress = E.New("missing openvpn listen address")
ErrUnsupportedProtocol = E.New("unsupported openvpn protocol")
ErrUnsupportedMode = E.New("unsupported openvpn mode")
ErrHandshakeTimeout = E.New("control handshake timeout")
ErrNoPushReply = E.New("server did not reply to push requests")
ErrDataChannelNotReady = E.New("data channel is not ready")
ErrClientClosed = E.New("client is closed")
ErrServerClosed = E.New("server is closed")
ErrPeerNotFound = E.New("peer not found")
ErrMissingStaticKey = E.New("missing openvpn static key")
ErrCompressionNotSupported = E.New("compression is not supported yet")
ErrOptionNotSupported = E.New("option is not supported yet")
ErrAuthenticationFailed = E.New("authentication failed")
ErrServerRestart = E.New("server requested restart")
ErrServerHalt = E.New("server halted session")
ErrServerExit = E.New("server exited")
ErrPeerExit = E.New("peer exited")
ErrPeerRestart = E.New("peer started a new hard-reset session")
ErrPeerCertificateVerification = E.New("peer certificate verification failed")
ErrPeerCertificateRevoked = E.New("peer certificate is revoked")
ErrPeerCertificateExtUsage = E.New("peer certificate is missing required extended key usage")
ErrPeerCertificateKeyUsage = E.New("peer certificate is missing required key usage")
ErrPeerCertificateNSCertType = E.New("peer certificate fails ns-cert-type check")
ErrCRLSignatureInvalid = E.New("CRL signature not issued by a trusted CA")
ErrCRLExpired = E.New("CRL is outside its validity window")
ErrPullFilterRejected = E.New("pushed option rejected by pull-filter")
ErrCompressionPushRejected = E.New("pushed compression rejected by --allow-compression policy")
ErrCipherNegotiationFailed = E.New("cipher negotiation failed with peer")
ErrRenegotiationRequired = E.New("data channel reached renegotiation threshold")
ErrIPPoolExhausted = E.New("server ifconfig pool is exhausted")
ErrRouteNotFound = E.New("route not found")
ErrInvalidIPPacket = E.New("invalid ip packet")
ErrPingRestartTimeout = E.New("ping-restart timeout")
ErrPingExitTimeout = E.New("ping-exit timeout")
ErrNoPendingChallenge = E.New("no pending openvpn challenge")
ErrChallengeNotAnswerable = E.New("challenge does not accept a response")
ErrChallengeCanceled = E.New("authentication challenge canceled")
ErrAuthPendingTimeout = E.New("pending authentication timed out")
ErrInactiveTimeout = E.New("inactive timeout")
ErrSessionTimeout = E.New("session timeout")
ErrRemoteAddressExhausted = E.New("remote address list exhausted")
ErrServerResourceLimit = E.New("server resource limit reached")
)