From b159b2eddd9df5df6cc8f29bd999cf1603c56991 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Thu, 28 Feb 2019 13:59:04 +0100 Subject: [PATCH] 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 --- tests/run-import.c | 2 +- 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) {