pssht
latest
SSH server library written in PHP
|
Public Member Functions | |
__construct (array $methods) | |
handle ($msgType,\fpoirotte\Pssht\Wire\Decoder $decoder,\fpoirotte\Pssht\Transport $transport, array &$context) | |
Protected Member Functions | |
failure (\fpoirotte\Pssht\Transport $transport, array &$context, $partial=false) | |
Protected Attributes | |
$connection | |
Connection layer. | |
$methods | |
Allowed authentication methods. | |
Handler for SSH_MSG_USERAUTH_REQUEST messages.
Definition at line 20 of file REQUEST.php.
fpoirotte\Pssht\Handlers\USERAUTH\REQUEST::__construct | ( | array | $methods | ) |
Construct a new handler for SSH_MSG_USERAUTH_REQUEST messages.
array | $methods | Allowed authentication methods. |
Definition at line 34 of file REQUEST.php.
|
protected |
Report an authentication failure.
fpoirotte::Pssht::Transport | $transport | Transport layer used to report the failure. |
array | &$context | SSH session context (containing authentication methods that may continue). |
bool | $partial | (optional) Indicates whether the request ended with a partial success (true) or not (false). If omitted, false is implied. |
true | This method always returns true. |
Definition at line 165 of file REQUEST.php.
Referenced by fpoirotte\Pssht\Handlers\USERAUTH\REQUEST\handle().
fpoirotte\Pssht\Handlers\USERAUTH\REQUEST::handle | ( | $msgType, | |
\fpoirotte\Pssht\Wire\Decoder | $decoder, | ||
\fpoirotte\Pssht\Transport | $transport, | ||
array & | $context | ||
) |
Handle an SSH message.
int | $msgType | Message identifier. |
fpoirotte::Pssht::Wire::Decoder | $decoder | Decoder for the message. |
fpoirotte::Pssht::Transport | $transport | Transport layer the message was received from. |
array | $context | Context for the SSH connection. |
Implements fpoirotte\Pssht\Handlers\HandlerInterface.
Definition at line 50 of file REQUEST.php.
References fpoirotte\Pssht\Handlers\USERAUTH\REQUEST\$methods, fpoirotte\Pssht\Authentication\AuthenticationInterface\AUTH_ACCEPT, fpoirotte\Pssht\Authentication\AuthenticationInterface\AUTH_REJECT, fpoirotte\Pssht\Authentication\AuthenticationInterface\AUTH_REMOVE, fpoirotte\Pssht\Authentication\AuthenticationInterface\CHECK_IGNORE, fpoirotte\Pssht\Authentication\AuthenticationInterface\CHECK_OK, fpoirotte\Pssht\Authentication\AuthenticationInterface\CHECK_REJECT, and fpoirotte\Pssht\Handlers\USERAUTH\REQUEST\failure().