mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-01 11:32:48 -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:
8
Buildscr
8
Buildscr
@ -63,10 +63,10 @@ set Docmakever VERSION="$(Puttytextver)"
|
||||
# make sure it's under 40 characters, which is a hard limit in the SSH
|
||||
# protocol spec (and enforced by a compile-time assertion in
|
||||
# version.c).
|
||||
ifneq "$(RELEASE)" "" set Sshver PuTTY-Release-$(RELEASE)
|
||||
ifneq "$(PRERELEASE)" "" set Sshver PuTTY-Prerelease-$(PRERELEASE):$(Ndate).$(vcsid)
|
||||
ifneq "$(SNAPSHOT)" "" set Sshver PuTTY-Snapshot-$(Date).$(vcsid)
|
||||
ifeq "$(RELEASE)$(PRERELEASE)$(SNAPSHOT)" "" set Sshver PuTTY-Custom-$(Date).$(vcsid)
|
||||
ifneq "$(RELEASE)" "" set Sshver -Release-$(RELEASE)
|
||||
ifneq "$(PRERELEASE)" "" set Sshver -Prerelease-$(PRERELEASE):$(Ndate).$(vcsid)
|
||||
ifneq "$(SNAPSHOT)" "" set Sshver -Snapshot-$(Date).$(vcsid)
|
||||
ifeq "$(RELEASE)$(PRERELEASE)$(SNAPSHOT)" "" set Sshver -Custom-$(Date).$(vcsid)
|
||||
|
||||
# Set up the filename suffix for the Unix source archive.
|
||||
ifneq "$(RELEASE)" "" set Uxarcsuffix -$(RELEASE)
|
||||
|
Reference in New Issue
Block a user