1 Description: Include the Debian version in our identification
2 This makes it easier to audit networks for versions patched against
3 security vulnerabilities. It has little detrimental effect, as attackers
4 will generally just try attacks rather than bothering to scan for
5 vulnerable-looking version strings. (However, see debian-banner.patch.)
6 Author: Matthew Vernon <matthew@debian.org>
8 Last-Update: 2010-02-28
11 ===================================================================
15 snprintf(buf, sizeof buf, "SSH-%d.%d-%.100s%s",
16 compat20 ? PROTOCOL_MAJOR_2 : PROTOCOL_MAJOR_1,
17 compat20 ? PROTOCOL_MINOR_2 : minor1,
18 - SSH_VERSION, compat20 ? "\r\n" : "\n");
19 + SSH_RELEASE, compat20 ? "\r\n" : "\n");
20 if (roaming_atomicio(vwrite, connection_out, buf, strlen(buf))
22 fatal("write: %.100s", strerror(errno));
24 ===================================================================
28 minor = PROTOCOL_MINOR_1;
30 snprintf(buf, sizeof buf, "SSH-%d.%d-%.100s%s", major, minor,
31 - SSH_VERSION, newline);
32 + SSH_RELEASE, newline);
33 server_version_string = xstrdup(buf);
35 /* Send our protocol version identification. */
37 ===================================================================
41 #define SSH_VERSION "OpenSSH_5.8"
43 #define SSH_PORTABLE "p1"
44 -#define SSH_RELEASE SSH_VERSION SSH_PORTABLE
45 +#define SSH_RELEASE_MINIMUM SSH_VERSION SSH_PORTABLE
46 +#ifdef SSH_EXTRAVERSION
47 +#define SSH_RELEASE SSH_RELEASE_MINIMUM " " SSH_EXTRAVERSION
49 +#define SSH_RELEASE SSH_RELEASE_MINIMUM