mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-06-30 19:12:48 -05:00
seat_output: add an output type for SSH banners. (NFC)
The jump host system ought really to be treating SSH authentication banners as a distinct thing from the standard-error session output, so that the former can be presented to the user in the same way as the auth banner for the main session. This change converts the 'bool is_stderr' parameter of seat_output() into an enumerated type with three values. For the moment, stderr and banners are treated the same, but the plan is for that to change.
This commit is contained in:
@ -50,8 +50,9 @@ static void plink_echoedit_update(Seat *seat, bool echo, bool edit)
|
||||
}
|
||||
|
||||
static size_t plink_output(
|
||||
Seat *seat, bool is_stderr, const void *data, size_t len)
|
||||
Seat *seat, SeatOutputType type, const void *data, size_t len)
|
||||
{
|
||||
bool is_stderr = type != SEAT_OUTPUT_STDOUT;
|
||||
BinarySink *bs = is_stderr ? stderr_bs : stdout_bs;
|
||||
put_data(bs, data, len);
|
||||
|
||||
|
Reference in New Issue
Block a user