Home GnuPG
Diffusion GPGME 3d69b51f7f08

gpgme-tool: Return more detailed XML from KEYLIST
3d69b51f7f08Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

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>

Details

Provenance
W. Trevor King <wking@tremily.us>Authored on Sep 28 2012, 8:31 AM
wernerCommitted on Sep 28 2012, 8:31 AM
Parents
rMdda3702a9024: gpgme-tool: Initialize input_fd and output_fd
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rM3d69b51f7f08: gpgme-tool: Return more detailed XML from KEYLIST (authored by W. Trevor King <wking@tremily.us>).Sep 28 2012, 8:31 AM