aboutsummaryrefslogtreecommitdiffstats
path: root/lang/cpp/src/interfaces
diff options
context:
space:
mode:
authorAndre Heinecke <[email protected]>2016-08-11 15:22:35 +0000
committerAndre Heinecke <[email protected]>2016-08-11 16:00:14 +0000
commit8c5abc8d932affab4bc79a85e3f98f6f6b982ae8 (patch)
tree447e9bb4bed56935501ac96f08f0f86cd2033e69 /lang/cpp/src/interfaces
parentdoc: Get rid of version.texi (diff)
downloadgpgme-8c5abc8d932affab4bc79a85e3f98f6f6b982ae8.tar.gz
gpgme-8c5abc8d932affab4bc79a85e3f98f6f6b982ae8.zip
Qt: Add KeyForMailboxJob
* lang/qt/src/job.cpp: Include moc and make subclass. * lang/qt/src/keyformailboxjob.h, lang/qt/src/qgpgmekeyformailboxjob.cpp, lang/qt/src/qgpgmekeyformailboxjob.h: New. * lang/qt/tests/run-keyformailboxjob.cpp: New manual test. * lang/qt/tests/Makefile.am: Add run-keyformailboxjob. * lang/qt/src/Makefile.am: Update accordingly. * lang/qt/src/protocol.h, lang/qt/src/protocol_p.h: Add keyformailboxjob. -- The KeyForMailboxjob can be used to determine the best key to use to encrypt something to a given mail address.
Diffstat (limited to 'lang/cpp/src/interfaces')
0 files changed, 0 insertions, 0 deletions
ad): New. -- This is a writen style variant for gpgme_io_write. It is often easier to use this one in passphrase and edit callbacks. 2013-02-06Use gpg_error_from_syserror instead of directly accessing errno.Werner Koch27-135/+133 -- Also fixed a couple of minor thing; e.g. save the error before calling cleanup functions. Do not save the errno if only free is called in between. 2012-11-16Improve parsing of the GIT revision number.Werner Koch1-6/+5 * configure.ac (git_revision): Use git rev-parse. 2012-11-16Fix non-portable use of chmod in autogen.sh.Werner Koch1-2/+2 * autogen.sh: Remove option -c from chmod. 2012-11-15Make _gpgme_encode_percent_string work for memory buffers.Werner Koch1-1/+1 * src/conversion.c (D_gpgme_encode_percent_string): Remove stray semicolon. Reported by Xi Wang. -- Obviously this function is not used with a supplied LEN argument != 0. 2012-10-24Make local variables configure hack more robustWerner Koch1-1/+1 * configure.ac (emacs_local_vars_begin): Use extra m4 quoting so that newer Emscasen won't take it up as Local Variables for this file. 2012-10-24Fix ttyname problem on Android.Werner Koch3-4/+27 * configure.ac: Define macro and conditional HAVE_ANDROID_SYSTEM. * m4/gnupg-ttyname.m4: Force use of replacement on Android. * src/ttyname_r.c: Ditto. -- Android's bionic lib has no working ttyname_r() nor ttyname(). Using them anyway will print FIX ME! implement ttyname_r() bionic/libc/bionic/stubs.c:466 Thus we force the use of our replacement code which simply return "/dev/tty". 2012-10-24tests: Adhere to the docs and call gpgme_check_version.Werner Koch1-0/+1 * tests/t-engine-info.c: Call gpgme_check_version. 2012-10-19Trace the use of GPG_ERR_INV_ENGINE.Werner Koch20-37/+65 * src/debug.h: Include "gpgme.h" (_gpgme_trace_gpgme_error): New. (trace_gpg_error): New macro. Use it in all files where we return GPG_ERR_INV_ENGINE; also "include debug.h" as needed. -- This is a pretty common error code but often it is hard to figure out the actual cause. With debug level 4 we now print the file name and line number where this error code is generated by gpgme. Along with the git revision printed in the first log lines, this should give us an easier way to track down the problems related to this error code. 2012-10-19Avoid warning about initialized but not used variableWerner Koch1-2/+3 * src/engine-gpgsm.c (gpgsm_set_fd): Do not set DIR if not needed. 2012-10-11gpgme-tool: Use membuf functions to build up strings.Werner Koch1-32/+159 * 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. 2012-10-11gpgme-tool: Change license from LPGLv2+ to GPLv3+Werner Koch2-5/+6 * src/gpgme-tool.c: Change license notice. -- gpgme-tool.c is a standalone program, thus it makes no sense to keep it under the LGPL. We already had the manual under GPLv3+. 2012-10-11gpgme-tool: escape special characters in output XML data (<, >, and &).W. Trevor King1-2/+67 [[PGP Signed Part:Undecided]] src/gpgme-tool.c (result_xml_escape_replacement, result_xml_escape): New. (result_xml_tag_data): Use result_xml_escape() to escape data. (result_add_error): Use unescaped < and >. -- This is a general solution for generating valid XML, but the specific output that inspired the change was from the KEYLIST command: <uid>William Trevor King <[email protected]></uid> Now the uids are properly escaped: <uid>William Trevor King &lt;[email protected]&gt;</uid> Signed-off-by: W. Trevor King <[email protected]> 2012-10-11gpgme-tool: Fix chain_id -> chain-id in KEYLIST XML.W. Trevor King1-1/+1 [[PGP Signed Part:Undecided]] src/gpgme-tool.c (cmd_keylist): Use <chain-id> instead of <chain_id>. -- All the other tags map struct attribute underscores to hyphens, so fixing <chain_id> follows the priciple of least surprise. Signed-off-by: W. Trevor King <[email protected]> 2012-09-28gpgme-tool: Return more detailed XML from KEYLISTW. Trevor King1-14/+120 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 <[email protected]> 2012-09-28gpgme-tool: Initialize input_fd and output_fdW. Trevor King1-0/+2 * src/gpgme-tool.c (gpgme_server): Initialize input_fd and output_fd. Signed-off-by: W. Trevor King <[email protected]> 2012-09-26gpgme-tool: Fix handling of file descriptorsWerner Koch1-16/+35 * src/gpgme-tool.c (server_reset_fds): Use close/CloseHandle instead of the assuan close functions. (_cmd_decrypt_verify, _cmd_sign_encrypt, cmd_verify, cmd_import) (cmd_export, cmd_genkey, cmd_getauditlog): Use SERVER object instead of assuan_get_*_fd functions. -- Although we used our own handlers for INPUT and OUTPUT, we still used assuan_get_input_fd, assuan_get_output_fd and their close functions. That clearly can't work because libassuan does not have any values for them.