charon-cmd: Add --agent option to authenticate using ssh-agent(1)

The socket path is read from the SSH_AUTH_SOCK environment variable.
So using this with sudo might require the -E command line (or an appropriate
sudoers config) to preserve the environment.
This commit is contained in:
Tobias Brunner
2013-05-07 14:08:51 +02:00
parent 4dc50bf9de
commit ee7b73832c
4 changed files with 72 additions and 0 deletions
+1
View File
@@ -387,6 +387,7 @@ METHOD(cmd_connection_t, handle, bool,
this->identity = arg;
break;
case CMD_OPT_RSA:
case CMD_OPT_AGENT:
this->key_seen = TRUE;
break;
case CMD_OPT_LOCAL_TS: