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>
This commit is contained in:
Werner Koch 2019-02-28 13:59:04 +01:00
parent 4a117859e7
commit b159b2eddd
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B
2 changed files with 4 additions and 3 deletions

View File

@ -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);
}

View File

@ -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)
{