summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/readconf.c
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2015-02-16 22:13:33 +0000
committerDamien Miller <djm@cvs.openbsd.org>2015-02-16 22:13:33 +0000
commit5525898fddfe9edd2c4e42a4671e6c3d1cb3b687 (patch)
tree2905bc9b6a0642cd2474cdd09875f8358e13ab1d /usr.bin/ssh/readconf.c
parent606ca0953e73ebb7e65d20fe23163fc9bf8f0a3d (diff)
Revise hostkeys@openssh.com hostkey learning extension.
The client will not ask the server to prove ownership of the private halves of any hitherto-unseen hostkeys it offers to the client. Allow UpdateHostKeys option to take an 'ask' argument to let the user manually review keys offered. ok markus@
Diffstat (limited to 'usr.bin/ssh/readconf.c')
-rw-r--r--usr.bin/ssh/readconf.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/ssh/readconf.c b/usr.bin/ssh/readconf.c
index 89eff0c0074..c24a369765b 100644
--- a/usr.bin/ssh/readconf.c
+++ b/usr.bin/ssh/readconf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: readconf.c,v 1.231 2015/02/02 07:41:40 djm Exp $ */
+/* $OpenBSD: readconf.c,v 1.232 2015/02/16 22:13:32 djm Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -1468,7 +1468,8 @@ parse_int:
case oUpdateHostkeys:
intptr = &options->update_hostkeys;
- goto parse_flag;
+ multistate_ptr = multistate_yesnoask;
+ goto parse_multistate;
case oHostbasedKeyTypes:
charptr = &options->hostbased_key_types;
@@ -2093,6 +2094,7 @@ fmt_intarg(OpCodes code, int val)
return fmt_multistate_int(val, multistate_addressfamily);
case oVerifyHostKeyDNS:
case oStrictHostKeyChecking:
+ case oUpdateHostkeys:
return fmt_multistate_int(val, multistate_yesnoask);
case oControlMaster:
return fmt_multistate_int(val, multistate_controlmaster);