From 14aa797bb8f3f7d3f4ef66b8fcdac7439000b49a Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 13 Jan 2020 15:20:49 +0100 Subject: 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 --- common/sysutils.h | 1 + 1 file changed, 1 insertion(+) (limited to 'common/sysutils.h') diff --git a/common/sysutils.h b/common/sysutils.h index 009b14b4a..c51bf7a9f 100644 --- a/common/sysutils.h +++ b/common/sysutils.h @@ -61,6 +61,7 @@ int translate_sys2libc_fd_int (int fd, int for_write); int check_special_filename (const char *fname, int for_write, int notranslate); FILE *gnupg_tmpfile (void); void gnupg_reopen_std (const char *pgmname); +void gnupg_inhibit_set_foregound_window (int yes); void gnupg_allow_set_foregound_window (pid_t pid); int gnupg_remove (const char *fname); gpg_error_t gnupg_rename_file (const char *oldname, const char *newname, -- cgit v1.2.3