Home GnuPG
Diffusion GnuPG 69e0b080f06b

agent: If a Label is make sure that label is part of the prompt.

Description

agent: If a Label is make sure that label is part of the prompt.

* agent/findkey.c (has_comment_expando): New.
(agent_key_from_file): Modify DESC_TEXT.

A Label entry in the keyfile is always set manually and thus we can
assume that the user wants to have this label in the prompt. In case
the prompt template does not demand a comment this patch appends a
comment to thhe template. This is a common case for on-disk keys used
by gpg.

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

Details

Provenance
wernerAuthored on May 7 2019, 11:50 AM
Parents
rG538853780641: agent: Allow the use of "Label:" in a key file.
Branches
Unknown
Tags
Unknown