[git] GPGME - branch, master, updated. gpgme-1.12.0-122-gce327f9
[email protected] (by Andre Heinecke) Tue, 15 Jan 2019 08:37:04 +0100
| Newsgroups | gmane.comp.encryption.gpg.cvs |
|---|---|
| Message-ID | <[email protected]> |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GnuPG Made Easy".
The branch, master has been updated
via ce327f994a2888b807b63cf202ddcecc3fb9c685 (commit)
from 66376f3e206a1aa791d712fb8577bb3490268f60 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit ce327f994a2888b807b63cf202ddcecc3fb9c685
Author: Andre Heinecke <[email protected]>
Date: Tue Jan 15 08:36:26 2019 +0100
tests: Add diagnostic example to run-import.c
* tests/run-import.c (main): Show diagnostics in verbose mode.
diff --git a/tests/run-import.c b/tests/run-import.c
index a3c52ac..d98871c 100644
--- a/tests/run-import.c
+++ b/tests/run-import.c
@@ -125,6 +125,20 @@ main (int argc, char **argv)
gpgme_data_release (data);
}
+ if (verbose)
+ {
+ gpgme_data_t log;
+ char *buf;
+ size_t len;
+
+ gpgme_data_new (&log);
+ err = gpgme_op_getauditlog (ctx, log, GPGME_AUDITLOG_DIAG);
+ fail_if_err (err);
+ buf = gpgme_data_release_and_get_mem (log, &len);
+ printf ("\nDiagnostic output:\n%.*s\n", len, buf);
+ free (buf);
+ }
+
gpgme_release (ctx);
return 0;
}
-----------------------------------------------------------------------
Summary of changes:
tests/run-import.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)
hooks/post-receive
--
GnuPG Made Easy
http://git.gnupg.org