summaryrefslogtreecommitdiff
path: root/monitor.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2013-04-23 15:18:10 +1000
committerDamien Miller <djm@mindrot.org>2013-04-23 15:18:10 +1000
commit91a55f28f35431f9000b95815c343b5a18fda712 (patch)
treedc3339c3a51fd5f78776b0f80220e4c078f52cfb /monitor.c
parent4ce189d9108c62090a0dd5dea973d175328440db (diff)
- markus@cvs.openbsd.org 2013/03/07 19:27:25
[auth.h auth2-chall.c auth2.c monitor.c sshd_config.5] add submethod support to AuthenticationMethods; ok and freedback djm@
Diffstat (limited to 'monitor.c')
-rw-r--r--monitor.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/monitor.c b/monitor.c
index 34d7e1805..c0471a176 100644
--- a/monitor.c
+++ b/monitor.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: monitor.c,v 1.121 2013/03/07 00:19:59 djm Exp $ */ 1/* $OpenBSD: monitor.c,v 1.122 2013/03/07 19:27:25 markus Exp $ */
2/* 2/*
3 * Copyright 2002 Niels Provos <provos@citi.umich.edu> 3 * Copyright 2002 Niels Provos <provos@citi.umich.edu>
4 * Copyright 2002 Markus Friedl <markus@openbsd.org> 4 * Copyright 2002 Markus Friedl <markus@openbsd.org>
@@ -392,7 +392,7 @@ monitor_child_preauth(Authctxt *_authctxt, struct monitor *pmonitor)
392 "with SSH protocol 1"); 392 "with SSH protocol 1");
393 if (authenticated && 393 if (authenticated &&
394 !auth2_update_methods_lists(authctxt, 394 !auth2_update_methods_lists(authctxt,
395 auth_method)) { 395 auth_method, auth_submethod)) {
396 debug3("%s: method %s: partial", __func__, 396 debug3("%s: method %s: partial", __func__,
397 auth_method); 397 auth_method);
398 authenticated = 0; 398 authenticated = 0;
@@ -949,9 +949,10 @@ mm_answer_bsdauthrespond(int sock, Buffer *m)
949 debug3("%s: sending authenticated: %d", __func__, authok); 949 debug3("%s: sending authenticated: %d", __func__, authok);
950 mm_request_send(sock, MONITOR_ANS_BSDAUTHRESPOND, m); 950 mm_request_send(sock, MONITOR_ANS_BSDAUTHRESPOND, m);
951 951
952 if (compat20) 952 if (compat20) {
953 auth_method = "keyboard-interactive"; /* XXX auth_submethod */ 953 auth_method = "keyboard-interactive";
954 else 954 auth_submethod = "bsdauth";
955 } else
955 auth_method = "bsdauth"; 956 auth_method = "bsdauth";
956 957
957 return (authok != 0); 958 return (authok != 0);