src/Handlers/USERAUTH/REQUEST.php
protected function failure(
        \fpoirotte\Pssht\Transport $transport,
        array &$context,
        $partial = false
    ) {
        if (!is_bool($partial)) {
            throw new \InvalidArgumentException();
        }

        $remaining  = $context['authMethods'];
        unset($remaining['none']);
        $remaining  = array_keys($remaining);
        $response   = new \fpoirotte\Pssht\Messages\USERAUTH\FAILURE($remaining, $partial);
        $transport->writeMessage($response);
        return true;
    }
protected function failure(
        \fpoirotte\Pssht\Transport $transport,
        array &$context,
        $partial = false
    ) {
        if (!is_bool($partial)) {
            throw new \InvalidArgumentException();
        }

        $remaining  = $context['authMethods'];
        unset($remaining['none']);
        $remaining  = array_keys($remaining);
        $response   = new \fpoirotte\Pssht\Messages\USERAUTH\FAILURE($remaining, $partial);
        $transport->writeMessage($response);
        return true;
    }
protected function failure ( \ fpoirotte \ Pssht \ Transport $ transport , array & $ context , $ partial = false ) { if ( ! is_bool ( $ partial ) ) { throw new \ InvalidArgumentException ( ) ; } $ remaining = $ context [ 'authMethods' ] ; unset ( $ remaining [ 'none' ] ) ; $ remaining = array_keys ( $ remaining ) ; $ response = new \ fpoirotte \ Pssht \ Messages \ USERAUTH \ FAILURE ( $ remaining , $ partial ) ; $ transport -> writeMessage ( $ response ) ; return true ; }
Report an authentication failure.

\param fpoirotte::Pssht::Transport $transport
Transport layer used to report the failure.

\param array &$context
SSH session context (containing authentication methods
that may continue).

\param bool $partial
(optional) Indicates whether the request ended with
a partial success (\b true) or not (\b false).
If omitted, \b false is implied.

\retval true
This method always returns true.
Report an authentication failure .