aboutsummaryrefslogtreecommitdiffstats
path: root/assuan (follow)
Commit message (Collapse)AuthorAgeFilesLines
* assuan/Marcus Brinkmann2008-06-252-19/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-06-25 Marcus Brinkmann <[email protected]> * assuan-pipe-connect.c (struct spawn_fd_item_s): Add new members. (HANDLE_TRANSLATION): New macro. (pipe_connect_gpgme): Adjust caller of _gpgme_io_spawn. [HANDLE_TRANSLATION]: Return translated handles. gpgme/ 2008-06-25 Marcus Brinkmann <[email protected]> * gpgme-w32spawn.c: New file. * Makefile.am (libexec_PROGRAMS) [HAVE_W32_SYSTEM]: New variable with gpgme-w32spawn. * engine-gpgsm.c (gpgsm_new): Use server translated handles. (gpgsm_set_locale): Return early if locale value is NULL. * util.h (_gpgme_mkstemp) (_gpgme_get_w32spawn_path) [HAVE_W32_SYSTEM]: New function prototypes. * w32-util.c: Include <stdint.h>, <sys/stat.h> and <unistd.h>. (letters, mkstemp, _gpgme_mkstemp, _gpgme_get_w32spawn_path): New functions. * rungpg.c (gpg_decrypt, gpg_encrypt, gpg_encrypt_sign) (gpg_genkey, gpg_import, gpg_verify, gpg_sign): Pass data over special filename FD rather than stdin. (struct arg_and_data_s): Add member ARG_LOCP. (struct fd_data_map_s): Add member ARG_LOC. (struct engine_gpg): Add member ARG_LOC to status and colon. (_add_arg, add_arg_with_locp): New function. (add_arg_ext): Reimplement in terms of _add_arg. (gpg_new): Remember argument location for status FD. (build_argv): Set argument location if requested. Also set argument location of fd_data_map for data items. (start): Adjust caller of _gpgme_io_spawn. * priv-io.h (struct spawn_fd_item_s): Add members peer_name and arg_loc. (_gpgme_io_spawn): Remove parent fd list argument. * posix-io.c (get_max_fds): New function. (_gpgme_io_dup): Add tracing. (_gpgme_io_spawn): Remove parent fd list. Change meaning of child fd list to contain all child fds that should be inherited. Close all other file descriptors after fork. * w32-io.c, w32-glib-io.c, w32-qt-io.c(_gpgme_io_spawn): Remove parent fd list. Change meaning of child fd list to contain all child fds that should be inherited. Do not inherit any file descriptors, but DuplicateHandle them. Spawn process through wrapper process. Provide wrapper process with a temporary file containing handle translation data. Return translated handle names. * w32-io.c (reader): Add more tracing output. (_gpgme_io_read): Likewise. * engine-gpgconf.c (gpgconf_read): Adjust caller of _gpgme_io_spawn. * version.c (_gpgme_get_program_version): Likewise.
* Chnages to supporta pinnetry notificationWerner Koch2008-02-142-2/+7
|
* 2008-01-04 Marcus Brinkmann <[email protected]>Marcus Brinkmann2008-01-042-0/+14
| | | | | | * assuan-pipe-connect.c (_gpgme_io_pipe) (_gpgme_io_spawn) [_ASSUAN_IN_GPGME_BUILD_ASSUAN]: Add prototypes
* New API gpgme_op_getauditlog.Werner Koch2007-11-222-8/+28
|
* 2007-09-27 Marcus Brinkmann <[email protected]>Marcus Brinkmann2007-09-271-7/+7
| | | | | | | | | | | | | | | | | | | | | | * 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-4/+4
| | | | | | | | | | | | * 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-2/+104
| | | | | | * assuan-pipe-connect.c (pipe_connect_gpgme): New function, use it if _ASSUAN_IN_GPGME_BUILD_ASSUAN.
* Fixed a name clash under W32Werner Koch2007-09-252-0/+7
|
* 2007-09-03 Marcus Brinkmann <[email protected]>Marcus Brinkmann2007-09-032-2/+17
| | | | | | * assuan.h [_ASSUAN_EXT_SYM_PREFIX]: Add missing symbol renames with _ASSUAN_PREFIX.
* Improved debug support: Assuan logging is now directed to the gpgme debugWerner Koch2007-08-024-8/+62
| | | | | | stream. Create processes detached.
* 2007-07-16 Marcus Brinkmann <[email protected]>Marcus Brinkmann2007-07-163-4/+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-132-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* Minor fixes for W32Werner Koch2007-07-123-1/+9
|
* Changes for W32Werner Koch2007-07-122-2/+16
|
* Really delete the file as announced in the ChangeLog.Marcus Brinkmann2007-07-081-64/+0
|
* 2007-07-08 Marcus Brinkmann <[email protected]>Marcus Brinkmann2007-07-085-4/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-042-14/+3
| | | | | | | * assuan/Makefile.am (INCLUDES): Include $(top_srcdir)/gpgme. * assuan/assuan.h: Include <ath.h> instead of trying to duplicate the definitions.
* 2007-07-04 Marcus Brinkmann <[email protected]>Marcus Brinkmann2007-07-0413-18/+320
| | | | | * assuan/: Update files to 2007-07-04 version of assuan.
* 2006-12-17 Marcus Brinkmann <[email protected]>Marcus Brinkmann2006-12-171-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* Update to rev 231 of libassuan.Marcus Brinkmann2006-11-2913-161/+253
|
* assuan/Marcus Brinkmann2006-09-1923-1330/+2055
| | | | | | | | | | | | | | | Update to current version. 2006-09-19 Marcus Brinkmann <[email protected]> * configure.ac: Turn stpcpy into a replacement function. Check for unistd.h and add setenv as replacement function. gpgme/ 2006-09-19 Marcus Brinkmann <[email protected]> * setenv.c: New file.
* 2005-10-01 Marcus Brinkmann <[email protected]>Marcus Brinkmann2005-10-013-7/+15
| | | | | | | | | * assuan.h (assuan_pipe_connect, assuan_pipe_connect2): Make type of ARGV parameter const in prototype. * assuan-pipe-connect.c (assuan_pipe_connect, assuan_pipe_connect2): Likewise in declaration. (assuan_pipe_connect2): Add braindead cast to make execv happy.
* 2005-10-01 Marcus Brinkmann <[email protected]>Marcus Brinkmann2005-10-014-6/+14
| | | | | | | | | * assuan-client.c (assuan_transact): Change LINE, S and D from unsigned char * to char * to silence gcc warning. * assuan-util.c (_assuan_log_sanitized_string): Add explicit cast to silence gcc warning. * assuan-inquire.c (assuan_inquire): Likewise.
* Added missing files and fixed stuff from the recent merged. I did onlyWerner Koch2005-08-196-0/+209
| | | | | tests on W32 at that time.
* Merged changes from upstream libassuan to allow building a W32 DLL.Werner Koch2005-08-0920-460/+1282
|
* (struct assuan_io): Renamed elements READ andWerner Koch2005-03-223-4/+10
| | | | | | WRITE to READFNC and WRITEFNC to avoid problems with read defined as macro. Changed callers. Noted by Ville Skytt��.
* 2004-12-16 Marcus Brinkmann <[email protected]>Marcus Brinkmann2004-12-213-59/+91
| | | | | | | | * assuan-pipe-connect.c (do_finish): Do not wait for child to finish. (assuan_pipe_connect): Use double-fork approach. * assuan-connect.c (assuan_disconnect): Do not write BYE to the status line.
* 2004-12-07 Marcus Brinkmann <[email protected]>Marcus Brinkmann2004-12-072-1/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * README: Refer to COPYING.LESSER and "each file" instead of COPYING. * COPYING.LESSER: New file. * gpgme.spec.in (%doc): Add COPYING.LESSER. * acinclude.m4, configure.ac, Makefile.am: Change license to LGPL 2.1 or later. * TODO: Add copyright notice. * README.CVS: Likewise. assuan/ 2004-12-07 Marcus Brinkmann <[email protected]> * README.1st: Add copyright notice. doc/ 2004-12-07 Marcus Brinkmann <[email protected]> * Makefile.am: Change license to LGPL. (gpgme_TEXINFOS): Replace gpl.texi with lesser.texi. * gpgme.texi: Change license to LGPL (also for documentation of GPGME's license). * lesser.texi: New file. * gpl.texi: File removed. gpgme/ 2004-12-07 Marcus Brinkmann <[email protected]> * putc_unlocked.c, funopen.c: I just claim copyright on these files and change their license to LGPL, because they are totally trivial wrapper functions. * isascii.c: Change copyright notice to the one from ctype/ctype.h in the GNU C Library (CVS Head 2004-10-10), where isascii is defined as a macro doing exactly the same as the function in this file. * memrchr.c: Update from the GNU C Library (CVS Head 2001-07-06). * stpcpy.c: Update from the GNU C Library (CVS Head 2004-10-10). * ath.c, ath-compat.c, ath.h, ath-pth.c, ath-pth-compat.c, ath-pthread.c, ath-pthread-compat.c, context.h, conversion.c, data.c, data-compat.c, data-fd.c, data.h, data-mem.c, data-stream.c, data-user.c, debug.c, debug.h, decrypt.c, decrypt-verify.c, delete.c, edit.c, encrypt.c, encrypt-sign.c, engine-backend.h, engine.c, engine-gpgsm.c, engine.h, error.c, export.c, genkey.c, get-env.c, gpgme.c, gpgme.h, import.c, io.h, key.c, keylist.c, mkstatus, Makefile.am, ops.h, op-support.c, passphrase.c, posix-io.c, posix-sema.c, posix-util.c, progress.c, rungpg.c, sema.h, sign.c, signers.c, trust-item.c, trustlist.c, util.h, verify.c, version.c, w32-io.c, w32-sema.c, w32-util.c, wait.c, wait-global.c, wait.h, wait-private.c, wait-user.c: Change license to LGPL. tests/ 2004-12-07 Marcus Brinkmann <[email protected]> * gpg/mkdemodirs: Add copyright notice. * gpgsm/Makefile.am, gpgsm/t-support.h, gpgsm/t-decrypt.c, gpgsm/t-encrypt.c, gpgsm/t-export.c, gpgsm/t-genkey.c, gpgsm/t-import.c, gpgsm/t-keylist.c, gpgsm/t-sign.c, gpgsm/t-verify.c, gpg/Makefile.am, gpg/t-decrypt.c, gpg/t-decrypt-verify.c, gpg/t-edit.c, gpg/t-encrypt.c, gpg/t-encrypt-sign.c, gpg/t-encrypt-sym.c, gpg/t-eventloop.c, gpg/t-export.c, gpg/t-genkey.c, gpg/t-import.c, gpg/t-keylist.c, gpg/t-keylist-sig.c, gpg/t-sign.c, gpg/t-signers.c, gpg/t-support.h, gpg/t-thread1.c, gpg/t-trustlist.c, gpg/t-verify.c, Makefile.am, t-data.c, t-engine-info.c, t-version.c: Change license to LGPL.
* 2004-06-23 Marcus Brinkmann <[email protected]>Marcus Brinkmann2004-06-232-0/+5
| | | | | | | | | | * configure.ac: Check for <sys/uio.h>. assuan 2004-06-23 Marcus Brinkmann <[email protected]> * assuan-domain-connect.c [HAVE_SYS_UIO_H]: Include <sys/uio.h>.
* 2004-06-23 Marcus Brinkmann <[email protected]>Marcus Brinkmann2004-06-232-0/+5
| | | | | * assuan-handler.c: Include <errno.h>.
* 2004-06-08 Marcus Brinkmann <[email protected]>Marcus Brinkmann2004-06-082-0/+8
| | | | | | * assuan-buffer.c (assuan_write_line): If the line is longer than the maximum line length, bail out early.
* * assuan-socket-connect.c: Include sys/types.hWerner Koch2004-04-194-0/+9
| | | | | | * assuan-socket-server.c: Ditto * assuan-domain-connect.c: Ditto.
* * configure.ac: Make the check for funopen fail with just aWerner Koch2004-02-182-0/+10
| | | | | | | | warning. * assuan-handler.c (assuan_get_data_fp): Fail with ENOSYS if we can't implement this.
* Removed the unneeded alloca.hWerner Koch2004-02-132-1/+4
|
* doc/Marcus Brinkmann2003-10-062-0/+7
| | | | | | | | | | | | | | | | | | | | | 2003-10-06 Marcus Brinkmann <[email protected]> * gpgme.texi (Signal Handling): New section. gpgme/ 2003-10-06 Marcus Brinkmann <[email protected]> * io.h (_gpgme_io_subsystem_init): New prototype. * posix-io.c (_gpgme_io_subsystem_init): Add function. (_gpgme_io_spawn): Do not fixup signal handler here. * version.c (do_subsystem_inits): Call _gpgme_io_subsystem_init. tests/ 2003-10-06 Marcus Brinkmann <[email protected]> * gpg/t-thread1.c (thread_one): Do not call initialize_gpgme. Likewise.
* 2003-08-18 Marcus Brinkmann <[email protected]>Marcus Brinkmann2003-08-204-0/+154
| | | | | | | | | | | | | | | | | | | | | *configure.ac (AM_PATH_GPG_ERROR): Require 0.3. assuan/ See README.1st. gpgme/ 2003-08-19 Marcus Brinkmann <[email protected]> The ath files (ath.h, ath.c, ath-pth.c, ath-pthread.c, ath-compat.c, ath-pth-compat.c and ath-pthread-compat.c) have been updated to have better thread support, and the Makefile.am was changed to reflect that. * util.h [!HAVE_FOPENCOOKIE]: Remove fopencookie declaration. * engine-gpgsm.c (gpgsm_assuan_simple_command): Set ERR to return value of status_fnc. * rungpg.c (start): Return SAVED_ERRNO, not errno.
* 2003-08-18 Marcus Brinkmann <[email protected]>Marcus Brinkmann2003-08-1819-349/+1171
| | | | | | | | | | | | | | | | * configure.ac: If building Assuan, check for funopen and fopencookie, and make isascii, putc_unlocked and memrchr replacement functions. assuan/ Update to the latest assuan version. gpgme/ 2003-08-18 Marcus Brinkmann <[email protected]> * funopen.c, putc_unlocked.c, isascii.c, memrchr.c: New files. * fopencookie.c: File removed.
* 2003-02-01 Marcus Brinkmann <[email protected]>Marcus Brinkmann2003-02-0117-347/+542
| | | | | | | | | | | | | | | | | * assuan/: Update files to 2002-11-10 version of assuan. gpgme/ 2003-02-01 Marcus Brinkmann <[email protected]> * engine-gpgsm.c (map_assuan_error): Replace ASSUAN_Bad_Certificate_Path with ASSUAN_Bad_Certificate_Chain. (gpgsm_new): Use assuan_pipe_connect instead assuan_pipe_connect2. * util.h (DIMof): Remove macro. * ops.h (_gpgme_op_event_cb, _gpgme_op_event_cb_user, _gpgme_data_unread): Prototypes removed.
* * assuan-pipe-connect.c (assuan_pipe_connect2): New to extendWerner Koch2002-05-033-2/+41
| | | | | | assuan_pipe_connect with some flags. Implemented a bitbucket for stderr.
* * Makefile.am: Create libtool libraries.Werner Koch2002-04-262-2/+6
| | | | | | | * Makefile.am (libgpgme_la_LIBADD): Use libtool libraries. * Makefile.am: Create libtool libraries
* Update assuan and jnlib to 20020424 from newpg.Marcus Brinkmann2002-04-249-30/+181
|
* removed all the .cvsignre files - they should be localWerner Koch2002-03-101-2/+0
|
* Update to latest version.Marcus Brinkmann2002-02-013-1/+10
|
* Update to current version in newpg module.Marcus Brinkmann2002-01-2215-238/+1026
|
* Update from newpg.Marcus Brinkmann2001-12-195-13/+80
|
* Change history, doubleplusgood.Marcus Brinkmann2001-12-141-1/+1
|
* 2001-12-14 Marcus Brinkmann <[email protected]>Marcus Brinkmann2001-12-142-12/+22
| | | | | | | * assuan-buffer.c (_assuan_read_line): New variable ATTICLEN, use it to save the number of bytes left over after the complete line. Rediddle the code a bit to make it more clear what happens.
* 2001-12-14 Marcus Brinkmann <[email protected]>Marcus Brinkmann2001-12-133-3/+9
| | | | | | * assuan-defs.h (LINELENGTH): Define as ASSUAN_LINELENGTH. assuan.h: Define ASSUAN_LINELENGTH.
* 2001-12-13 Marcus Brinkmann <[email protected]>Marcus Brinkmann2001-12-132-19/+8
| | | | | | * assuan-connect.c (assuan_pipe_connect): Remove code that closes all the little file descriptors we set up.
* 2001-12-13 Marcus Brinkmann <[email protected]>Marcus Brinkmann2001-12-132-1/+10
| | | | | | * assuan-buffer.c (assuan_read_line): Fix order of execution to get correct return values.