diff options
author | Kees Cook <kees@debian.org> | 2014-02-09 16:10:06 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2017-01-16 15:02:54 +0000 |
commit | 2a1aeb898e4214f98acc210c992d33334e6710dd (patch) | |
tree | 42378b97f0486d8c9ec8807f52e5d4918c5405ee /sshd.c | |
parent | c89c88a0bcada4616262e3d7d9b165aca709927b (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
@@ -378,7 +378,8 @@ sshd_exchange_identification(struct ssh *ssh, int sock_in, int sock_out) | |||
378 | char remote_version[256]; /* Must be at least as big as buf. */ | 378 | char remote_version[256]; /* Must be at least as big as buf. */ |
379 | 379 | ||
380 | xasprintf(&server_version_string, "SSH-%d.%d-%.100s%s%s%s", | 380 | xasprintf(&server_version_string, "SSH-%d.%d-%.100s%s%s%s", |
381 | PROTOCOL_MAJOR_2, PROTOCOL_MINOR_2, SSH_RELEASE, | 381 | PROTOCOL_MAJOR_2, PROTOCOL_MINOR_2, |
382 | options.debian_banner ? SSH_RELEASE : SSH_RELEASE_MINIMUM, | ||
382 | *options.version_addendum == '\0' ? "" : " ", | 383 | *options.version_addendum == '\0' ? "" : " ", |
383 | options.version_addendum, newline); | 384 | options.version_addendum, newline); |
384 | 385 | ||