summaryrefslogtreecommitdiff
path: root/sshd.c
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2010-01-16 00:07:00 +0000
committerColin Watson <cjwatson@debian.org>2010-01-16 00:07:00 +0000
commit730e12063b532f59292af38f584d84127a77ebdd (patch)
tree0fe553bd04207ffde728f350a1f21dfb5966bf14 /sshd.c
parent5df50c6ed93365589bbcfb6a1925828b1273c7a9 (diff)
Implement DebianBanner server configuration flag that can be set to "no"
to allow sshd to run without the Debian-specific extra version in the initial protocol handshake (closes: #562048).
Diffstat (limited to 'sshd.c')
-rw-r--r--sshd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sshd.c b/sshd.c
index b83ecd9e5..bd671160d 100644
--- a/sshd.c
+++ b/sshd.c
@@ -425,7 +425,8 @@ sshd_exchange_identification(int sock_in, int sock_out)
425 minor = PROTOCOL_MINOR_1; 425 minor = PROTOCOL_MINOR_1;
426 } 426 }
427 snprintf(buf, sizeof buf, "SSH-%d.%d-%.100s%s", major, minor, 427 snprintf(buf, sizeof buf, "SSH-%d.%d-%.100s%s", major, minor,
428 SSH_RELEASE, newline); 428 options.debian_banner ? SSH_RELEASE : SSH_RELEASE_MINIMUM,
429 newline);
429 server_version_string = xstrdup(buf); 430 server_version_string = xstrdup(buf);
430 431
431 /* Send our protocol version identification. */ 432 /* Send our protocol version identification. */