Add "use-agent" PAM option.
authorNIIBE Yutaka <gniibe@fsij.org>
Fri, 11 Nov 2016 08:50:12 +0000 (17:50 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Fri, 11 Nov 2016 08:50:12 +0000 (17:50 +0900)
commit56b759da589bdfa3af31ed95839ba59f12e94fb7
tree4e1a43880980af0e6fb00dc80f1d6b7bbcc4eeb7
parent16912be8d2685e82a3fe40e94912e90cbb73e47b
Add "use-agent" PAM option.

* configure.ac (GNUPG_DEFAULT_GPGCONF): New.
* src/pam/pam_poldi.c (pam_poldi_options_cb): Support the option.
(pam_sm_authenticate): Call scd_connect with use_agent option.
* src/scd/scd.c (get_agent_socket_name): New.
(agent_scd_getinfo_socket_name): Revert the change of removing this
function.  Clean it up.
(get_scd_socket_from_agent): New.
(scd_connect): Clean up and support use_agent.
--

Using Poldi for su/sudo with gpg-agent is questionable usage.
However, for backward compatibility, the feature is back.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
NEWS
configure.ac
src/pam/auth-support/ctx.h
src/pam/pam_poldi.c
src/scd/scd.c
src/scd/scd.h