summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2007-06-19 17:12:35 +0000
committerColin Watson <cjwatson@debian.org>2007-06-19 17:12:35 +0000
commit3c8b23e84bd3ab115dbc372f67bc400b32910f27 (patch)
tree0065d43ee86ab7738b70c0b8b5b0e999bdce7181
parentd2738eb9f31d20d0abfdbb1dd41e6af5e521a5d9 (diff)
- Move C/R -> kbdint special case to after the defaults have been
loaded, which makes ChallengeResponse default to yes again. This was broken by the Match changes and not fixed properly subsequently (closes: #428968).
-rw-r--r--debian/changelog4
-rw-r--r--servconf.c4
-rw-r--r--sshd.c4
3 files changed, 8 insertions, 4 deletions
diff --git a/debian/changelog b/debian/changelog
index 7ffc040da..0a310cdaa 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -13,6 +13,10 @@ openssh (1:4.6p1-2) UNRELEASED; urgency=low
13 * Add /etc/network/if-up.d/openssh-server to restart sshd when new 13 * Add /etc/network/if-up.d/openssh-server to restart sshd when new
14 interfaces appear (LP: #103436). 14 interfaces appear (LP: #103436).
15 * Backport from upstream: 15 * Backport from upstream:
16 - Move C/R -> kbdint special case to after the defaults have been
17 loaded, which makes ChallengeResponse default to yes again. This was
18 broken by the Match changes and not fixed properly subsequently
19 (closes: #428968).
16 - Silence spurious error messages from hang-on-exit fix 20 - Silence spurious error messages from hang-on-exit fix
17 (http://bugzilla.mindrot.org/show_bug.cgi?id=1306, closes: #429531). 21 (http://bugzilla.mindrot.org/show_bug.cgi?id=1306, closes: #429531).
18 22
diff --git a/servconf.c b/servconf.c
index 951bbc4bf..04b1a597e 100644
--- a/servconf.c
+++ b/servconf.c
@@ -1411,8 +1411,4 @@ parse_server_config(ServerOptions *options, const char *filename, Buffer *conf,
1411 if (bad_options > 0) 1411 if (bad_options > 0)
1412 fatal("%s: terminating, %d bad configuration options", 1412 fatal("%s: terminating, %d bad configuration options",
1413 filename, bad_options); 1413 filename, bad_options);
1414
1415 /* challenge-response is implemented via keyboard interactive */
1416 if (options->challenge_response_authentication == 1)
1417 options->kbd_interactive_authentication = 1;
1418} 1414}
diff --git a/sshd.c b/sshd.c
index dd873ef72..985f05917 100644
--- a/sshd.c
+++ b/sshd.c
@@ -1430,6 +1430,10 @@ main(int ac, char **av)
1430 /* Fill in default values for those options not explicitly set. */ 1430 /* Fill in default values for those options not explicitly set. */
1431 fill_default_server_options(&options); 1431 fill_default_server_options(&options);
1432 1432
1433 /* challenge-response is implemented via keyboard interactive */
1434 if (options.challenge_response_authentication)
1435 options.kbd_interactive_authentication = 1;
1436
1433 /* set default channel AF */ 1437 /* set default channel AF */
1434 channel_set_af(options.address_family); 1438 channel_set_af(options.address_family);
1435 1439