core: Support GPGME_AUDITLOG_DIAG for gpgsm.
authorWerner Koch <wk@gnupg.org>
Tue, 19 Mar 2019 18:53:22 +0000 (19:53 +0100)
committerWerner Koch <wk@gnupg.org>
Tue, 19 Mar 2019 18:53:22 +0000 (19:53 +0100)
commitdd21ec997cf4b6ba18538c63c728478110ad1f60
treeb303a514684047aa8d0fb76314d9dce822d6d13d
parentc4cc47ee8f0bedc58e58ab416689d7014b0df2e7
core: Support GPGME_AUDITLOG_DIAG for gpgsm.

* src/engine-gpgsm.c (struct engine_gpgsm): Add fields diag_cb and
diagnostics.
(close_notify_handler): Close the diag fd on status fd close.
Handle diag close.
(gpgsm_cancel): Handle diag.
(gpgsm_release): Free DIAGNOSTICS.
(gpgsm_new): Support the diag feature.
(start): Set a handler for the diag fd.
(gpgsm_getauditlog): Support GPGME_AUDITLOG_DIAG.
--

Co-authored-by: Andre Heinecke <aheinecke@gnupg.org>
Signed-off-by: Werner Koch <wk@gnupg.org>
src/engine-gpgsm.c