aboutsummaryrefslogtreecommitdiffstats
path: root/sm/passphrase.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2016-11-05Change all http://www.gnu.org in license notices to https://Werner Koch1-1/+1
--
2016-03-07sm: Implement pinentry loopback and reading passphrases from fd.Justus Winter1-0/+90
* doc/gpgsm.texi: Document '--pinentry-mode' and '--passphrase-fd'. * sm/Makefile.am (gpgsm_SOURCES): Add new files * sm/call-agent.c (struct default_inq_parm_s): New definition. (start_agent): Pass in the pinentry mode. (default_inq_cb): Handle 'PASSPHRASE' and 'NEW_PASSPHRASE' inquiries. Adapt all call sites to the new callback cookie. * sm/gpgsm.c (cmd_and_opt_values): Add new values. (opts): Add new options. (main): Handle new options. * sm/gpgsm.h (struct opt): Add field 'pinentry_mode'. * sm/passphrase.c: New file. * sm/passphrase.h: Likewise. GnuPG-bug-id: 1970 Signed-off-by: Justus Winter <[email protected]>