aboutsummaryrefslogtreecommitdiffstats
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add assuan_check_version and ASSUAN_VERSION_NUMBER.Werner Koch2013-02-226-22/+144
| | | | | | | | | | | | | | | | | | | | * src/assuan.c (assuan_check_version): New. (digitp, parse_version_number, parse_version_string) (compare_versions): New. Taken from libksba. * configure.ac (VERSION_NUMBER): New ac_subst. * src/Makefile.am (assuan.h): Pass VERSION and VERSION_NUMBER to mkheader. * src/assuan.h.in (ASSUAN_VERSION, ASSUAN_VERSION_NUMBER): New macros. (assuan_check_version): New prototype. * src/libassuan.def, src/libassuan.vers: Add assuan_check_version. * src/mkheader.c (write_special, main): Support version and version_number. * tests/version.c: New. * tests/Makefile.am (TESTS): Add version. -- All our other libs have a version number check, thus we should have one in Libassuan as well.
* w32: Fix header inclusion order for newer toolchain.Werner Koch2013-02-221-13/+12
| | | | | | | | * src/system-w32.c: Do not include windows.h here. -- winsock2.h must now be included before windows.h. This is already properly handled by assuan-defs.h.
* Beautify the BUILD_TIMESTAMP and put it into the binary.Werner Koch2013-02-221-1/+3
| | | | | | | | | | | | | * configure.ac (BUILD_TIMESTAMP): Use an ISO date string on all platforms and ac_define it. * src/sysutils.c (_assuan_sysutils_blurb): But revision and build date into the binary. -- An ISO date is for sure better than the old C standard time format. An almost all platforms this should work. We don't print the seconds to be compatible with the way we did in on Windows. However we print in UTC.
* w32ce: Adjust to changed API and make it build again.Werner Koch2013-02-221-22/+22
| | | | | | | | | | | * src/system-w32ce.c (__assuan_write, __assuan_recvmsg) (__assuan_sendmsg, __assuan_waitpid): Make functions global. * tests/ce-server.c: Fix syntax error (s/#else/#endif) -- This patch fixes some cruft which has accidentally been introduced over time. The code builds, but due to a lack of ready to use CE box, I was not able to test it.
* Modernize release version management.Werner Koch2013-02-221-3/+3
| | | | | | * configure.ac: Update to modern git version checking. Remove svn support. * src/versioninfo.rc.in: Update copyright years.
* Make assuan_transact more robust against inquiry errors.Werner Koch2013-02-071-10/+19
| | | | | * src/client.c (assuan_transact): Send an CAN after an error return from the inquiry callback.
* Check for getpeerucred().Ben Kibbey2012-11-261-5/+21
| | | | | | | * configure.ac: check for getpeerucred() which (Open)Solaris/SunOS uses. * src/assuan-socket-server.c (accept_connection_bottom): make use of getpeerucred().
* Support LOCAL_PEEREID (NetBSD) and getpeereid() (FreeBSD)Ben Kibbey2012-11-211-0/+21
| | | | | | | | | | | | | | | | | | * configure.ac: check for LOCAL_PEEREID and getpeereid(). * src/assuan-socket-server.c (accept_connection_bottom): make use of LOCAL_PEEREID and getpeereid(). -- For use with assuan_get_peercred(). Note that getpeereid() does not set the PID member. LOCAL_PEEREID is checked before getpeereid() since NetBSD has both of these. SO_PEERCRED is still checked first. [Second revision] This revision adds support for LOCAL_PEEREID which NetBSD uses. Its tested against NetBSD 6.0 and may work without problems with earlier versions. FreeBSD uses getpeereid() which does not have PID support. Recent OpenBSD versions do support SO_PEERCRED and old versions have getpeereid() but also may have LOCAL_PEEREID (not sure).
* src/assuan-handler.c: add help strings for standard commands.W. Trevor King2012-06-051-16/+66
| | | | Signed-off-by: W. Trevor King <[email protected]>
* Make new functions also visible on non-W32.Werner Koch2012-01-253-36/+41
| | | | | | | * src/system-posix.c (__assuan_read, __assuan_write, __assuan_recvmsg) (__assuan_sendmsg, __assuan_waitpid): Make functions global. * src/libassuan.vers: Add above functions. * configure.ac: Set version to 2.1.0-git.
* Fix npth port file handle use.Marcus Brinkmann2012-01-243-12/+30
| | | | | | | | | * assuan.h.in (ASSUAN_SYSTEM_NPTH_IMPL): Use npth_unprotect and npth_protect with actual assuan functions instead of npth wrappers. * libassuan.def: Add __assuan_read, __assuan_write, __assuan_sendmsg, __assuan_recvmsg, __assuan_waitpid exports. * system-w32.c (__assuan_read, __assuan_write, __assuan_sendmsg, __assuan_recvmsg, __assuan_waitpid): Make non-static.
* Make assuan portable to NPTH.Marcus Brinkmann2012-01-031-0/+31
|
* Release version 2.0.3.libassuan-2.0.3Werner Koch2011-12-201-2/+2
| | | | * configure.ac: Bump LT version to C3/A3/R0.
* Fix assuan_get_pid for pipe servers.Werner Koch2011-12-131-19/+24
| | | | | | | | | | | At some point in the past we introduced a regression in that the client of a pipe server received its own pid and not the pid of the server. * src/assuan-pipe-connect.c (struct at_pipe_fork) (struct at_socketpair_fork): Add PARENT_PID. (at_pipe_fork_cb, at_socketpair_fork): Use PARENT_PID instead of getpid. (pipe_connect, socketpair_connect): Set PARENT_PID.
* vasprintf.c: Improve test code.Werner Koch2011-12-131-4/+10
| | | | | * src/vasprintf.c (checkit): Set flag for a test failure. (main): Return error on any failure.
* Generate the ChangeLog from commit logs.Werner Koch2011-12-011-0/+7
| | | | | | | | | | | | | | * build-aux/gitlog-to-changelog: New script. Taken from gnulib. * build-aux/git-log-fix: New file. * build-aux/git-log-footer: New file. * doc/HACKING: New file. * ChangeLog: New file. * Makefile.am (EXTRA_DIST): Add new files. (gen-ChangeLog): New. (dist-hook): Run gen-ChangeLog. * autogen.sh: Install commit-msg hook for git. Rename all ChangeLog files to ChangeLog-2011.
* Add new flag ASSUAN_FORCE_CLOSE.Werner Koch2011-08-105-11/+39
|
* Add option --host to libassuan-config.Werner Koch2011-04-113-24/+55
| | | | Also enhanced the m4 test marcos and removed some cruft.
* Add a version string to the binary.Werner Koch2011-03-302-7/+10
|
* Include sys/select.h in a test utility.Werner Koch2011-03-281-1/+2
| | | | | This fixes bug#1328 (libassuan: ce-server fails to compile on Darwin due to missing include).
* Replace strcasecmp by ascii_strcasecmp variant/Werner Koch2011-03-092-30/+34
|
* Added assuan_socket_connect_fd() to attach an existing socket file ↵[email protected]2011-03-095-34/+76
| | | | descriptor to a context.
* Let an existing command previously registered with assuan_register_command() ↵[email protected]2011-03-092-5/+21
| | | | be updated with new values. This fixes overriding the HELP command for example.
* Simplify libassuan.versWerner Koch2011-02-282-7/+7
|
* Pass only the command name to the pre_cmd_notify() callback to keep ABI ↵Ben Kibbey2011-02-284-15/+20
| | | | compatibility.
* Add ChangeLog entry for last patchWerner Koch2011-02-241-1/+7
|
* assuan_register_pre_cmd_notify().Ben Kibbey2011-02-245-10/+36
|
* Reroute all socket and connect through the nonce implemenation in ↵Marcus Brinkmann2011-02-035-17/+45
| | | | | | | | | | | | | | | | assuan-socket.c. 2011-02-03 Marcus Brinkmann <[email protected]> * assuan-socket.c (_assuan_sock_new): Call _assuan_socket instead of socket. (_assuan_sock_connect): Call _assuan_connect instead of connect. * assuan-socket-connect.c (assuan_socket_connect): Call _assuan_sock_new and _assuan_sock_connect instead of _assuan_socket and assuan_connect. * src/system-w32.c, src/system-w32ce.c (__assuan_socket): Call socket instead of _assuan_sock_new. (__assuan_connect): Call connect instead of _assuan_sock_connect.
* Fix C++ users.Marcus Brinkmann2011-02-021-1/+1
| | | | | | 2011-02-02 Marcus Brinkmann <[email protected]> * assuan.h.in: Replace namespace by _namespace.
* Fix C++ users.Marcus Brinkmann2011-02-022-2/+7
| | | | | | 2011-02-02 Marcus Brinkmann <[email protected]> * assuan.h.in: Replace namespace by _namespace.
* Extend system hooks table by socket and connect functions.Marcus Brinkmann2011-02-0210-10/+133
| | | | | | | | | | | | | | | | | | | | | | | | | 2011-02-02 Marcus Brinkmann <[email protected]> * assuan-defs.h (_assuan_socket, _assuan_connect): New prototypes. * assuan.h.in (ASSUAN_SYSTEM_HOOKS_VERSION): Bumped to 2. (struct assuan_system_hooks): Add socket and connect members. (__assuan_socket, __assuan_connect): New prototypes. (_ASSUAN_SYSTEM_PTH_IMPL): Add socket and connect members. * assuan-socket-connect.c (assuan_socket_connect): Call _assuan_socket and _assuan_connect instead _assuan_sock_new and _assuan_sock_connect. (libassuan.def, libassuan.vers): Add __assuan_socket and __assuan_connect. * system.c (_assuan_system_hooks_copy): Initialize destination from system hooks, so we don't get any NULL pointers if there is a version mismatch. Support version 2 of the system hook structure. (_assuan_socket, _assuan_connect): New functions. * system-posix.c (__assuan_socket, __assuan_connect): New functions. (_assuan_system_hooks): Add __assuan_socketm, __assuan_connect. * system-w32.c (__assuan_socket, __assuan_connect): New functions. (_assuan_system_hooks): Add __assuan_socketm, __assuan_connect. * system-w32ce.c (__assuan_socket, __assuan_connect): New functions. (_assuan_system_hooks): Add __assuan_socketm, __assuan_connect.
* Check malloc and CreateEvent return codes.Werner Koch2010-12-202-0/+26
|
* Typo fixes.Werner Koch2010-12-144-22/+170
| | | | | Improved gpgcemgr
* 2010-11-17 Marcus Brinkmann <[email protected]>Marcus Brinkmann2010-11-172-0/+17
| | | | | | | | * vasprintf.c (int_vasprintf) [HAVE_W32CE_SYSTEM && _MSC_VER]: Just use a fixed size buffer, as va_copy is not easy to fake.
* 2010-11-17 Marcus Brinkmann <[email protected]>Marcus Brinkmann2010-11-172-48/+210
| | | | | | | | | | | | | * gpgcedev.c (struct pipeimpl_s): Add member monitor_rvid. (struct monitor_s, monitor_t): New types. (monitor_table, monitor_table_size): New static variables. (pipeimpl_new): Initialize monitor_rvid. (allocate_monitor): New function. (make_pipe): Also try the monitor_table if the opnctx_table fails. (monitor): Renamed to ... (monitor_main): ... this. Remove from monitor_table when done. (assign_rvid): Add to monitor table when creating monitor thread.
* Add log device to gpgcedevWerner Koch2010-11-153-116/+641
|
* Chnage directory layout for MSC buildsWerner Koch2010-11-021-1/+1
|
* Replace open/fdopen stuff by CreateFile et al.Werner Koch2010-11-012-21/+113
|
* 2010-11-01 Marcus Brinkmann <[email protected]>Marcus Brinkmann2010-11-0111-19/+44
| | | | | | | | | | | | | | | * configure.ac: Check for fcntl.h. 2010-11-01 Marcus Brinkmann <[email protected]> * assuan-socket.c, assuan-uds.c, system.c, assuan-pipe-server.c, assuan-pipe-connect.c [!HAVE_FCNTL_H]: Don't include fcntl.h. * assuan-buffer.c [!HAVE_W32CE_SYSTEM]: Do not include process.h. * assuan-socket.c [!HAVE_W32CE_SYSTEM]: Do not include io.h. * w32-includes.inc.h: Include winsock2.h before ws2tcpip.h. * sysutils.c (w32_read_registry): Replace goto label "leave" by "out" (as leave is defined by some Windows header file). * assuan-inquire.c: Likewise.
* Changes to allow building the CE version with MSC.Werner Koch2010-11-0123-52/+180
|
* Fix portability bug#1282.Werner Koch2010-09-172-0/+8
|
* Add a no_logging flag.Werner Koch2010-09-015-1/+21
|
* Prepare for a gpg-error changeWerner Koch2010-08-191-1/+1
|
* doc changesWerner Koch2010-08-112-7/+6
|
* Add ASSUAN_CONVEY_COMMENTS flag.Werner Koch2010-08-117-9/+45
|
* 2010-08-03 Marcus Brinkmann <[email protected]>Marcus Brinkmann2010-08-032-43/+263
| | | | | | | | | | | | | * gpgcedev.c (GPGCEDEV_IOCTL_ASSIGN_RVID): New call ASSIGN_RVID. (PIPE_FLAG_HALT_MONITOR): New flag. (struct pipeimpl_s): New members monitor_proc, monitor_access. (pipeimpl_new): Initialize them. (assert_pipeimpl): New function. (access_opnctx, make_pipe): Use it. (make_pipe): If there is a monitor, halt it. (monitor, assign_rvid): New functions. (GPG_IOControl): Handle GPGCEDEV_IOCTL_ASSIGN_RVID.
* 2010-08-03 Marcus Brinkmann <[email protected]>Marcus Brinkmann2010-08-022-94/+114
| | | | | | | | * gpgcedev.c: Use index (between 1 and table size) into opnctx_table as public context identifiers, instead using pointers into the table directly (which are not stable under table resize). (OPNCTX_TO_IDX, OPNCTX_FROM_IDX, OPNCTX_VALID_IDX_P): New macros.
* Handle NOTIFY event.Werner Koch2010-06-293-3/+187
|
* 2010-06-11 Marcus Brinkmann <[email protected]>Marcus Brinkmann2010-06-103-4/+44
| | | | | | | | | | | | * assuan-handler.c (std_handler_input, std_handler_output) [HAVE_W32CE_SYSTEM]: Finish the pipe. We must do this here, because otherwise assuan_close_input_fd() and assuan_close_output_fd() can't work. * system-w32ce.c (_assuan_w32ce_finish_pipe): Call SetLastError in error case. (__assuan_close): Save WSAGetLastError before trashing it! Otherwise handle is never closed and GPGME hangs.
* 2010-06-10 Marcus Brinkmann <[email protected]>Marcus Brinkmann2010-06-103-0/+50
| | | | | | | | | * w32ce-add.h (ASSUAN_STDIN, ASSUAN_STDOUT): Define magic handle values. * system-w32ce.c (__assuan_read, __assuan_write): Handle magic handle values differently. * system-w32ce.c (_assuan_w32ce_finish_pipe): Return error on RVID 0.