aboutsummaryrefslogtreecommitdiffstats
path: root/gpgme (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Fixed a problem in the W32 gpgme->gpgsm communication.Werner Koch2007-09-283-12/+34
|
* Fixed the external event loop for glib.Werner Koch2007-09-289-34/+119
| | | | | Add a bit more tracing.
* 2007-09-28 Marcus Brinkmann <[email protected]>Marcus Brinkmann2007-09-274-103/+232
| | | | | | * kdpipeiodevice.moc, w32-qt-io.cpp, kdpipeiodevice.cpp: New versions from Frank Osterfeld.
* 2007-09-27 Marcus Brinkmann <[email protected]>Marcus Brinkmann2007-09-275-4/+20
| | | | | | | | | | | | | | | | | | | | | | * assuan-pipe-connect.c (pipe_connect_gpgme): Do not close process handle here. Use this function also on Unix systems. gpgme/ 2007-09-27 Marcus Brinkmann <[email protected]> * w32-glib-io.c (_gpgme_io_spawn), w32-qt-io.cpp (_gpgme_io_spawn), w32-io.c (_gpgme_io_spawn): Close the process handle, return 0. tests/ 2007-09-27 Marcus Brinkmann <[email protected]> * t-engine-info.c (check_engine_info): Fix debug output. * gpg/Makefile.am (tests_unix): New variable. (TESTS): Use it. * gpg/t-support.h (passphrase_cb) [HAVE_W32_SYSTEM]: Use WriteFile instead of write. * gpg/t-wait.c [HAVE_W32_SYSTEM]: Define sleep as _sleep.
* doc/Marcus Brinkmann2007-09-273-1/+9
| | | | | | | | | | | | | | 2007-09-27 Marcus Brinkmann <[email protected]> * gpgme.texi (Protocols and Engines): Document GPGME_PROTOCOL_UNKNOWN. gpgme/ 2007-09-27 Marcus Brinkmann <[email protected]> * gpgme.h (gpgme_protocol_t): Add GPGME_PROTOCOL_UNKNOWN. * gpgme.c (gpgme_get_protocol_name): Implement support for GPGME_PROTOCOL_UNKNOWN.
* 2007-09-27 Marcus Brinkmann <[email protected]>Marcus Brinkmann2007-09-272-0/+4
| | | | | * kdpipeiodevice.h: Fix last change.
* 2007-09-27 Marcus Brinkmann <[email protected]>Marcus Brinkmann2007-09-275-4/+10
| | | | | | | | | | | | * assuan-pipe-connect.c (pipe_connect_gpgme): Fix last change. gpgme/ 2007-09-27 Marcus Brinkmann <[email protected]> * w32-glib-io.c (_gpgme_io_pipe), w32-qt-io.c (_gpgme_io_pipe), w32-io.c (_gpgme_io_pipe), posix-io.c (_gpgme_io_pipe): Fix debug output.
* 2007-09-27 Marcus Brinkmann <[email protected]>Marcus Brinkmann2007-09-271-0/+1
| | | | | | * assuan-pipe-connect.c (pipe_connect_gpgme): New function, use it if _ASSUAN_IN_GPGME_BUILD_ASSUAN.
* 2007-09-25 Marcus Brinkmann <[email protected]>Marcus Brinkmann2007-09-253-0/+6
| | | | | * conversion.c, keylist.c: Include <sys/types.h>.
* 2007-09-25 Marcus Brinkmann <[email protected]>Marcus Brinkmann2007-09-254-1/+18
| | | | | | | | | * kdpipeiodevice.h: Use namespace _gpgme_. * kdpipeiodevice.cpp: Use namespace _gpgme_. [Q_OS_WIN32 && NOMINMAX]: Do not define NOMINMAX again. * w32-qt-io.cpp: Change namespace of KDPipeIODevice to _gpgme_::KDPipeIODevice.
* Fixed a name clash under W32Werner Koch2007-09-251-1/+1
|
* Bumbed version number (still svn, though)Werner Koch2007-09-171-1/+1
|
* Fixed a W32bug in rungpg.cWerner Koch2007-09-173-9/+22
|
* Fixed bug in gpgme_data_relase_and_get_mem.Werner Koch2007-09-143-2/+13
| | | | | Typo fixes.
* 2007-09-14 Marcus Brinkmann <[email protected]>Marcus Brinkmann2007-09-132-0/+5
| | | | | * gpgme.c (gpgme_release): Call gpgme_sig_notation_clear.
* 2007-09-13 Marcus Brinkmann <[email protected]>Marcus Brinkmann2007-09-132-3/+8
| | | | | | * rungpg.c (gpg_new): Handle return value of _gpgme_getenv (fixes small memory leak).
* 2007-09-07 Marcus Brinkmann <[email protected]>Marcus Brinkmann2007-09-073-4/+10
| | | | | | | | * Makefile.am (libgpgme_qt_la_SOURCES): Move moc_kdpipeiodevice.cpp to EXTRA_DIST, as this is only included by another file (it's more like a header file than a cpp file, but automake doesn't know that).
* 2007-09-07 Marcus Brinkmann <[email protected]>Marcus Brinkmann2007-09-075-20/+21
| | | | | | | | | | | | * configure.ac: Work around for missing Qt cross compilation support. Check for glib and qt only on w32 targets. gpgme/ 2007-09-07 Marcus Brinkmann <[email protected]> * w32-qt-io.cpp (_gpgme_io_spawn): Fix several cast errors and typos. * w32-io.c (_gpgme_io_write): Use TRACE_SYSRES instead of TRACE_SYS. (libgpgme_qt_la_LIBADD): Add QT4_CORE_LIBS, not QT4_CORE_LIB.
* 2007-09-07 Marcus Brinkmann <[email protected]>Marcus Brinkmann2007-09-0613-29/+1727
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * configure.ac: Check for C++, Qt and support --enable-w32-qt. * m4/pkg.m4: New file. gpgme/ 2007-09-07 Marcus Brinkmann <[email protected]> * kdpipeiodevice.h, kdpipeiodevice.cpp, moc_kdpipeiodevice.cpp, kdpipeiodevice.moc, w32-qt-io.c: New files. * Makefile.am (ltlib_gpgme_extra): Rename to ltlib_gpgme_glib. (ltlib_gpgme_qt): New variable. (lib_LTLIBRARIES): Add $(ltlib_gpgme_qt). (libgpgme_qt_la_SOURCES): New variable. (AM_CPPFLAGS): Add @QT4_CORE_INCLUDES@ (AM_CFLAGS): Add @QT4_CORE_CFLAGS@. (libgpgme_qt_la_LDFLAGS, libgpgme_qt_la_DEPENDENCIES) (libgpgme_qt_la_LIBADD): New variables. * sema.h (struct critsect_s): Rename "private" to "priv" to make C++ users happy. Change users. * posix-sema.c (_gpgme_sema_cs_enter, _gpgme_sema_cs_leave) (_gpgme_sema_cs_destroy): Likewise. * w32-sema.c (critsect_init, _gpgme_sema_cs_enter) (_gpgme_sema_cs_leave, _gpgme_sema_cs_destroy): Likewise. * w32-glib-io.c (gpgme_get_giochannel): Change return type to void*. (gpgme_get_fdptr): New function. * w32-io.c (gpgme_get_fdptr): New function * gpgme.def: Add gpgme_get_fdptr.
* 2007-08-22 Marcus Brinkmann <[email protected]>Marcus Brinkmann2007-08-222-13/+23
| | | | | | * w32-io.c (_gpgme_io_write): Return early if COUNT is zero. (writer): Remove superfluous check.
* 2007-08-20 Marcus Brinkmann <[email protected]>Marcus Brinkmann2007-08-202-1/+6
| | | | | * gpgme.h: Move include of gpg-error.h out of extern "C".
* Add new signature_t member chain_model.Werner Koch2007-08-073-6/+25
|
* Improved debug support: Assuan logging is now directed to the gpgme debugWerner Koch2007-08-027-17/+66
| | | | | | stream. Create processes detached.
* 2007-07-17 Marcus Brinkmann <[email protected]>Marcus Brinkmann2007-07-1718-1237/+1860
| | | | | | | | | | | | * debug.c:;5B Include <errno.h> and "debug.h". (_gpgme_debug): Save and restore ERRNO. (TOHEX): New macro. (_gpgme_debug_buffer): New function. * conversion.c, data-compat.c, data-mem.c, data.c, engine-gpgsm.c, gpgme.c, keylist.c, posix-io.c, rungpg.c, sign.c, version.c, w32-io.c, wait.c: Replace DEBUG macros by TRACE_* variants. In most of these files, add many more tracepoints.
* Fixed last change.Marcus Brinkmann2007-07-161-3/+3
|
* 2007-07-16 Marcus Brinkmann <[email protected]>Marcus Brinkmann2007-07-162-2/+8
| | | | | * engine-gpgsm.c (status_handler): Do not send BYE here.
* 2007-07-16 Marcus Brinkmann <[email protected]>Marcus Brinkmann2007-07-166-64/+197
| | | | | | | | | | | | | | | | | | | | | | * assuan/assuan-socket.c (_assuan_close): Always use close(). * assuan/assuan.h (_gpgme_io_close): New prototype. (close): New macro, define as _gpgme_io_close. gpgme/ 2007-07-16 Marcus Brinkmann <[email protected]> * w32-io.c (struct reader_context_s, struct writer_context_s): New members REFCOUNT. (create_reader, create_writer): Initialize C->refcount to 1. (destroy_reader, destroy_writer): Only destroy if C->refcount drops to 0. (find_reader, find_writer, kill_reader, kill_writer): Beautify. * priv-io.h (_gpgme_io_dup): New prototype. * posix-io.c (_gpgme_io_dup): New function. * w32-io.c (_gpgme_io_dup): Likewise. * w32-glib-io.c (_gpgme_io_dup): Likewise. * engine-gpgsm.c (start): Reverting to version 2007-07-10.
* 2007-07-13 Marcus Brinkmann <[email protected]>Marcus Brinkmann2007-07-134-5/+22
| | | | | | | | * data-user.c (user_read, user_write, user_seek): Set errno and return -1 instead returning the error code directly. * data-compat.c (old_user_seek): Likewise. * gpgme.c (gpgme_sig_notation_add): Return error properly.
* 2007-07-13 Marcus Brinkmann <[email protected]>Marcus Brinkmann2007-07-137-36/+30
| | | | | | | | | | * Revert the "close_notify_handler" returns int stuff. Always close in the _gpgme_io_close implementations. * engine-gpgsm.c (status_handler): Try to terminate the connection in case of error. * w32-io.c (_gpgme_io_read): Return C->error_code in ERRNO. (_gpgme_io_write): Likewise.
* 2007-07-13 Marcus Brinkmann <[email protected]>Marcus Brinkmann2007-07-137-75/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * assuan/assuan-io.c (_assuan_simple_read, _assuan_simple_write): Always use read/write (which means _gpgme_io_read and _gpgme_io_write). gpgme/ 2007-07-13 Marcus Brinkmann <[email protected]> * priv-io.h (_gpgme_io_set_close_notify): Change type of HANDLER to _gpgme_close_notify_handler. (_gpgme_close_notify_handler): New type. (_gpgme_io_dup): Remove prototype. * posix-io.c (notify_table, _gpgme_io_set_close_notify): Change type of HANDLER to _gpgme_close_notify_handler_t. (_gpgme_io_close): Do not close the FD if handler returns 0. (_gpgme_io_dup): Remove function. * w32-io.c (notify_table, _gpgme_io_set_close_notify, _gpgme_io_close): Change type of HANDLER to _gpgme_close_notify_handler_t. (_gpgme_io_close): Do not close the FD if handler returns 0. (_gpgme_io_dup): Remove function. * w32-glib-io.c (_gpgme_io_dup): Remove function. (_gpgme_io_set_close_notify, notify_table): Change type of HANDLER to _gpgme_close_notify_handler_t. (_gpgme_io_close): Do not close the FD if handler returns 0. * rungpg.c (close_notify_handler): Change return type to int, return 1. * engine-gpgsm.c (close_notify_handler): Change return type to int, return 0 for status FD and 1 for all other FDs. (start): Do not duplicate the status FD.
* Fix last change.Marcus Brinkmann2007-07-121-1/+1
|
* 2007-07-12 Marcus Brinkmann <[email protected]>Marcus Brinkmann2007-07-122-2/+9
| | | | | | * Makefile.am: Replace implicite rule by suffix rule. Add SUFFIXES for that.
* Changes for W32Werner Koch2007-07-123-3/+19
|
* 2007-07-10 Marcus Brinkmann <[email protected]>Marcus Brinkmann2007-07-106-1/+45
| | | | | | | | | * priv-io.h (_gpgme_io_dup): New prototype. * posix-io.c (_gpgme_io_dup): New function. * w32-io.c (_gpgme_io_dup): Likewise. * w32-glib-io.c (_gpgme_io_dup): Likewise. * engine-gpgsm.c (start): Use _gpgme_dup() instead of dup().
* 2007-07-08 Marcus Brinkmann <[email protected]>Marcus Brinkmann2007-07-083-13/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * configure.ac (GPGSM_DEFAULT) [*-mingw32*]: Initialize it. (HAVE_ASSUAN_H): Set to 1 if we have it. (funopen): Use AC_REPLACE_FUNCS. (USE_DESCRIPTOR_PASSING): Define to 1 if we have it. Do not define it at all if we don't. (NETLIBS) [have_w32_system]: Add -lws2_32. (DIRSEP_C, DIRSEP_S, EXPSEP_C, EXPSEP_S, PATHSEP_S) [HAVE_DOSISH_SYSTEM]: Remove definitions. * assuan/assuan.h (_assuan_funopen): Define to _gpgme_funopen. * assuan/funopen.c: Move to ../gpgme/funopen.c. * assuan/Makefile.am (libassuan_la_SOURCES): Remove funopen.c. assuan/ 2007-07-08 Marcus Brinkmann <[email protected]> * assuan-defs.h (struct assuan_context_s): Have partial peercred structure even if HAVE_W32_SYSTEM, and have full peercred structure only if HAVE_SO_PEERCRED. * assuan-connect.c (assuan_get_peercred) [!HAVE_SO_PEERCRED]: Do not try to set PID, UID and GID. gpgme/ 2007-07-08 Marcus Brinkmann <[email protected]> * engine-gpgsm.c [HAVE_W32_SYSTEM]: Enable the bunch of the file. * funopen.c (funopen): Rename to _gpgme_funopen.
* 2007-07-04 Marcus Brinkmann <[email protected]>Marcus Brinkmann2007-07-041-1/+1
| | | | | | | * assuan/Makefile.am (INCLUDES): Include $(top_srcdir)/gpgme. * assuan/assuan.h: Include <ath.h> instead of trying to duplicate the definitions.
* Added target "online".Werner Koch2007-06-291-1/+1
|
* 2007-04-30 Marcus Brinkmann <[email protected]>Marcus Brinkmann2007-04-303-3/+15
| | | | | | | * engine-gpgsm.c (gpgsm_new): Fix error handling for ttyname_r. * rungpg.c (gpg_new): Likewise. Submitted by Stephen Tether.
* Post release updatesWerner Koch2007-03-051-1/+1
|
* Fixed last chnage.Werner Koch2007-02-261-1/+1
|
* Detect and bailo out on double plaintext messages.Werner Koch2007-02-263-12/+38
|
* /Werner Koch2007-01-265-4/+27
| | | | | | | | | | | | | | * configure.ac: Changed gpg and gpgsm version checks to work with arbitrary names of the gpg binary. New option --disable-gpg-test and --disable-gpgsm-test. gpgme/ * w32-io.c (build_commandline): Fixed stupid quoting bug. * w32-glib-io.c (build_commandline): Ditto. * rungpg.c (gpg_set_locale): Avoid dangling pointer after free. * gpgme-config.in: New options --get-gpg and --get-gpgsm.
* Fix last change.Marcus Brinkmann2007-01-181-0/+1
|
* 2007-01-18 Marcus Brinkmann <[email protected]>Marcus Brinkmann2007-01-189-18/+74
| | | | | | | | | | | | | | | | * data.h (_gpgme_data_get_fd): Add prototype. (gpgme_data_get_fd_cb): New type. (struct _gpgme_data_cbs): New member get_fd. * data.c (_gpgme_data_get_fd): New function. * data-fd.c (fd_get_fd): New function. (fd_cbs): Add fd_get_fd. * data-stream.c (stream_get_fd): New function. (stream_cbs): Add stream_get_fd. * data-mem.c (mem_cbs): Add NULL for get_fd callback. * data-user.c (user_cbs): Likewise. * engine-gpgsm.c (gpgsm_set_fd) [USE_DESCRIPTOR_PASSING]: Try to short-cut by passing the data descriptor directly.
* 2007-01-17 Marcus Brinkmann <[email protected]>Marcus Brinkmann2007-01-173-50/+95
| | | | | | * w32-io.c (build_commandline): Quote all command line arguments. * w32-glib-io.c (build_commandline): Likewise.
* /Werner Koch2007-01-102-4/+13
| | | | | | | | | | | | | | | | | | | | | | | | | * configure.ac (NEED_GPG_VERSION, (NEED_GPGSM_VERSION): Must define after it may have been changed by an option. * configure.ac: Require gpg-error 1.4 due to the use of gpg_error_from_syserror. (HAVE_ASSUAN_H): New. gpgme/ * ttyname_r.c (ttyname_r) [W32]: Return a dummy name. * version.c (do_subsystem_inits): Do assuan init only if building with Assuan. * setenv.c: Include assuan-def.h only if building with Assuan support. * op-support.c (_gpgme_op_reset): Set LC_MESSAGES only if if defined. * engine-gpgsm.c (gpgsm_set_locale): Ditto. * rungpg.c (gpg_set_locale): Ditto.
* Fixes for building without gpgsm and for W32Werner Koch2007-01-087-1/+28
|
* 2006-12-17 Marcus Brinkmann <[email protected]>Marcus Brinkmann2006-12-1710-58/+212
| | | | | | | | | | | | | | | | | | | | | | | | | | * configure.ac: Fix two typos in last change. gpgme/ 2006-12-17 Marcus Brinkmann <[email protected]> * gpgme.c (gpgme_set_protocol): Shut down the engine when switching protocols. (gpgme_ctx_set_engine_info): Likewise for engine info. * engine.h (_gpgme_engine_reset): New function prototype. * engine.c (_gpgme_engine_reset): New function. * engine-backend.h (struct engine_ops): New member RESET. * rungpg.c (_gpgme_engine_ops_gpg): Add NULL for reset function. * engine-gpgsm.c (_gpgme_engine_ops_gpgsm) [USE_DESCRIPTOR_PASSING]: Add gpgsm_reset for reset. (_gpgme_engine_ops_gpgsm) [!USE_DESCRIPTOR_PASSING]: Add NULL for reset function. (gpgsm_reset) [USE_DESCRIPTOR_PASSING]: New function. * op-support.c (_gpgme_op_reset): Try to use the engine's reset function if available. * engine-gpgsm.c (gpgsm_new): Move code to dup status_fd to ... (start): ... here. * posix-io.c (_gpgme_io_recvmsg, _gpgme_io_sendmsg): New functions.
* 2006-12-17 Marcus Brinkmann <[email protected]>Marcus Brinkmann2006-12-177-70/+202
| | | | | | | | | | | | | | | | | | | | | | | | | | * engine.h (_gpgme_engine_new): Remove arguments lc_ctype and lc_messages from prototype. (_gpgme_engine_set_locale): New prototype. * engine.c (_gpgme_engine_set_locale): New function. * op-support.c (_gpgme_op_reset): Call _gpgme_engine_set_locale. * engine-backend.h (struct engine_ops): Add new member SET_LOCALE. Remove arguments lc_messages and lc_ctype from member NEW. * engine-gpgsm.c (struct engine_gpgsm): New members lc_ctype_set and lc_messages_set. (gpgsm_new): Remove lc_messages and lc_ctype arguments. (gpgsm_set_locale): New function. (_gpgme_engine_ops_gpgsm): Add gpgsm_set_locale. * rungpg.c (struct engine_gpg): Add new members lc_messages and lc_ctype. (gpg_release): Release lc_messages and lc_ctype if set. (gpg_new): Remove lc_messages and lc_ctype arguments. (gpg_set_locale): New function. (_gpgme_engine_ops_gpg): Add gpg_set_locale. (add_arg): Implement in terms of: (add_arg_ext): New function. (start): Set lc-messages and lc-ctype arguments here.
* 2006-12-03 Marcus Brinkmann <[email protected]>Marcus Brinkmann2006-12-032-77/+196
| | | | | | | | | | | | | | | * engine-gpgsm.c (struct engine_gpgsm): Move members input_fd_server, output_fd_server, message_fd_server to ... (iocb_data): ... here (as server_fd). (close_notify_handler): Reset tags as well. (gpgsm_new): Implement support for descriptor passing. (fd_type_t): New type. (gpgsm_clear_fd): New function. Use it instead of _gpgsm_io_close for unused communication channels. (gpgsm_set_fd): Rewritten to support descriptor passing. All relevant callers adjusted as well (previously of _gpgme_io_close).