mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-15 10:07:39 -05:00
Server prep: pass "implementation name" to ssh_verstring_new.
The word 'PuTTY' in the outgoing SSH version string has always represented the name of the *SSH implementation* as opposed to the name of the specific program containing it (for example, PSCP and PSFTP don't announce themselves with a different banner). But I think that a change from client to server merits a change in that implementation name, so I'm removing the prefix "PuTTY" from the constant string sshver[], and moving it to a parameter passed in separately to ssh_verstring_new, so that the upcoming server can pass in a different one.
This commit is contained in:
3
sshbpp.h
3
sshbpp.h
@ -136,7 +136,8 @@ struct ssh_version_receiver {
|
||||
};
|
||||
BinaryPacketProtocol *ssh_verstring_new(
|
||||
Conf *conf, LogContext *logctx, int bare_connection_mode,
|
||||
const char *protoversion, struct ssh_version_receiver *rcv);
|
||||
const char *protoversion, struct ssh_version_receiver *rcv,
|
||||
const char *impl_name);
|
||||
const char *ssh_verstring_get_remote(BinaryPacketProtocol *);
|
||||
const char *ssh_verstring_get_local(BinaryPacketProtocol *);
|
||||
int ssh_verstring_get_bugs(BinaryPacketProtocol *);
|
||||
|
Reference in New Issue
Block a user