summaryrefslogtreecommitdiffstats
path: root/sshconnect.h
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2020-12-22 01:15:22 +0100
committerDamien Miller <djm@mindrot.org>2020-12-22 05:43:59 +0100
commitda4bf0db942b5f0278f33238b86235e5813d7a5a (patch)
treed0260f5cd38d2fb4263aeca21a89be38afbba9b4 /sshconnect.h
parentupstream: move subprocess() from auth.c to misc.c (diff)
downloadopenssh-da4bf0db942b5f0278f33238b86235e5813d7a5a.tar.xz
openssh-da4bf0db942b5f0278f33238b86235e5813d7a5a.zip
upstream: add a ssh_config KnownHostsCommand that allows the client
to obtain known_hosts data from a command in addition to the usual files. The command accepts bunch of %-expansions, including details of the connection and the offered server host key. Note that the command may be invoked up to three times per connection (see the manpage for details). ok markus@ OpenBSD-Commit-ID: 2433cff4fb323918ae968da6ff38feb99b4d33d0
Diffstat (limited to 'sshconnect.h')
-rw-r--r--sshconnect.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sshconnect.h b/sshconnect.h
index 161056b4d..f518a9a13 100644
--- a/sshconnect.h
+++ b/sshconnect.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: sshconnect.h,v 1.45 2020/12/20 23:40:19 djm Exp $ */
+/* $OpenBSD: sshconnect.h,v 1.46 2020/12/22 00:15:23 djm Exp $ */
/*
* Copyright (c) 2000 Markus Friedl. All rights reserved.
@@ -88,3 +88,7 @@ int ssh_local_cmd(const char *);
void maybe_add_key_to_agent(const char *, struct sshkey *,
const char *, const char *);
+
+void load_hostkeys_command(struct hostkeys *, const char *,
+ const char *, const struct ssh_conn_info *,
+ const struct sshkey *, const char *);