diff options
Diffstat (limited to 'agent/call-pinentry.c')
-rw-r--r-- | agent/call-pinentry.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/agent/call-pinentry.c b/agent/call-pinentry.c index f584ee0ae..9845a0358 100644 --- a/agent/call-pinentry.c +++ b/agent/call-pinentry.c @@ -475,6 +475,21 @@ start_pinentry (ctrl_t ctrl) } } + /* Tell the pinentry that we would prefer that the given character + is used as the invisible character by the entry widget. */ + if (opt.pinentry_invisible_char) + { + char *optstr; + if ((optstr = xtryasprintf ("OPTION invisible-char=%s", + opt.pinentry_invisible_char))) + { + assuan_transact (entry_ctx, optstr, NULL, NULL, NULL, NULL, NULL, + NULL); + /* We ignore errors because this is just a fancy thing and + older pinentries do not support this feature. */ + xfree (optstr); + } + } /* Tell the pinentry the name of a file it shall touch after having messed with the tty. This is optional and only supported by |