diff options
author | Kees Cook <kees@debian.org> | 2014-02-09 16:10:06 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2014-02-09 16:18:49 +0000 |
commit | 8a75df792931443e868e574408ed1666208a28c2 (patch) | |
tree | ed0e6736ececb28ef92b391d212987cc03f770b0 /sshd.c | |
parent | da3ff9786c4c03b2aac4936b28f06b3c152e230d (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: 2013-09-14
Patch-Name: debian-banner.patch
Diffstat (limited to 'sshd.c')
-rw-r--r-- | sshd.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -440,7 +440,8 @@ sshd_exchange_identification(int sock_in, int sock_out) | |||
440 | } | 440 | } |
441 | 441 | ||
442 | xasprintf(&server_version_string, "SSH-%d.%d-%.100s%s%s%s", | 442 | xasprintf(&server_version_string, "SSH-%d.%d-%.100s%s%s%s", |
443 | major, minor, SSH_RELEASE, | 443 | major, minor, |
444 | options.debian_banner ? SSH_RELEASE : SSH_RELEASE_MINIMUM, | ||
444 | *options.version_addendum == '\0' ? "" : " ", | 445 | *options.version_addendum == '\0' ? "" : " ", |
445 | options.version_addendum, newline); | 446 | options.version_addendum, newline); |
446 | 447 | ||