mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-05 21:42:47 -05:00
Server prep: reword messages to be client/server agnostic.
Lots of user-facing messages that claim that the 'server' just did something or other unexpected will now need to be issued _by_ the server, when the client does the same unexpected thing. So I've reworded them all to talk about the 'remote side' instead of the 'server', and the SSH-2 key setup messages talk about initialising inbound and outbound crypto primitives rather than client->server and server->client.
This commit is contained in:
@ -116,7 +116,7 @@ static void ssh1_bpp_handle_input(BinaryPacketProtocol *bpp)
|
||||
|
||||
if (s->len < 0 || s->len > 262144) { /* SSH1.5-mandated max size */
|
||||
ssh_sw_abort(s->bpp.ssh,
|
||||
"Extremely large packet length from server suggests"
|
||||
"Extremely large packet length from remote suggests"
|
||||
" data stream corruption");
|
||||
crStopV;
|
||||
}
|
||||
@ -246,9 +246,9 @@ static void ssh1_bpp_handle_input(BinaryPacketProtocol *bpp)
|
||||
eof:
|
||||
if (!s->bpp.expect_close) {
|
||||
ssh_remote_error(s->bpp.ssh,
|
||||
"Server unexpectedly closed network connection");
|
||||
"Remote side unexpectedly closed network connection");
|
||||
} else {
|
||||
ssh_remote_eof(s->bpp.ssh, "Server closed network connection");
|
||||
ssh_remote_eof(s->bpp.ssh, "Remote side closed network connection");
|
||||
}
|
||||
return; /* avoid touching s now it's been freed */
|
||||
|
||||
|
Reference in New Issue
Block a user