summaryrefslogtreecommitdiffstats
path: root/g10/keydb.h
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2021-12-20 17:08:17 +0100
committerWerner Koch <wk@gnupg.org>2021-12-20 19:34:34 +0100
commitace15e1b09dc9fc83d71faeeb7805802ed5bcc82 (patch)
treefdc3d9b2a0e5246a36012ec7cc7fc97cff3a9bd2 /g10/keydb.h
parentcommon: Add set_membuf_err. (diff)
downloadgnupg2-ace15e1b09dc9fc83d71faeeb7805802ed5bcc82.tar.xz
gnupg2-ace15e1b09dc9fc83d71faeeb7805802ed5bcc82.zip
gpg: Allow passing a keygrip as description to pinentry.
* g10/keydb.h (FORMAT_KEYDESC_KEYGRIP): New. * g10/passphrase.c (gpg_format_keydesc): Add new mode. Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'g10/keydb.h')
-rw-r--r--g10/keydb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/g10/keydb.h b/g10/keydb.h
index 806b9303b..a91309a5b 100644
--- a/g10/keydb.h
+++ b/g10/keydb.h
@@ -316,6 +316,7 @@ void emit_status_need_passphrase (ctrl_t ctrl, u32 *keyid,
#define FORMAT_KEYDESC_IMPORT 1
#define FORMAT_KEYDESC_EXPORT 2
#define FORMAT_KEYDESC_DELKEY 3
+#define FORMAT_KEYDESC_KEYGRIP 4
char *gpg_format_keydesc (ctrl_t ctrl,
PKT_public_key *pk, int mode, int escaped);