aboutsummaryrefslogtreecommitdiffstats
path: root/gpgme/w32-glib-io.c
Commit message (Collapse)AuthorAgeFilesLines
* Chnages to supporta pinnetry notificationWerner Koch2008-02-141-3/+5
|
* 2007-10-02 Marcus Brinkmann <[email protected]>Marcus Brinkmann2007-10-021-29/+30
| | | | | | | | | | * priv-io.h, engine-gpgsm.c: Add comments. * w32-qt-io.cpp (_gpgme_io_select): Remove code handling frozen FDs. * w32-glib-io.c (_gpgme_io_close): Always dereference the channel, even if not primary. (_gpgme_io_dup): Acquire a reference. Replace unused implementation by assertion.
* Fixed a problem in the W32 gpgme->gpgsm communication.Werner Koch2007-09-281-0/+2
|
* Fixed the external event loop for glib.Werner Koch2007-09-281-19/+72
| | | | | Add a bit more tracing.
* 2007-09-27 Marcus Brinkmann <[email protected]>Marcus Brinkmann2007-09-271-1/+5
| | | | | | | | | | | | | | | | | | | | | | * 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.
* 2007-09-27 Marcus Brinkmann <[email protected]>Marcus Brinkmann2007-09-271-1/+1
| | | | | | | | | | | | * 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-07 Marcus Brinkmann <[email protected]>Marcus Brinkmann2007-09-061-2/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* Improved debug support: Assuan logging is now directed to the gpgme debugWerner Koch2007-08-021-1/+2
| | | | | | stream. Create processes detached.
* 2007-07-17 Marcus Brinkmann <[email protected]>Marcus Brinkmann2007-07-171-185/+216
| | | | | | | | | | | | * 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.
* 2007-07-16 Marcus Brinkmann <[email protected]>Marcus Brinkmann2007-07-161-0/+7
| | | | | | | | | | | | | | | | | | | | | | * 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-131-12/+8
| | | | | | | | | | * 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-131-19/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* 2007-07-10 Marcus Brinkmann <[email protected]>Marcus Brinkmann2007-07-101-0/+8
| | | | | | | | | * 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().
* /Werner Koch2007-01-261-1/+1
| | | | | | | | | | | | | | * 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.
* 2007-01-17 Marcus Brinkmann <[email protected]>Marcus Brinkmann2007-01-171-25/+45
| | | | | | * w32-io.c (build_commandline): Quote all command line arguments. * w32-glib-io.c (build_commandline): Likewise.
* 2006-02-28 Marcus Brinkmann <[email protected]>Marcus Brinkmann2006-02-281-1/+8
| | | | | | * w32-glib-io.c (O_BINARY) [!O_BINARY]: New macro. (_gpgme_io_pipe): Open pipes in binary mode.
* Minor glib fix.Werner Koch2006-01-051-4/+9
| | | | | Pretty up debug output.
* 2006-01-03 Marcus Brinkmann <[email protected]>Marcus Brinkmann2006-01-031-2/+2
| | | | | | * w32-glib-io.c (_gpgme_io_close): Only close fd if there is no channel for it.
* Fix last change.Marcus Brinkmann2005-12-311-2/+0
|
* 2005-12-31 Marcus Brinkmann <[email protected]>Marcus Brinkmann2005-12-311-4/+10
| | | | | | * w32-glib-io.c (find_channel): Set channel to unbuffered. (_gpgme_io_select): Fix debug output.
* 2005-11-24 Marcus Brinkmann <[email protected]>Marcus Brinkmann2005-11-241-3/+0
| | | | | * w32-glib-io.c (_gpgme_io_fd2str): Remove debug printf.
* GPA does now work with the glib based i/o backend.Werner Koch2005-11-181-42/+85
|
* 2005-11-18 Marcus Brinkmann <[email protected]>Marcus Brinkmann2005-11-181-146/+152
| | | | | | | | | | * priv-io.h (_gpgme_io_fd2str): New prototype. * posix-io.c (_gpgme_io_fd2str): New function. * w32-io.c (_gpgme_io_fd2str): New function. * rungpg.c: Use this new function. * w32-glib-io.c (_gpgme_io_fd2str): Rewrote the file handle code again. Two's company, three's the musketeers.
* 2005-11-18 Marcus Brinkmann <[email protected]>Marcus Brinkmann2005-11-181-70/+148
| | | | | | | | * w32-glib-io.c: Rewrote the file handle code. We don't create system fds for every handle (doesn't work for inherited handles), but we create pseudo fds in a private namespace that designate a handle and potentially a giochannel.
* 2005-11-17 Marcus Brinkmann <[email protected]>Marcus Brinkmann2005-11-171-0/+502
* configure.ac: Add support for --enable-w32-glib (disabled by default). Invoke AM_PATH_GLIB_2_0. gpgme/ 2005-11-17 Marcus Brinkmann <[email protected]> * w32-glib-io.c: New file. * gpgme.def (gpgme_get_giochannel): Add symbol. * Makefile.am (system_components) [HAVE_DOSISH_SYSTEM]: Remove w32-io.c. (ltlib_gpgme_extra): New variable. (lib_LTLIBRARIES): Add $(ltlib_gpgme_extra). (system_components_not_extra): New variable. (libgpgme_la_SOURCES, libgpgme_pthread_la_SOURCES, (libgpgme_pth_la_SOURCES): Add $(system_components_not_extra). (libgpgme_glib_la_LDFLAGS, libgpgme_glib_la_DEPENDENCIES, (libgpgme_glib_la_LIBADD, libgpgme_glib_la_CFLAGS) [BUILD_W32_GLIB]: New variables. * gpgme-config.in (glib): New option. * gpgme.m4 (AM_PATH_GPGME_GLIB): New macro. m4/ 2005-11-17 Marcus Brinkmann <[email protected]> * glib-2.0.m4: New file.