summaryrefslogtreecommitdiff
path: root/debian/patches/debian-banner.patch
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2010-02-27 14:05:10 +0000
committerColin Watson <cjwatson@debian.org>2010-02-27 14:05:10 +0000
commit8dcc7c5ef45cf5032dca7a308ffe17d3935e62d5 (patch)
tree2e0d8058bdfc24a60a20c5bcbfd1075ef1048ff3 /debian/patches/debian-banner.patch
parente44a1fb6e8e59e67e5c8b6e83c0d8566d146aad9 (diff)
Convert to source format 3.0 (quilt).
Diffstat (limited to 'debian/patches/debian-banner.patch')
-rw-r--r--debian/patches/debian-banner.patch91
1 files changed, 91 insertions, 0 deletions
diff --git a/debian/patches/debian-banner.patch b/debian/patches/debian-banner.patch
new file mode 100644
index 000000000..814294e26
--- /dev/null
+++ b/debian/patches/debian-banner.patch
@@ -0,0 +1,91 @@
1Index: b/servconf.c
2===================================================================
3--- a/servconf.c
4+++ b/servconf.c
5@@ -132,6 +132,7 @@
6 options->adm_forced_command = NULL;
7 options->chroot_directory = NULL;
8 options->zero_knowledge_password_authentication = -1;
9+ options->debian_banner = -1;
10 }
11
12 void
13@@ -273,6 +274,8 @@
14 options->permit_tun = SSH_TUNMODE_NO;
15 if (options->zero_knowledge_password_authentication == -1)
16 options->zero_knowledge_password_authentication = 0;
17+ if (options->debian_banner == -1)
18+ options->debian_banner = 1;
19
20 /* Turn privilege separation on by default */
21 if (use_privsep == -1)
22@@ -320,6 +323,7 @@
23 sMatch, sPermitOpen, sForceCommand, sChrootDirectory,
24 sUsePrivilegeSeparation, sAllowAgentForwarding,
25 sZeroKnowledgePasswordAuthentication,
26+ sDebianBanner,
27 sDeprecated, sUnsupported
28 } ServerOpCodes;
29
30@@ -449,6 +453,7 @@
31 { "permitopen", sPermitOpen, SSHCFG_ALL },
32 { "forcecommand", sForceCommand, SSHCFG_ALL },
33 { "chrootdirectory", sChrootDirectory, SSHCFG_ALL },
34+ { "debianbanner", sDebianBanner, SSHCFG_GLOBAL },
35 { NULL, sBadOption, 0 }
36 };
37
38@@ -1335,6 +1340,10 @@
39 *charptr = xstrdup(arg);
40 break;
41
42+ case sDebianBanner:
43+ intptr = &options->debian_banner;
44+ goto parse_int;
45+
46 case sDeprecated:
47 logit("%s line %d: Deprecated option %s",
48 filename, linenum, arg);
49Index: b/servconf.h
50===================================================================
51--- a/servconf.h
52+++ b/servconf.h
53@@ -154,6 +154,8 @@
54
55 int num_permitted_opens;
56
57+ int debian_banner;
58+
59 char *chroot_directory;
60 } ServerOptions;
61
62Index: b/sshd.c
63===================================================================
64--- a/sshd.c
65+++ b/sshd.c
66@@ -426,7 +426,8 @@
67 minor = PROTOCOL_MINOR_1;
68 }
69 snprintf(buf, sizeof buf, "SSH-%d.%d-%.100s%s", major, minor,
70- SSH_RELEASE, newline);
71+ options.debian_banner ? SSH_RELEASE : SSH_RELEASE_MINIMUM,
72+ newline);
73 server_version_string = xstrdup(buf);
74
75 /* Send our protocol version identification. */
76Index: b/sshd_config.5
77===================================================================
78--- a/sshd_config.5
79+++ b/sshd_config.5
80@@ -295,6 +295,11 @@
81 .Dq no .
82 The default is
83 .Dq delayed .
84+.It Cm DebianBanner
85+Specifies whether the distribution-specified extra version suffix is
86+included during initial protocol handshake.
87+The default is
88+.Dq yes .
89 .It Cm DenyGroups
90 This keyword can be followed by a list of group name patterns, separated
91 by spaces.