charon-cmd: Add --agent option to authenticate using ssh-agent(1)
authorTobias Brunner <tobias@strongswan.org>
Mon, 1 Apr 2013 12:51:09 +0000 (14:51 +0200)
committerTobias Brunner <tobias@strongswan.org>
Tue, 7 May 2013 12:08:51 +0000 (14:08 +0200)
commitee7b73832c97c12932641ba61c52211810afde00
treed635311b1e9dadc7d5c68a3513c0a206566dbee3
parent4dc50bf9de08e08abd6fbc85434c3f34a01e601f
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.
src/charon-cmd/cmd/cmd_connection.c
src/charon-cmd/cmd/cmd_creds.c
src/charon-cmd/cmd/cmd_options.c
src/charon-cmd/cmd/cmd_options.h