mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-01 11:32:48 -05:00
Move the default Channel methods into sshcommon.c.
Those don't need any of ssh.c's internal facilities either.
This commit is contained in:
19
sshcommon.c
19
sshcommon.c
@ -267,3 +267,22 @@ static int zombiechan_want_close(Channel *chan, int sent_eof, int rcvd_eof)
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/* ----------------------------------------------------------------------
|
||||
* Centralised standard methods for other channel implementations to
|
||||
* borrow.
|
||||
*/
|
||||
|
||||
void chan_remotely_opened_confirmation(Channel *chan)
|
||||
{
|
||||
assert(0 && "this channel type should never receive OPEN_CONFIRMATION");
|
||||
}
|
||||
|
||||
void chan_remotely_opened_failure(Channel *chan, const char *errtext)
|
||||
{
|
||||
assert(0 && "this channel type should never receive OPEN_FAILURE");
|
||||
}
|
||||
|
||||
int chan_no_eager_close(Channel *chan, int sent_local_eof, int rcvd_remote_eof)
|
||||
{
|
||||
return FALSE; /* default: never proactively ask for a close */
|
||||
}
|
||||
|
Reference in New Issue
Block a user