summaryrefslogtreecommitdiff
path: root/readconf.c
diff options
context:
space:
mode:
authormarkus@openbsd.org <markus@openbsd.org>2016-05-04 12:21:53 +0000
committerDarren Tucker <dtucker@zip.com.au>2016-05-05 00:01:49 +1000
commitb02ad1ce9105bfa7394ac7590c0729dd52e26a81 (patch)
treeffd061ffac036e169402e36282e8b8f1dd8566cf /readconf.c
parent910e59bba09ac309d78ce61e356da35292212935 (diff)
upstream commit
IdentityAgent for specifying specific agent sockets; ok djm@ Upstream-ID: 3e6a15eb89ea0fd406f108826b7dc7dec4fbfac1
Diffstat (limited to 'readconf.c')
-rw-r--r--readconf.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/readconf.c b/readconf.c
index b348c9683..26436b3ac 100644
--- a/readconf.c
+++ b/readconf.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: readconf.c,v 1.252 2016/04/15 00:30:19 djm Exp $ */ 1/* $OpenBSD: readconf.c,v 1.253 2016/05/04 12:21:53 markus Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -147,7 +147,7 @@ typedef enum {
147 oPasswordAuthentication, oRSAAuthentication, 147 oPasswordAuthentication, oRSAAuthentication,
148 oChallengeResponseAuthentication, oXAuthLocation, 148 oChallengeResponseAuthentication, oXAuthLocation,
149 oIdentityFile, oHostName, oPort, oCipher, oRemoteForward, oLocalForward, 149 oIdentityFile, oHostName, oPort, oCipher, oRemoteForward, oLocalForward,
150 oCertificateFile, oAddKeysToAgent, 150 oCertificateFile, oAddKeysToAgent, oIdentityAgent,
151 oUser, oEscapeChar, oRhostsRSAAuthentication, oProxyCommand, 151 oUser, oEscapeChar, oRhostsRSAAuthentication, oProxyCommand,
152 oGlobalKnownHostsFile, oUserKnownHostsFile, oConnectionAttempts, 152 oGlobalKnownHostsFile, oUserKnownHostsFile, oConnectionAttempts,
153 oBatchMode, oCheckHostIP, oStrictHostKeyChecking, oCompression, 153 oBatchMode, oCheckHostIP, oStrictHostKeyChecking, oCompression,
@@ -217,6 +217,7 @@ static struct {
217 { "identitiesonly", oIdentitiesOnly }, 217 { "identitiesonly", oIdentitiesOnly },
218 { "certificatefile", oCertificateFile }, 218 { "certificatefile", oCertificateFile },
219 { "addkeystoagent", oAddKeysToAgent }, 219 { "addkeystoagent", oAddKeysToAgent },
220 { "identityagent", oIdentityAgent },
220 { "hostname", oHostName }, 221 { "hostname", oHostName },
221 { "hostkeyalias", oHostKeyAlias }, 222 { "hostkeyalias", oHostKeyAlias },
222 { "proxycommand", oProxyCommand }, 223 { "proxycommand", oProxyCommand },
@@ -1636,6 +1637,10 @@ parse_keytypes:
1636 multistate_ptr = multistate_yesnoaskconfirm; 1637 multistate_ptr = multistate_yesnoaskconfirm;
1637 goto parse_multistate; 1638 goto parse_multistate;
1638 1639
1640 case oIdentityAgent:
1641 charptr = &options->identity_agent;
1642 goto parse_string;
1643
1639 case oDeprecated: 1644 case oDeprecated:
1640 debug("%s line %d: Deprecated option \"%s\"", 1645 debug("%s line %d: Deprecated option \"%s\"",
1641 filename, linenum, keyword); 1646 filename, linenum, keyword);
@@ -1814,6 +1819,7 @@ initialize_options(Options * options)
1814 options->local_command = NULL; 1819 options->local_command = NULL;
1815 options->permit_local_command = -1; 1820 options->permit_local_command = -1;
1816 options->add_keys_to_agent = -1; 1821 options->add_keys_to_agent = -1;
1822 options->identity_agent = NULL;
1817 options->visual_host_key = -1; 1823 options->visual_host_key = -1;
1818 options->ip_qos_interactive = -1; 1824 options->ip_qos_interactive = -1;
1819 options->ip_qos_bulk = -1; 1825 options->ip_qos_bulk = -1;
@@ -2463,6 +2469,7 @@ dump_client_config(Options *o, const char *host)
2463 dump_cfg_string(oHostKeyAlgorithms, o->hostkeyalgorithms); 2469 dump_cfg_string(oHostKeyAlgorithms, o->hostkeyalgorithms);
2464 dump_cfg_string(oHostKeyAlias, o->host_key_alias); 2470 dump_cfg_string(oHostKeyAlias, o->host_key_alias);
2465 dump_cfg_string(oHostbasedKeyTypes, o->hostbased_key_types); 2471 dump_cfg_string(oHostbasedKeyTypes, o->hostbased_key_types);
2472 dump_cfg_string(oIdentityAgent, o->identity_agent);
2466 dump_cfg_string(oKbdInteractiveDevices, o->kbd_interactive_devices); 2473 dump_cfg_string(oKbdInteractiveDevices, o->kbd_interactive_devices);
2467 dump_cfg_string(oKexAlgorithms, o->kex_algorithms ? o->kex_algorithms : KEX_CLIENT_KEX); 2474 dump_cfg_string(oKexAlgorithms, o->kex_algorithms ? o->kex_algorithms : KEX_CLIENT_KEX);
2468 dump_cfg_string(oLocalCommand, o->local_command); 2475 dump_cfg_string(oLocalCommand, o->local_command);