From 730e12063b532f59292af38f584d84127a77ebdd Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Sat, 16 Jan 2010 00:07:00 +0000 Subject: 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). --- sshd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sshd.c') 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) minor = PROTOCOL_MINOR_1; } snprintf(buf, sizeof buf, "SSH-%d.%d-%.100s%s", major, minor, - SSH_RELEASE, newline); + options.debian_banner ? SSH_RELEASE : SSH_RELEASE_MINIMUM, + newline); server_version_string = xstrdup(buf); /* Send our protocol version identification. */ -- cgit v1.2.3