diff options
author | Kees Cook <kees@debian.org> | 2014-02-09 16:10:06 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2016-08-07 12:18:43 +0100 |
commit | 277ad2acedde81dce324e711da116d100b47f445 (patch) | |
tree | c1f6897cdf21a4dc38d4ac1b0751d426a853583e /sshd.c | |
parent | c8105413361d3c97b6a2f72c9f1c85da830bed2c (diff) |
Add DebianBanner server configuration option
Setting this to "no" causes sshd to omit the Debian revision from its
initial protocol handshake, for those scared by package-versioning.patch.
Bug-Debian: http://bugs.debian.org/562048
Forwarded: not-needed
Last-Update: 2015-11-29
Patch-Name: debian-banner.patch
Diffstat (limited to 'sshd.c')
-rw-r--r-- | sshd.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -443,7 +443,8 @@ sshd_exchange_identification(struct ssh *ssh, int sock_in, int sock_out) | |||
443 | } | 443 | } |
444 | 444 | ||
445 | xasprintf(&server_version_string, "SSH-%d.%d-%.100s%s%s%s", | 445 | xasprintf(&server_version_string, "SSH-%d.%d-%.100s%s%s%s", |
446 | major, minor, SSH_RELEASE, | 446 | major, minor, |
447 | options.debian_banner ? SSH_RELEASE : SSH_RELEASE_MINIMUM, | ||
447 | *options.version_addendum == '\0' ? "" : " ", | 448 | *options.version_addendum == '\0' ? "" : " ", |
448 | options.version_addendum, newline); | 449 | options.version_addendum, newline); |
449 | 450 | ||