@@ -17,122 +17,122 @@ import (
1717
1818// Typed errors.
1919var (
20- ErrConnClosed = & FatalError {Err : errors .New ("conn is closed" )} //nolint:goerr113
20+ ErrConnClosed = & FatalError {Err : errors .New ("conn is closed" )} //nolint:err113
2121
2222 errDeadlineExceeded = & TimeoutError {Err : fmt .Errorf ("read/write timeout: %w" , context .DeadlineExceeded )}
23- errInvalidContentType = & TemporaryError {Err : errors .New ("invalid content type" )} //nolint:goerr113
23+ errInvalidContentType = & TemporaryError {Err : errors .New ("invalid content type" )} //nolint:err113
2424
25- //nolint:goerr113
25+ //nolint:err113
2626 errBufferTooSmall = & TemporaryError {Err : errors .New ("buffer is too small" )}
27- //nolint:goerr113
27+ //nolint:err113
2828 errContextUnsupported = & TemporaryError {Err : errors .New ("context is not supported for ExportKeyingMaterial" )}
29- //nolint:goerr113
29+ //nolint:err113
3030 errHandshakeInProgress = & TemporaryError {Err : errors .New ("handshake is in progress" )}
31- //nolint:goerr113
31+ //nolint:err113
3232 errReservedExportKeyingMaterial = & TemporaryError {
3333 Err : errors .New ("ExportKeyingMaterial can not be used with a reserved label" ),
3434 }
35- //nolint:goerr113
35+ //nolint:err113
3636 errApplicationDataEpochZero = & TemporaryError {Err : errors .New ("ApplicationData with epoch of 0" )}
37- //nolint:goerr113
37+ //nolint:err113
3838 errUnhandledContextType = & TemporaryError {Err : errors .New ("unhandled contentType" )}
3939
40- //nolint:goerr113
40+ //nolint:err113
4141 errCertificateVerifyNoCertificate = & FatalError {
4242 Err : errors .New ("client sent certificate verify but we have no certificate to verify" ),
4343 }
44- //nolint:goerr113
44+ //nolint:err113
4545 errCipherSuiteNoIntersection = & FatalError {Err : errors .New ("client+server do not support any shared cipher suites" )}
46- //nolint:goerr113
46+ //nolint:err113
4747 errClientCertificateNotVerified = & FatalError {Err : errors .New ("client sent certificate but did not verify it" )}
48- //nolint:goerr113
48+ //nolint:err113
4949 errClientCertificateRequired = & FatalError {Err : errors .New ("server required client verification, but got none" )}
50- //nolint:goerr113
50+ //nolint:err113
5151 errClientNoMatchingSRTPProfile = & FatalError {Err : errors .New ("server responded with SRTP Profile we do not support" )}
52- //nolint:goerr113
52+ //nolint:err113
5353 errClientRequiredButNoServerEMS = & FatalError {
5454 Err : errors .New ("client required Extended Master Secret extension, but server does not support it" ),
5555 }
56- //nolint:goerr113
56+ //nolint:err113
5757 errCookieMismatch = & FatalError {Err : errors .New ("client+server cookie does not match" )}
58- //nolint:goerr113
58+ //nolint:err113
5959 errIdentityNoPSK = & FatalError {Err : errors .New ("PSK Identity Hint provided but PSK is nil" )}
60- //nolint:goerr113
60+ //nolint:err113
6161 errInvalidCertificate = & FatalError {Err : errors .New ("no certificate provided" )}
62- //nolint:goerr113
62+ //nolint:err113
6363 errInvalidCipherSuite = & FatalError {Err : errors .New ("invalid or unknown cipher suite" )}
64- //nolint:goerr113
64+ //nolint:err113
6565 errInvalidECDSASignature = & FatalError {Err : errors .New ("ECDSA signature contained zero or negative values" )}
66- //nolint:goerr113
66+ //nolint:err113
6767 errInvalidPrivateKey = & FatalError {Err : errors .New ("invalid private key type" )}
68- //nolint:goerr113
68+ //nolint:err113
6969 errInvalidSignatureAlgorithm = & FatalError {Err : errors .New ("invalid signature algorithm" )}
70- //nolint:goerr113
70+ //nolint:err113
7171 errKeySignatureMismatch = & FatalError {Err : errors .New ("expected and actual key signature do not match" )}
72- //nolint:goerr113
72+ //nolint:err113
7373 errNilNextConn = & FatalError {Err : errors .New ("Conn can not be created with a nil nextConn" )}
74- //nolint:goerr113
74+ //nolint:err113
7575 errNoAvailableCipherSuites = & FatalError {
7676 Err : errors .New ("connection can not be created, no CipherSuites satisfy this Config" ),
7777 }
78- //nolint:goerr113
78+ //nolint:err113
7979 errNoAvailablePSKCipherSuite = & FatalError {
8080 Err : errors .New ("connection can not be created, pre-shared key present but no compatible CipherSuite" ),
8181 }
82- //nolint:goerr113
82+ //nolint:err113
8383 errNoAvailableCertificateCipherSuite = & FatalError {
8484 Err : errors .New ("connection can not be created, certificate present but no compatible CipherSuite" ),
8585 }
86- //nolint:goerr113
86+ //nolint:err113
8787 errNoAvailableSignatureSchemes = & FatalError {
8888 Err : errors .New ("connection can not be created, no SignatureScheme satisfy this Config" ),
8989 }
90- //nolint:goerr113
90+ //nolint:err113
9191 errNoCertificates = & FatalError {Err : errors .New ("no certificates configured" )}
92- //nolint:goerr113
92+ //nolint:err113
9393 errNoConfigProvided = & FatalError {Err : errors .New ("no config provided" )}
94- //nolint:goerr113
94+ //nolint:err113
9595 errNoSupportedEllipticCurves = & FatalError {
9696 Err : errors .New ("client requested zero or more elliptic curves that are not supported by the server" ),
9797 }
98- //nolint:goerr113
98+ //nolint:err113
9999 errUnsupportedProtocolVersion = & FatalError {Err : errors .New ("unsupported protocol version" )}
100- //nolint:goerr113
100+ //nolint:err113
101101 errPSKAndIdentityMustBeSetForClient = & FatalError {
102102 Err : errors .New ("PSK and PSK Identity Hint must both be set for client" ),
103103 }
104- //nolint:goerr113
104+ //nolint:err113
105105 errRequestedButNoSRTPExtension = & FatalError {
106106 Err : errors .New ("SRTP support was requested but server did not respond with use_srtp extension" ),
107107 }
108- //nolint:goerr113
108+ //nolint:err113
109109 errServerNoMatchingSRTPProfile = & FatalError {Err : errors .New ("client requested SRTP but we have no matching profiles" )}
110- //nolint:goerr113
110+ //nolint:err113
111111 errServerRequiredButNoClientEMS = & FatalError {
112112 Err : errors .New ("server requires the Extended Master Secret extension, but the client does not support it" ),
113113 }
114- //nolint:goerr113
114+ //nolint:err113
115115 errVerifyDataMismatch = & FatalError {Err : errors .New ("expected and actual verify data does not match" )}
116- //nolint:goerr113
116+ //nolint:err113
117117 errNotAcceptableCertificateChain = & FatalError {Err : errors .New ("certificate chain is not signed by an acceptable CA" )}
118118
119- //nolint:goerr113
119+ //nolint:err113
120120 errInvalidFlight = & InternalError {Err : errors .New ("invalid flight number" )}
121- //nolint:goerr113
121+ //nolint:err113
122122 errKeySignatureGenerateUnimplemented = & InternalError {
123123 Err : errors .New ("unable to generate key signature, unimplemented" ),
124124 }
125- //nolint:goerr113
125+ //nolint:err113
126126 errKeySignatureVerifyUnimplemented = & InternalError {Err : errors .New ("unable to verify key signature, unimplemented" )}
127- //nolint:goerr113
127+ //nolint:err113
128128 errLengthMismatch = & InternalError {Err : errors .New ("data length and declared length do not match" )}
129- //nolint:goerr113
129+ //nolint:err113
130130 errSequenceNumberOverflow = & InternalError {Err : errors .New ("sequence number overflow" )}
131- //nolint:goerr113
131+ //nolint:err113
132132 errInvalidFSMTransition = & InternalError {Err : errors .New ("invalid state machine transition" )}
133- //nolint:goerr113
133+ //nolint:err113
134134 errFailedToAccessPoolReadBuffer = & InternalError {Err : errors .New ("failed to access pool read buffer" )}
135- //nolint:goerr113
135+ //nolint:err113
136136 errFragmentBufferOverflow = & InternalError {Err : errors .New ("fragment buffer overflow" )}
137137)
138138
0 commit comments