Werner Koch
aad94cb7c3
core: Add gpgme_op_query_swdb and helper.
...
* src/gpgme.h.in (gpgme_query_swdb_result_t): New.
(gpgme_op_query_swdb): New.
(gpgme_op_query_swdb_result): New.
* src/libgpgme.vers, src/gpgme.def: Add the two new functions.
* src/queryswdb.c: New.
* src/Makefile.am (main_sources): Add new file.
* src/context.h (OPDATA_QUERY_SWDB): New.
* src/engine-backend.h (struct engine_ops): Add field 'query_swdb'.
Adjust all initializer.
* src/engine.c (_gpgme_engine_op_query_swdb): New.
* src/engine-gpgconf.c (parse_swdb_line): New.
(gpgconf_query_swdb): New.
(_gpgme_engine_ops_gpgconf): Register that function.
* src/util.h (GPG_ERR_TOO_OLD): Define for older libgpg-error.
(GPG_ERR_ENGINE_TOO_OLD): Ditto.
* tests/run-swdb.c: New.
* tests/Makefile.am (noinst_PROGRAMS): Add new debug tool.
Signed-off-by: Werner Koch <wk@gnupg.org>
2016-11-03 17:32:30 +01:00
Werner Koch
ab6e718327
Make gpgconf engine work again - fixes 02ba35c1
.
...
* src/gpgconf.c: Remove ENABLE_GPGCONF and move prototypes to ...
* src/engine-backend.h: ... here.
--
gpgconf is a required part for gpgme.
2014-01-07 17:59:59 +01:00
Werner Koch
bd24feaa86
Trace the use of GPG_ERR_INV_ENGINE.
...
* 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-19 11:23:39 +02:00
Werner Koch
139e798c87
Remove all trailing whitespace from source files
...
--
Command used: sed -i 's,[ \t]*$,,' FILE
2012-09-25 15:29:49 +02:00
Marcus Brinkmann
b34add3fe4
Check context pointers for null pointer on entry points.
2011-05-26 16:01:26 +02:00
Marcus Brinkmann
eff0b7766a
2010-11-23 Marcus Brinkmann <mb@g10code.com>
...
* gpgme.h.in (gpgme_conf_arg_new): Make VALUE arg const void *.
* gpgconf.c (_gpgme_conf_arg_new): Likewise.
(gpgme_conf_arg_new): Likewise.
* engine-gpgconf.c (_gpgme_conf_arg_new): Likewise.
(gpgconf_write): Remove debug hack.
2010-11-23 09:46:52 +00:00
Werner Koch
2cd1218b93
Small portability fix
2009-12-02 09:49:56 +00:00
Marcus Brinkmann
66d0fa1973
008-11-03 Marcus Brinkmann <marcus@g10code.com>
...
* configure.ac: Replace gpgme paths with src.
* gpgme: Move to ...
* src: ... this new directory.
assuan/
2008-11-03 Marcus Brinkmann <marcus@g10code.com>
* Makefile.am (INCLUDES): Replace gpgme path with src.
tests/
2008-11-03 Marcus Brinkmann <marcus@g10code.com>
* gpgsm/Makefile.am (INCLUDES, LDADD): Replace gpgme path with src.
* gpg/Makefile.am (INCLUDES, LDADD, t_thread1_LDADD): Likewise.
* Makefile.am (LDADD): Likewise.
2008-11-03 17:24:09 +00:00