From c28ebca9f2e21344d68e9fdcec60553f225c2e54 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sat, 6 Oct 2012 09:33:30 -0400 Subject: [PATCH] gpgme-tool: Fix chain_id -> chain-id in KEYLIST XML. [[PGP Signed Part:Undecided]] src/gpgme-tool.c (cmd_keylist): Use instead of . -- All the other tags map struct attribute underscores to hyphens, so fixing follows the priciple of least surprise. Signed-off-by: W. Trevor King --- src/gpgme-tool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gpgme-tool.c b/src/gpgme-tool.c index 23122e8..d37088c 100644 --- a/src/gpgme-tool.c +++ b/src/gpgme-tool.c @@ -2970,7 +2970,7 @@ cmd_keylist (assuan_context_t ctx, char *line) result_add_string (&state, "serial", key->issuer_serial); result_add_string (&state, "name", key->issuer_name); result_xml_tag_end (&state); /* issuer */ - result_add_string (&state, "chain_id", key->chain_id); + result_add_string (&state, "chain-id", key->chain_id); result_add_validity (&state, "owner-trust", key->owner_trust); result_xml_tag_start (&state, "subkeys", NULL); subkey = key->subkeys; -- 2.26.2