gpgme-tool: Return more detailed XML from KEYLIST
authorW. Trevor King <wking@tremily.us>
Fri, 28 Sep 2012 06:31:13 +0000 (08:31 +0200)
committerWerner Koch <wk@gnupg.org>
Fri, 28 Sep 2012 06:31:51 +0000 (08:31 +0200)
commit3d69b51f7f083193db28f364da4590c33b5e44e6
treee3d351c9797feb66e5af2f1dcbf17df89723f4bc
parentdda3702a9024a08da7bb949e15b63a47d23d59f5
gpgme-tool: Return more detailed XML from KEYLIST

src/gpgme-tool.c (cmd_keylist): Convert output from a list of
to more detailed XML.
(xml_preamble1, xml_preamble2, xml_end): Make global.
(result_add_protocol, result_add_validity): New functions for
generating XML from GPGME types.
(result_add_string): Treat NULL strings as "".
(result_xml_tag_data): Make 'data' a 'const char' so we can use the
value returned by gpgme_get_protocol_name directly.
--

This is a first pass at returning most of the gpgme_key_t data from the
KEYLIST call.

Signed-off-by: W. Trevor King <wking@tremily.us>
src/gpgme-tool.c