aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* build: Use LIBASSUAN_CONFIG_LIBS (instead of LIB).NIIBE Yutaka2018-10-253-8/+6
| | | | | | | | | * configure.ac (LIBASSUAN_CONFIG_LIBS): Rename from *_LIB. (LIBASSUAN_CONFIG_EXTRA_LIBS): Remove. * src/libassuan-config.in: Follow the change. * src/libassuan.pc.in: Likewise. Signed-off-by: NIIBE Yutaka <[email protected]>
* build: Require libgpg-error >= 1.33.NIIBE Yutaka2018-10-252-10/+10
| | | | | | | * configure.ac (AM_PATH_GPG_ERROR): Require 1.33. * m4/gpg-error.m4: Update from libgpg-error 1.33. Signed-off-by: NIIBE Yutaka <[email protected]>
* build: Fix libassuan.pc.NIIBE Yutaka2018-10-241-1/+1
| | | | | | * src/libassuan.pc.in: Fix typo. Signed-off-by: NIIBE Yutaka <[email protected]>
* build: Fix previous commit.NIIBE Yutaka2018-10-241-2/+1
| | | | Signed-off-by: NIIBE Yutaka <[email protected]>
* build: Compatibility to pkg-config.NIIBE Yutaka2018-10-241-0/+10
| | | | | | * src/libassuan-config.in: Support --variable and --modversion. Signed-off-by: NIIBE Yutaka <[email protected]>
* build: Make libassuan.m4 use gpg-error-config.NIIBE Yutaka2018-10-241-10/+10
| | | | | | | | | | * src/libassuan.m4: Use gpg-error-config. -- The option --with-libassuan-prefix let it use libassuan-config. Signed-off-by: NIIBE Yutaka <[email protected]>
* build: Provide libassuan.pc, generated by configure.NIIBE Yutaka2018-10-244-15/+22
| | | | | | | | | | | * configure.ac (PACKAGE, VERSION): Remove. Generate src/libassuan.pc. * src/Makefile.am (pkgconfigdir, pkgconfig_DATA): New. (assuan.h): Use PACKAGE_VERSION and VERSION_NUMBER vars. * src/libassuan-config.in: Use @PACKAGE_VERSION@. * src/libassuan.pc.in: New. Signed-off-by: NIIBE Yutaka <[email protected]>
* build: Update gpg-error.m4 from libgpg-error.NIIBE Yutaka2018-10-241-12/+45
| | | | | | * m4/gpg-error.m4: Update from libgpg-error 1.33. Signed-off-by: NIIBE Yutaka <[email protected]>
* Fix OpenBSD build.Ben Kibbey2018-09-141-1/+4
| | | | | | | | * configure.ac: Define HAVE_STRUCT_SOCKPEERCRED_PID when found. -- Signed-off-by: Ben Kibbey <[email protected]>
* tests: Exclude tests for Windows build.NIIBE Yutaka2018-03-271-3/+8
| | | | | | | | | | | * tests/Makefile.am [HAVE_W32_SYSTEM] (TESTS, testtools): Fix. -- pipeconnect and socks5 should be changed if we run it on Windows. If so, pipeconnect should use _open_osfhandle to get HANDLE for pipe. Signed-off-by: NIIBE Yutaka <[email protected]>
* Silence two minor warning on Windows.NIIBE Yutaka2018-02-262-4/+2
| | | | | | | | * src/assuan-defs.h [HAVE_W64_SYSTEM] (SOCKET2HANDLE): Care for size of integer. * src/stpcpy.c: No K&R anymore. Signed-off-by: NIIBE Yutaka <[email protected]>
* Fix previous commit.NIIBE Yutaka2018-02-231-2/+2
| | | | Signed-off-by: NIIBE Yutaka <[email protected]>
* Better credential support for other OSes.NIIBE Yutaka2018-02-202-74/+72
| | | | | | | | | | | | | | | | * configure.ac (HAVE_UCRED_H, HAVE_SYS_UCRED_H): Check these headers unconditionally. (HAVE_SO_PEERCRED, HAVE_LOCAL_PEEREID): Remove. (HAVE_STRUCT_SOCKPEERCRED_PID): New. (HAVE_GETPEEREID): New. * src/assuan-socket-server.c (accept_connection_bottom): Add support for OpenBSD, macOS, and FreeBSD. -- Code in gpg-agent/command-ssh.c are integrated. Signed-off-by: NIIBE Yutaka <[email protected]>
* Post release updatesWerner Koch2017-12-072-1/+5
| | | | --
* Release 2.5.1libassuan-2.5.1Werner Koch2017-12-072-2/+4
| | | | Signed-off-by: Werner Koch <[email protected]>
* Fix regression in ASSUAN_SYSTEM_NPTH_IMPL.Werner Koch2017-12-071-2/+2
| | | | | | | | | * src/assuan.h.in (ASSUAN_SYSTEM_NPTH_IMPL): A void fucntion can't assign. -- Fixes-commit: a627350eed5dc32bac41195462f27dee1987b0f5 Signed-off-by: Werner Koch <[email protected]>
* Post release updatesWerner Koch2017-12-072-1/+5
| | | | --
* Release 2.5.0libassuan-2.5.0Werner Koch2017-12-076-6/+6
| | | | Signed-off-by: Werner Koch <[email protected]>
* Allow change of system hooks for assuan_sock_...NIIBE Yutaka2017-12-077-8/+39
| | | | | | | | | | | * src/assuan-socket.c (assuan_sock_set_system_hooks): New. * src/assuan.h.in (assuan_sock_set_system_hooks): New prototype. * src/libassuan.def: Add new function. * src/libassuan.vers: Add new function. -- Co-authored-by: [email protected] Signed-off-by: Werner Koch <[email protected]>
* Use wrapped __assuan_usleep for _assuan_npth_usleep.NIIBE Yutaka2017-12-061-1/+3
| | | | | | | | | | | | | | | * src/assuan.h.in (_assuan_npth_usleep): Wrap __assuan_usleep. -- Assuan should support system hooks for nPth before npth_init. Before the call of npth_init, npth_unprotect and npth_protect do nothing, whiile npth_usleep may crash. No use of npth_usleep is better. Signed-off-by: NIIBE Yutaka <[email protected]>
* Post release updatesWerner Koch2017-12-012-1/+5
| | | | --
* Release 2.4.5libassuan-2.4.5Werner Koch2017-12-012-2/+4
|
* Wrap assuan_close for nPth.NIIBE Yutaka2017-11-301-6/+10
| | | | | | | | | | | * src/assuan.h.in (_assuan_npth_close): New. (_assuan_system_npth): Use _assuan_npth_close. -- In some situation, closesocket on Windows may block. Signed-off-by: NIIBE Yutaka <[email protected]>
* tests: Fix build.Ben Kibbey2017-11-201-0/+3
| | | | | | * tests/fdpassing.c: Include config.h to define GPGRT_ENABLE_ES_MACROS. Signed-off-by: Ben Kibbey <[email protected]>
* Post release updates.Werner Koch2017-11-162-1/+5
| | | | --
* Release 2.4.4libassuan-2.4.4Werner Koch2017-11-163-4/+15
| | | | Signed-off-by: Werner Koch <[email protected]>
* Add special check version request \001\001Werner Koch2017-11-153-1/+4
| | | | | | | * src/assuan.c (assuan_check_version): Handle version "\001\001" * tests/version.c (main): Print extended version info. Signed-off-by: Werner Koch <[email protected]>
* Let configure create the VERSION file.Werner Koch2017-11-154-13/+36
| | | | | | | | | | * autogen.sh: Update from Libgpg-error * configure.ac: Create file VERSION. * Makefile.am (dist-hook): Do not create VERSION. (EXTRA_DIST): Add VERSION. -- GnuPG-bug-id: 3283
* Add an SPDX tag to all core files.Werner Koch2017-11-1556-580/+633
| | | | --
* Fix last commit.Werner Koch2017-11-151-2/+2
| | | | | | | | | * src/system-posix.c (__assuan_usleep): Its ysec and usecs -- Copy+Paste without even compiling was pretty dumb. Signed-off-by: Werner Koch <[email protected]>
* Fix the nanosleep case of __assuan_usleep.Werner Koch2017-11-152-3/+7
| | | | | | | | | | | * src/system-posix.c (__assuan_usleep): Handle full seconds. -- This function would have failed for any value >= 1000000 because the nsec field is limited to 999999999 and the function fails for larger values. Signed-off-by: Werner Koch <[email protected]>
* We can't support fd passing, if the system doesn't support it.NIIBE Yutaka2017-09-061-11/+19
| | | | | | | | | | * configure.ac (check_descriptor_passing): New. (use_descriptor_passing): Use check_descriptor_passing. -- GnuPG-bug-id: 3384 Signed-off-by: NIIBE Yutaka <[email protected]>
* Define INADDR_LOOPBACK if not defined.NIIBE Yutaka2017-09-061-0/+5
| | | | | | | | | | | | | | | | | | * src/assuan-socket.c (INADDR_LOOPBACK): Define. -- INADDR_LOOPBACK is not defined in some systems. When defined, its byte-order is not clearly defined in any specifications. So, best portable way is not to use the macro INADDR_LOOPBACK at all but use 0x7f000001 directly. Nevertheless, for systems which use libassuan, it's host byte-order. So, adding the definition works. GnuPG-bug-id: 2447 Suggested-by: Peter Dyballa Signed-off-by: NIIBE Yutaka <[email protected]>
* configure: Add flag to disable documentation build.Marcus Brinkmann2017-06-192-1/+19
| | | | | | | | | * configure.ac: Add new option --disable-doc. (BUILD_DOC): New automake conditional. * Makefile.am (SUBDIRS): Make doc optional based on BUILD_DOC. (DISTCHECK_CONFIGURE_FLAGS): New variable. Signed-Off-By: Marcus Brinkmann <[email protected]>
* Use gpgrt_free to release memory allocated by gpgrt_asprintf.NIIBE Yutaka2017-05-312-6/+6
| | | | | | | | * src/assuan-logging.c (_assuan_log_control_channel): Use gpgrt_free. * src/debug.c (_assuan_debug, _assuan_debug_add, _assuan_debug_end): Likewise. Signed-off-by: NIIBE Yutaka <[email protected]>
* build: Use macOS' compatibility macros to enable all features.Justus Winter2017-03-081-1/+2
| | | | | | | | | | | | * configure.ac: On macOS, use the compatibility macros to expose every feature of the libc. This is the equivalent of _GNU_SOURCE on GNU libc. -- Not defining this leads to compilation errors or superfluous warnings on macOS. GnuPG-bug-id: 2910 Signed-off-by: Justus Winter <[email protected]>
* EPROTO portability fix.Ben Kibbey2016-09-041-2/+2
| | | | | | | | | | * src/assuan-socket.c(socks5_connect): Return EPROTONOSUPPORT rather than EPROTO. -- OpenBSD, and maybe other systems, doesn't define EPROTO. Signed-off-by: Ben Kibbey <[email protected]>
* Post release updatesWerner Koch2016-07-142-1/+5
| | | | --
* Release 2.4.3.libassuan-2.4.3Werner Koch2016-07-145-6/+28
| | | | | | | * configure.ac: Set LT version to C7/A7/R3. * Makefile.am (distcheck-hook): New. Signed-off-by: Werner Koch <[email protected]>
* build: Update config.{guess,sub} to {2016-05-15,2016-06-20}.Werner Koch2016-07-132-77/+128
| | | | | | | * build-aux/config.guess: Update. * build-aux/config.sub: Update. Signed-off-by: Werner Koch <[email protected]>
* Improve test for inet_pton on Solaris.Werner Koch2016-07-131-0/+10
| | | | | | | | * configure.ac (HAVE_INET_PTON): Add a fallback test. -- GnuPG-bug-id: 1476 Signed-off-by: Werner Koch <[email protected]>
* Allow socket redirection with assuan_socket_connect.Werner Koch2016-07-131-7/+5
| | | | | | | | | * src/assuan-socket-connect.c (assuan_socket_connect): Use set_socketaddr function. -- GnuPG-bug-id: 2253 Signed-off-by: Werner Koch <[email protected]>
* Speedup closing fds before an exec.Werner Koch2016-07-131-0/+40
| | | | | | | | | | | * src/system-posix.c [__linux__]: Include dirent.h. (get_max_fds) [__linux__]: Return the actual used highest fd. -- This is the same code as introduced with the GnuPG commit 512c56af43027149e8beacf259746b8d7bf9b1a2 Signed-off-by: Werner Koch <[email protected]>
* Fix distcheck.Justus Winter2016-07-051-1/+1
| | | | | | * tests/Makefile.am (EXTRA_DIST): Drop compiled test. Signed-off-by: Justus Winter <[email protected]>
* Fix minor memory leaksWerner Koch2016-06-254-19/+24
| | | | | | | | | | | * src/assuan-pipe-connect.c (socketpair_connect): Always free CHILD_FDS. * src/assuan-uds.c (uds_sendfd): Clear CONTROL_U to silence Valgrind. * tests/fdpassing.c (main): Free FNAME. * src/assuan-handler.c (dispatch_command): Remove dead assignment. Signed-off-by: Werner Koch <[email protected]>
* Improve getting of max. number of open fds.Werner Koch2016-01-154-33/+76
| | | | | | | | | | | | | | | | | | | * configure.ac (AC_CHECK_FUNCS): Add getrlimit. * src/assuan-pipe-connect.c (MAX_OPEN_FDS): Remove non-used macro. * src/system.c (MAX_OPEN_FDS): Remove non-used macro. * src/system-posix.c: Include stdint.h, sys/time.h, sys/resource.h. (MAX_OPEN_FDS): Remove non-used macro. (get_max_fds): New. Taken from gnupg/common/exechelp-posix.c. (__assuan_spawn): Use it here. -- This is related to GnuPG-bug-id: 2071 Changing of get_max_fds from LPGLv3+ to LGPLv2+ approved by me as sole author or that code. Signed-off-by: Werner Koch <[email protected]>
* Post release updates.Werner Koch2015-12-022-1/+5
| | | | --
* Release 2.4.2.libassuan-2.4.2Werner Koch2015-12-022-2/+2
| | | | | | * configure.ac: Bump LT version to C7/A7/R2. Signed-off-by: Werner Koch <[email protected]>
* Fix typos found by codespell.Justus Winter2015-12-017-7/+7
| | | | | -- Signed-off-by: Justus Winter <[email protected]>
* New feature to test for SOCKS5 proxy availability.Werner Koch2015-11-274-7/+65
| | | | | | | | | | * src/assuan-socket.c (socks5_connect): Add special treatment for empty hostnames. (_assuan_sock_connect_byname): Add feature to test for proxy availibility. * tests/socks5.c (main): Add option --have-proxy. Signed-off-by: Werner Koch <[email protected]>