agent: Tell the Pinentry the client's pid.
authorWerner Koch <wk@gnupg.org>
Fri, 3 Feb 2017 16:13:08 +0000 (17:13 +0100)
committerWerner Koch <wk@gnupg.org>
Fri, 3 Feb 2017 16:13:08 +0000 (17:13 +0100)
commit309f464a5952c7d7504b875bf4853914b1242346
tree7c81ec6fbd9c8f02bfcbef9dbcdd3f9323654b92
parent7052a0d77cf8f3a445b252a809d29be445788625
agent: Tell the Pinentry the client's pid.

* configure.ac: Check for SO_PEERCRED et al.
* agent/agent.h (server_control_s): Add field 'client_pid'.
* agent/command.c (start_command_handler): Set CLIENT_PID.
* agent/command-ssh.c (get_client_pid): New.
(start_command_handler_ssh): Set CLIENT_PID.
* agent/call-pinentry.c (start_pinentry): Tell Pinentry the client-pid.

Signed-off-by: Werner Koch <wk@gnupg.org>
agent/agent.h
agent/call-pinentry.c
agent/command-ssh.c
agent/command.c
configure.ac