An AuthMethod represents an instance of an RFC 4252 authentication method.
| 156 | |
| 157 | // An AuthMethod represents an instance of an RFC 4252 authentication method. |
| 158 | type AuthMethod interface { |
| 159 | // auth authenticates user over transport t. |
| 160 | // Returns true if authentication is successful. |
| 161 | // If authentication is not successful, a []string of alternative |
| 162 | // method names is returned. If the slice is nil, it will be ignored |
| 163 | // and the previous set of possible methods will be reused. |
| 164 | auth(session []byte, user string, p packetConn, rand io.Reader, extensions map[string][]byte) (authResult, []string, error) |
| 165 | |
| 166 | // method returns the RFC 4252 method name. |
| 167 | method() string |
| 168 | } |
| 169 | |
| 170 | // "none" authentication, RFC 4252 section 5.2. |
| 171 | type noneAuth int |
no outgoing calls
no test coverage detected
searching dependent graphs…