diff options
author | Colin Watson <cjwatson@debian.org> | 2016-12-20 00:22:53 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2016-12-23 19:08:35 +0000 |
commit | ee52365e713e546dbd878d73d9590dbaccd760ba (patch) | |
tree | 841d0d9ae73e83070bcc3b46218ebdd18142dda3 /debian/patches/debian-banner.patch | |
parent | 8a4a5c22e363ad6a110ad9b787170297f5da8f04 (diff) | |
parent | 2103d3e5566c54e08a59be750579a249e46747d7 (diff) |
New upstream release (7.4p1).
Diffstat (limited to 'debian/patches/debian-banner.patch')
-rw-r--r-- | debian/patches/debian-banner.patch | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/debian/patches/debian-banner.patch b/debian/patches/debian-banner.patch index cf4bfad50..ad842c23f 100644 --- a/debian/patches/debian-banner.patch +++ b/debian/patches/debian-banner.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 277ad2acedde81dce324e711da116d100b47f445 Mon Sep 17 00:00:00 2001 | 1 | From 02a077d3c8f8491d277b2291d5ae538379c7ed44 Mon Sep 17 00:00:00 2001 |
2 | From: Kees Cook <kees@debian.org> | 2 | From: Kees Cook <kees@debian.org> |
3 | Date: Sun, 9 Feb 2014 16:10:06 +0000 | 3 | Date: Sun, 9 Feb 2014 16:10:06 +0000 |
4 | Subject: Add DebianBanner server configuration option | 4 | Subject: Add DebianBanner server configuration option |
@@ -19,43 +19,43 @@ Patch-Name: debian-banner.patch | |||
19 | 4 files changed, 18 insertions(+), 1 deletion(-) | 19 | 4 files changed, 18 insertions(+), 1 deletion(-) |
20 | 20 | ||
21 | diff --git a/servconf.c b/servconf.c | 21 | diff --git a/servconf.c b/servconf.c |
22 | index bf9f8f7..a98b309 100644 | 22 | index 49d3bdc8..1cee3d6c 100644 |
23 | --- a/servconf.c | 23 | --- a/servconf.c |
24 | +++ b/servconf.c | 24 | +++ b/servconf.c |
25 | @@ -171,6 +171,7 @@ initialize_server_options(ServerOptions *options) | 25 | @@ -166,6 +166,7 @@ initialize_server_options(ServerOptions *options) |
26 | options->ip_qos_bulk = -1; | ||
27 | options->version_addendum = NULL; | 26 | options->version_addendum = NULL; |
28 | options->fingerprint_hash = -1; | 27 | options->fingerprint_hash = -1; |
28 | options->disable_forwarding = -1; | ||
29 | + options->debian_banner = -1; | 29 | + options->debian_banner = -1; |
30 | } | 30 | } |
31 | 31 | ||
32 | /* Returns 1 if a string option is unset or set to "none" or 0 otherwise. */ | 32 | /* Returns 1 if a string option is unset or set to "none" or 0 otherwise. */ |
33 | @@ -359,6 +360,8 @@ fill_default_server_options(ServerOptions *options) | 33 | @@ -339,6 +340,8 @@ fill_default_server_options(ServerOptions *options) |
34 | options->fwd_opts.streamlocal_bind_unlink = 0; | ||
35 | if (options->fingerprint_hash == -1) | ||
36 | options->fingerprint_hash = SSH_FP_HASH_DEFAULT; | 34 | options->fingerprint_hash = SSH_FP_HASH_DEFAULT; |
35 | if (options->disable_forwarding == -1) | ||
36 | options->disable_forwarding = 0; | ||
37 | + if (options->debian_banner == -1) | 37 | + if (options->debian_banner == -1) |
38 | + options->debian_banner = 1; | 38 | + options->debian_banner = 1; |
39 | 39 | ||
40 | assemble_algorithms(options); | 40 | assemble_algorithms(options); |
41 | 41 | ||
42 | @@ -445,6 +448,7 @@ typedef enum { | 42 | @@ -425,6 +428,7 @@ typedef enum { |
43 | sAuthenticationMethods, sHostKeyAgent, sPermitUserRC, | 43 | sAuthenticationMethods, sHostKeyAgent, sPermitUserRC, |
44 | sStreamLocalBindMask, sStreamLocalBindUnlink, | 44 | sStreamLocalBindMask, sStreamLocalBindUnlink, |
45 | sAllowStreamLocalForwarding, sFingerprintHash, | 45 | sAllowStreamLocalForwarding, sFingerprintHash, sDisableForwarding, |
46 | + sDebianBanner, | 46 | + sDebianBanner, |
47 | sDeprecated, sUnsupported | 47 | sDeprecated, sIgnore, sUnsupported |
48 | } ServerOpCodes; | 48 | } ServerOpCodes; |
49 | 49 | ||
50 | @@ -596,6 +600,7 @@ static struct { | 50 | @@ -577,6 +581,7 @@ static struct { |
51 | { "streamlocalbindunlink", sStreamLocalBindUnlink, SSHCFG_ALL }, | ||
52 | { "allowstreamlocalforwarding", sAllowStreamLocalForwarding, SSHCFG_ALL }, | 51 | { "allowstreamlocalforwarding", sAllowStreamLocalForwarding, SSHCFG_ALL }, |
53 | { "fingerprinthash", sFingerprintHash, SSHCFG_GLOBAL }, | 52 | { "fingerprinthash", sFingerprintHash, SSHCFG_GLOBAL }, |
53 | { "disableforwarding", sDisableForwarding, SSHCFG_ALL }, | ||
54 | + { "debianbanner", sDebianBanner, SSHCFG_GLOBAL }, | 54 | + { "debianbanner", sDebianBanner, SSHCFG_GLOBAL }, |
55 | { NULL, sBadOption, 0 } | 55 | { NULL, sBadOption, 0 } |
56 | }; | 56 | }; |
57 | 57 | ||
58 | @@ -1903,6 +1908,10 @@ process_server_config_line(ServerOptions *options, char *line, | 58 | @@ -1860,6 +1865,10 @@ process_server_config_line(ServerOptions *options, char *line, |
59 | options->fingerprint_hash = value; | 59 | options->fingerprint_hash = value; |
60 | break; | 60 | break; |
61 | 61 | ||
@@ -64,13 +64,13 @@ index bf9f8f7..a98b309 100644 | |||
64 | + goto parse_int; | 64 | + goto parse_int; |
65 | + | 65 | + |
66 | case sDeprecated: | 66 | case sDeprecated: |
67 | logit("%s line %d: Deprecated option %s", | 67 | case sIgnore: |
68 | filename, linenum, arg); | 68 | case sUnsupported: |
69 | diff --git a/servconf.h b/servconf.h | 69 | diff --git a/servconf.h b/servconf.h |
70 | index 778ba17..161fa37 100644 | 70 | index 90dfa4c2..913a21b3 100644 |
71 | --- a/servconf.h | 71 | --- a/servconf.h |
72 | +++ b/servconf.h | 72 | +++ b/servconf.h |
73 | @@ -197,6 +197,8 @@ typedef struct { | 73 | @@ -191,6 +191,8 @@ typedef struct { |
74 | char *auth_methods[MAX_AUTH_METHODS]; | 74 | char *auth_methods[MAX_AUTH_METHODS]; |
75 | 75 | ||
76 | int fingerprint_hash; | 76 | int fingerprint_hash; |
@@ -80,32 +80,32 @@ index 778ba17..161fa37 100644 | |||
80 | 80 | ||
81 | /* Information about the incoming connection as used by Match */ | 81 | /* Information about the incoming connection as used by Match */ |
82 | diff --git a/sshd.c b/sshd.c | 82 | diff --git a/sshd.c b/sshd.c |
83 | index e873557..71fad9e 100644 | 83 | index 39e4699c..747beec8 100644 |
84 | --- a/sshd.c | 84 | --- a/sshd.c |
85 | +++ b/sshd.c | 85 | +++ b/sshd.c |
86 | @@ -443,7 +443,8 @@ sshd_exchange_identification(struct ssh *ssh, int sock_in, int sock_out) | 86 | @@ -378,7 +378,8 @@ sshd_exchange_identification(struct ssh *ssh, int sock_in, int sock_out) |
87 | } | 87 | char remote_version[256]; /* Must be at least as big as buf. */ |
88 | 88 | ||
89 | xasprintf(&server_version_string, "SSH-%d.%d-%.100s%s%s%s", | 89 | xasprintf(&server_version_string, "SSH-%d.%d-%.100s%s%s%s", |
90 | - major, minor, SSH_RELEASE, | 90 | - PROTOCOL_MAJOR_2, PROTOCOL_MINOR_2, SSH_RELEASE, |
91 | + major, minor, | 91 | + PROTOCOL_MAJOR_2, PROTOCOL_MINOR_2, |
92 | + options.debian_banner ? SSH_RELEASE : SSH_RELEASE_MINIMUM, | 92 | + options.debian_banner ? SSH_RELEASE : SSH_RELEASE_MINIMUM, |
93 | *options.version_addendum == '\0' ? "" : " ", | 93 | *options.version_addendum == '\0' ? "" : " ", |
94 | options.version_addendum, newline); | 94 | options.version_addendum, newline); |
95 | 95 | ||
96 | diff --git a/sshd_config.5 b/sshd_config.5 | 96 | diff --git a/sshd_config.5 b/sshd_config.5 |
97 | index e05cdbe..ac9b1f0 100644 | 97 | index 283ba889..4ea0a9c3 100644 |
98 | --- a/sshd_config.5 | 98 | --- a/sshd_config.5 |
99 | +++ b/sshd_config.5 | 99 | +++ b/sshd_config.5 |
100 | @@ -541,6 +541,11 @@ or | 100 | @@ -526,6 +526,11 @@ or |
101 | .Dq no . | 101 | .Cm no . |
102 | The default is | 102 | The default is |
103 | .Dq delayed . | 103 | .Cm yes . |
104 | +.It Cm DebianBanner | 104 | +.It Cm DebianBanner |
105 | +Specifies whether the distribution-specified extra version suffix is | 105 | +Specifies whether the distribution-specified extra version suffix is |
106 | +included during initial protocol handshake. | 106 | +included during initial protocol handshake. |
107 | +The default is | 107 | +The default is |
108 | +.Dq yes . | 108 | +.Cm yes . |
109 | .It Cm DenyGroups | 109 | .It Cm DenyGroups |
110 | This keyword can be followed by a list of group name patterns, separated | 110 | This keyword can be followed by a list of group name patterns, separated |
111 | by spaces. | 111 | by spaces. |