diff options
author | Kees Cook <kees@debian.org> | 2014-02-09 16:10:06 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2016-03-21 12:06:15 +0000 |
commit | 1b9f8f458824d7e46f9f749c77f26016f2ea9967 (patch) | |
tree | 6e76ba5b7244a3b4b2881e338278596b62cc638d /sshd.c | |
parent | 81e52d59797c24edadc36f0f90f96387976a82c0 (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
@@ -442,7 +442,8 @@ sshd_exchange_identification(int sock_in, int sock_out) | |||
442 | } | 442 | } |
443 | 443 | ||
444 | xasprintf(&server_version_string, "SSH-%d.%d-%.100s%s%s%s", | 444 | xasprintf(&server_version_string, "SSH-%d.%d-%.100s%s%s%s", |
445 | major, minor, SSH_RELEASE, | 445 | major, minor, |
446 | options.debian_banner ? SSH_RELEASE : SSH_RELEASE_MINIMUM, | ||
446 | *options.version_addendum == '\0' ? "" : " ", | 447 | *options.version_addendum == '\0' ? "" : " ", |
447 | options.version_addendum, newline); | 448 | options.version_addendum, newline); |
448 | 449 | ||