Home GnuPG
Diffusion GnuPG eace4bbe1ded

agent: New option --newsymkey for GET_PASSPHRASE

Description

agent: New option --newsymkey for GET_PASSPHRASE

* agent/call-pinentry.c (agent_get_passphrase): Add arg pininfo.
* 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.

  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

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