agent: New option --newsymkey for GET_PASSPHRASE
* agent/call-pinentry.c (do_getpin): New. (agent_askpin): Use do_getpin. (agent_get_passphrase): Add arg pininfo. Use do_getpin. * agent/genkey.c (check_passphrase_constraints): New arg no_empty. * agent/command.c (reenter_passphrase_cmp_cb): New. (cmd_get_passphrase): Add option --newsymkey.
This new option allows to present a passphrase with the usual repeat
box as it is used by gpg-agent's internal key generation.
Backported-from-master: eace4bbe1ded8b01f9ad52ebc1871f2fd13c3a08
- Signed-off-by: Werner Koch <wk@gnupg.org>