Home GnuPG
Diffusion GnuPG d9e2dfa4c585

agent: New option --newsymkey for GET_PASSPHRASE

Description

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>

Details

Provenance
wernerAuthored on Jul 8 2020, 2:20 PM
Parents
rG7b6071a45fbf: gpg: Fix flaw in symmetric algorithm selection in mixed mode.
Branches
Unknown
Tags
Unknown