The unified diff between revisions [8a7db1e2..] and [78d02301..] is displayed below. It can also be downloaded as a raw diff.
This diff has been restricted to the following files: 'cli-runopts.c'
#
#
# patch "cli-runopts.c"
# from [57097090db0a8b731fbbad99f81e22090fc52b92]
# to [8bfbc2e5153b38baf7c63678e3a842740a57618b]
#
============================================================
--- cli-runopts.c 57097090db0a8b731fbbad99f81e22090fc52b92
+++ cli-runopts.c 8bfbc2e5153b38baf7c63678e3a842740a57618b
@@ -56,6 +56,9 @@ static void printhelp() {
#ifdef ENABLE_CLI_PUBKEY_AUTH
"-i <identityfile> (multiple allowed)\n"
#endif
+#ifdef ENABLE_CLI_AGENTFWD
+ "-A Enable agent auth forwarding\n"
+#endif
#ifdef ENABLE_CLI_LOCALTCPFWD
"-L <listenport:remotehost:remoteport> Local port forwarding\n"
"-g Allow remote hosts to connect to forwarded ports\n"
@@ -109,6 +112,10 @@ void cli_getopts(int argc, char ** argv)
#ifdef ENABLE_CLI_REMOTETCPFWD
cli_opts.remotefwds = NULL;
#endif
+#ifdef ENABLE_CLI_AGENTFWD
+ cli_opts.agent_fwd = 0;
+ cli_opts.agent_keys_loaded = 0;
+#endif
/* not yet
opts.ipv4 = 1;
opts.ipv6 = 1;
@@ -214,6 +221,11 @@ void cli_getopts(int argc, char ** argv)
case 'K':
next = &keepalive_arg;
break;
+#ifdef ENABLE_CLI_AGENTFWD
+ case 'A':
+ cli_opts.agent_fwd = 1;
+ break;
+#endif
#ifdef DEBUG_TRACE
case 'v':
debug_trace = 1;
@@ -344,6 +356,7 @@ static void loadidentityfile(const char*
nextkey->key = key;
nextkey->next = cli_opts.privkeys;
nextkey->type = keytype;
+ nextkey->source = SIGNKEY_SOURCE_RAW_FILE;
cli_opts.privkeys = nextkey;
}
}