core: Allow logging to an estream.

Authored by werner on Wed, Dec 5, 6:29 PM.

Description

core: Allow logging to an estream.

* src/logging.c (set_file_fd): Add and use new arg 'stream'.
(_gpgrt_log_set_sink): Implement setting an estream sink.
* tests/t-logging.c: New test.
* tests/Makefile.am (TESTS): Add test.
  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Committed
wernerWed, Dec 5, 6:29 PM
Parents
rE793838fd859a: tests: Check print arguments of t-common functions.
Branches
Unknown
Tags
Unknown