mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
gpg,sm: Avoid useless ASFW diagnostic in loopback mode.
* common/sysutils.c (inhibit_set_foregound_window): New var. (gnupg_inhibit_set_foregound_window): New func. (gnupg_allow_set_foregound_window): Use var. * g10/gpg.c (main): Inhibit in loopback mode. * sm/gpgsm.c (main): Ditto. -- Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
2b843be5ac
commit
14aa797bb8
4 changed files with 39 additions and 0 deletions
|
@ -4167,6 +4167,15 @@ main (int argc, char **argv)
|
|||
opt.passphrase_repeat = 0;
|
||||
}
|
||||
|
||||
/* If no pinentry is expected shunt
|
||||
* gnupg_allow_set_foregound_window to avoid useless error
|
||||
* messages on Windows. */
|
||||
if (opt.pinentry_mode != PINENTRY_MODE_ASK)
|
||||
{
|
||||
gnupg_inhibit_set_foregound_window (1);
|
||||
}
|
||||
|
||||
|
||||
if (cmd == aGPGConfTest)
|
||||
g10_exit(0);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue