mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
conf: New option --status-fd.
* tools/gpgconf.c (oStatusFD): New const. (opts): New option --status-fd. (statusfp): New var. (set_status_fd): New. (gpgconf_write_status): New. (gpgconf_failure): New. (main): Set status fd and replace exit by gpgconf_failure. * tools/gpgconf-comp.c: Repalce exit by gpgconf_failure. (gc_process_gpgconf_conf): Print a few warning status messages. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
d74c40cef0
commit
482e000b8a
5 changed files with 137 additions and 18 deletions
|
@ -36,6 +36,10 @@ struct
|
|||
} opt;
|
||||
|
||||
|
||||
/*-- gpgconf.c --*/
|
||||
void gpgconf_write_status (int no, const char *format,
|
||||
...) GPGRT_ATTR_PRINTF(2,3);
|
||||
void gpgconf_failure (gpg_error_t err) GPGRT_ATTR_NORETURN;
|
||||
|
||||
/*-- gpgconf-comp.c --*/
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue