diff options
author | Werner Koch <wk@gnupg.org> | 2019-02-28 13:59:04 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2019-02-28 14:01:47 +0100 |
commit | b159b2eddd9df5df6cc8f29bd999cf1603c56991 (patch) | |
tree | c9d485754f59107c94e50dd6eb07214c00595830 | |
parent | 4a117859e7a512458ab78cfedfae0372805196b1 (diff) | |
download | gpgme-b159b2eddd9df5df6cc8f29bd999cf1603c56991.tar.gz |
tests: Let run-verify print the de-vs flag.
* tests/run-verify.c (print_result): Chack is_de_vs.
* tests/run-import.c (main): Fix bad parameter for format string.
Signed-off-by: Werner Koch <wk@gnupg.org>
-rw-r--r-- | tests/run-import.c | 2 | ||||
-rw-r--r-- | tests/run-verify.c | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/tests/run-import.c b/tests/run-import.c index d98871c3..f464eb1d 100644 --- a/tests/run-import.c +++ b/tests/run-import.c @@ -135,7 +135,7 @@ main (int argc, char **argv) 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); + printf ("\nDiagnostic output:\n%.*s\n", (int)len, buf); free (buf); } diff --git a/tests/run-verify.c b/tests/run-verify.c index 5e3d9cb4..83a6533a 100644 --- a/tests/run-verify.c +++ b/tests/run-verify.c @@ -159,9 +159,10 @@ print_result (gpgme_verify_result_t result) sig->pka_trust == 0? "n/a" : sig->pka_trust == 1? "bad" : sig->pka_trust == 2? "okay": "RFU"); - printf (" other flags:%s%s\n", + printf (" other flags:%s%s%s\n", sig->wrong_key_usage? " wrong-key-usage":"", - sig->chain_model? " chain-model":"" + sig->chain_model? " chain-model":"", + sig->is_de_vs? " de-vs":"" ); for (nt = sig->notations; nt; nt = nt->next) { |