aboutsummaryrefslogtreecommitdiffstats
path: root/src/key.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2012-10-11 15:02:50 +0000
committerWerner Koch <[email protected]>2012-10-11 15:02:50 +0000
commite11e7fc5586613525035c3358e15ae24accb96ea (patch)
tree46e496deef00ae7f7f1785f640ba06a11afa933c /src/key.c
parentgpgme-tool: Change license from LPGLv2+ to GPLv3+ (diff)
downloadgpgme-e11e7fc5586613525035c3358e15ae24accb96ea.tar.gz
gpgme-e11e7fc5586613525035c3358e15ae24accb96ea.zip
gpgme-tool: Use membuf functions to build up strings.
* src/gpgme-tool.c (clear_membuf, init_membuf, put_membuf) (put_membuf_str, get_membuf, peek_membuf): Add membuf functions. Take from GnuPG master's common/membuf.[ch] and patch for our use. (result_xml_escape): Rewrite using new functions. -- First counting, then allocating, and finally copying data is prone to errors. We better use the membuf functions which make it much easier.
Diffstat (limited to 'src/key.c')
0 files changed, 0 insertions, 0 deletions