2021-03-22 Werner Koch Release 2.5.5. + commit f8cfb565ee461946901ae3bc573abc0023d821b5 2021-03-09 Werner Koch Support Unicode when starting servers on Windows. + commit 9264c2710b64e565982d77410169a3253563a647 * src/assuan-socket.c (utf8_to_wchar): Rename to (_assuan_utf8_to_wchar): this and give global scope. * src/system-w32.c (__assuan_spawn): Use CreateProcessW. 2020-11-17 NIIBE Yutaka m4: Update with newer autoconf constructs. + commit 05535d9863cfc4656554fa5fd8df2f4fbe695178 * src/libassuan.m4: Replace AC_HELP_STRING to AS_HELP_STRING. build: Update to newer autoconf constructs. + commit 12fd96a61033a587482be150a0f955615083ad43 * configure.ac: Use AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_USE_SYSTEM_EXTENSIONS instead of AC_GNU_SOURCE. Use AS_HELP_STRING instead of AC_HELP_STRING. (AC_TYPE_SIGNAL): Remove. (AC_DECL_SYS_SIGLIST): Remove. * m4/Makefile.am (EXTRA_DIST): Update. * m4/gnupg-pth.m4: Remove. * m4/onceonly.m4: Remove. * m4/socklen.m4: Update from gnulib. * m4/libtool.m4: Update from libgpg-error. * m4/gpg-error.m4: Update from libgpg-error. 2020-11-12 Ben Kibbey Fix crash when logging. + commit 0dd8ffbd32fe62b8e4bf565cbd7a9272a2891d01 * src/assuan-logging.c (_assuan_log_control_channel): Use gpgrt_malloc. 2020-10-23 Werner Koch Post release updates. + commit 103c1e7f86de3f40c4f49e67b14376aad58ef81b Release 2.5.4. + commit e368b400f276d5d9868832e7a652ab250dd57555 2020-10-20 Werner Koch Support Unicode socket file names under Windows. + commit 397316e9d0fb7c6a0daf163bf252edb996ffba46 * src/assuan-socket.c [W32]: Always use CreateFileW. Drop support for Windows-CE (read_port_and_nonce): Use gpgrt_fopen. 2020-02-25 NIIBE Yutaka build: Use Requires.private and Libs.private. + commit 034e5450cdd5d886d9f333ef3872d4263b435dbb * configure.ac (LIBASSUAN_CONFIG_LIBS): Remove NETLIBS. * src/libassuan.pc.in: Distinguish static link. * tests/Makefile.am: Don't need to link NETLIBS. 2019-11-27 Werner Koch w32: Fix bad-function-cast warning. + commit 16d3ffa15906037863110f4157ab84e13f579752 * src/w32-fd-t.inc.h (assuan_fd_from_posix_fd): Avoid compiler warning. 2019-08-20 NIIBE Yutaka libassuan.pc: Fix to have -I for Cflags and -L for Libs. + commit 909133baad498ca395a01336f3b49d85322a1d12 * src/libassuan.pc.in (Cflags): Add -I flag. (Libs): Add -L flag. 2019-07-18 Daniel Kahn Gillmor build: Use {CFLAGS,CPPFLAGS,LDFLAGS}_FOR_BUILD for helper programs. + commit 98d7c7ea3f37cf359f7e90192dedee7b1a791172 * src/Makefile.am: pass distinct build flags to CC_FOR_BUILD. 2019-02-11 Werner Koch Release 2.5.3. + commit 4de3154ea6e6e89e34760b7b9e0eed5123bb81f9 2019-01-25 Werner Koch socks5: Fix compiler warning on Windows. + commit 75770b1131e11075c82031bdb220591154df9e64 * src/assuan-socket.c (socks5_connect): Use cast macro to get the hightest socket number. 2019-01-25 NIIBE Yutaka socks5: Implement timeout to detect bogus service. + commit 5e48116051a476e1dcf5f66d9e21d8003b27ad20 * src/assuan-socket.c (TIMEOUT_NOT_WAITING_SOCKS5_FOREVER): New. (socks5_connect): Call 'select' in order to not waiting response forever. 2019-01-16 NIIBE Yutaka build: With LD_LIBRARY_PATH defined, use --disable-new-dtags. + commit 23bf875954329458c0ac6c31e253cba44db8a648 * configure.ac (LDADD_FOR_TESTS_KLUDGE): New for --disable-new-dtags. * tests/Makefile.am (LDADD): Use LDADD_FOR_TESTS_KLUDGE. 2018-12-13 Werner Koch Release 2.5.2. + commit 86e1d17de081081f9302ca58cc2e07ecde3172f6 * configure.ac: Bump LT version to C8/A8/R2. 2018-11-14 NIIBE Yutaka libassuan.vers: Remove duplicates. + commit eac43aadd7c3a249f35c7cce25eac78f4aaa85db server: Don't call _assuan_waitpid on server side. + commit 8153608073b7859eed32b8963b4a052243b4858f * src/server.c (_assuan_server_finish): Never call waitpid here. * src/assuan-socket-server.c (accept_connection_bottom): Indentation. 2018-11-13 NIIBE Yutaka build: Update autogen.rc and autogen.sh. + commit 5e7988d2da3cdc36ebed3b598c0582028f3715ab * autogen.sh: Update from libgpg-error, version 2018-07-10. * autogen.rc: Remove obsolete --with-gpg-error-prefix option. 2018-11-08 NIIBE Yutaka socket: Use union for sockaddr access. + commit ea69c7126ff25d7d44950bf4a70467d577989a34 * src/assuan-socket.c (socks5_connect, use_socks): Use union to access, instead of using cast to the pointer. 2018-11-02 NIIBE Yutaka build: Update gpg-error.m4 and libassuan.m4. + commit 50ed4f7d5b68e94464df7c0646c3424cee2f47de * m4/gpg-error.m4: Update to 2018-11-02. * src/libassuan.m4: Add AC_MSG_NOTICE. 2018-10-29 NIIBE Yutaka build: Update gpg-error.m4 and libassuan.m4. + commit e916b1ece87dee254ea7899b01cd5d2c2ff58021 * m4/gpg-error.m4: Update to 2018-10-26. * src/libassuan.m4: Follow the change of gpgrt-config. 2018-10-26 NIIBE Yutaka libassuan.m4: Better backward compatibility support. + commit 882cbafa9444060524ff132d403a76d61f4273a6 * m4/gpg-error.m4: Update. * src/libassuan.m4: Don't assume libassuan-config is newer. build: Fix libassuan.m4. + commit 0a2a322cb470479cf1f9c8653ba0f943eb30ce0d * src/libassuan.m4: Use AC_PATH_PROG to detect libassuan-config. build: Fix previous commit. + commit 24f80c49fde0fa4e9a7c2818c8a922cc5a4abacc build: Improve libassuan.m4. + commit bb9a89bf5defa793ae9c1939d9476f6dfd46d448 * src/libassuan.m4: Don't try gpgrt-config when LIBASSUAN_CONFIG set. Fall back to detecting libassuan-config, when gpgrt-config doesn't work well. 2018-10-25 NIIBE Yutaka build: Fix previous commit. + commit 0a3192ae33f6b57312cb5bfec0e8fd491c923728 build: Relax requirements. + commit b7922ea7ae2c3d385a7b3b3a5f33987705cfdd2b * m4/gpg-error.m4: Update from libgpg-error 1.33. * src/libassuan.m4: Don't require AM_PATH_GPG_ERROR. Only when gpgrt-config is available and works well, use it. * configure.ac (AM_PATH_GPG_ERROR): No requirement any more. build: Use LIBASSUAN_CONFIG_LIBS (instead of LIB). + commit 1dd2430d8877ffda43bc46f0d5f23fea4801ecf6 * 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. build: Require libgpg-error >= 1.33. + commit 27f4671883e3241ac0fdee3935c8707c816686b6 * configure.ac (AM_PATH_GPG_ERROR): Require 1.33. * m4/gpg-error.m4: Update from libgpg-error 1.33. 2018-10-24 NIIBE Yutaka build: Fix libassuan.pc. + commit 25797256e1588db9f3171a050246008ac66c66b3 * src/libassuan.pc.in: Fix typo. build: Fix previous commit. + commit b9fb02a823f72f97d93344d16d49b73e39a7aaaf build: Compatibility to pkg-config. + commit 9b1666522f7b748cdbdd65cf7f91a76fdde6623b * src/libassuan-config.in: Support --variable and --modversion. build: Make libassuan.m4 use gpg-error-config. + commit f69f4c893f29c1a359cc60f8a87a79d05d9a6c15 * src/libassuan.m4: Use gpg-error-config. build: Provide libassuan.pc, generated by configure. + commit 9c74661d6f8028c616932b02eb5360a2e3587e81 * 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. build: Update gpg-error.m4 from libgpg-error. + commit 34fd79ae2af25a2ac9a60a811229ec9d28926f9d * m4/gpg-error.m4: Update from libgpg-error 1.33. 2018-09-14 Ben Kibbey Fix OpenBSD build. + commit afeae6496f51d28958fd92b04cc933ee6ceb5b61 * configure.ac: Define HAVE_STRUCT_SOCKPEERCRED_PID when found. 2018-03-27 NIIBE Yutaka tests: Exclude tests for Windows build. + commit b270f2ec21b67f5728edae4b2ddf6fe17a0fd25a * tests/Makefile.am [HAVE_W32_SYSTEM] (TESTS, testtools): Fix. 2018-02-26 NIIBE Yutaka Silence two minor warning on Windows. + commit 6c736325c028647dc3283bf723e2e28199e7f45b * src/assuan-defs.h [HAVE_W64_SYSTEM] (SOCKET2HANDLE): Care for size of integer. * src/stpcpy.c: No K&R anymore. 2018-02-23 NIIBE Yutaka Fix previous commit. + commit 35aad6b5d53b292e8e7c52c4eb90535be0580cd2 2018-02-20 NIIBE Yutaka Better credential support for other OSes. + commit 0ad3aafe2c02cdff21e10a59de56b8a2f9532be3 * 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. 2017-12-07 Werner Koch Release 2.5.1. + commit 8fc922c45b66d4e4d1c6c55de617cfeef2c01357 Fix regression in ASSUAN_SYSTEM_NPTH_IMPL. + commit d38817fd0e24acfd295bd7f81b77254afd0cc6d5 * src/assuan.h.in (ASSUAN_SYSTEM_NPTH_IMPL): A void fucntion can't assign. Release 2.5.0. + commit ec92ef4ee3df1fdca7db19f691f64a2f96dcfc71 2017-12-07 NIIBE Yutaka wk@gnupg.org Allow change of system hooks for assuan_sock_... + commit 90dc81682b13a7cf716a8a26b891051cbd4b0caf * 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. 2017-12-06 NIIBE Yutaka Use wrapped __assuan_usleep for _assuan_npth_usleep. + commit a627350eed5dc32bac41195462f27dee1987b0f5 * src/assuan.h.in (_assuan_npth_usleep): Wrap __assuan_usleep. 2017-12-01 Werner Koch Release 2.4.5. + commit a70eaa8a3347660cf2f66ada0fa82cf991a1d7a0 2017-11-30 NIIBE Yutaka Wrap assuan_close for nPth. + commit 0b551de6ca57790c511f32755880bbeaa1cacf85 * src/assuan.h.in (_assuan_npth_close): New. (_assuan_system_npth): Use _assuan_npth_close. 2017-11-20 Ben Kibbey tests: Fix build. + commit a63c4f33d5c10173dd54e2af32b127aa49498bfe * tests/fdpassing.c: Include config.h to define GPGRT_ENABLE_ES_MACROS. 2017-11-16 Werner Koch Release 2.4.4. + commit 3611db285fda5514c25fe18322bc02a2d257ab9e 2017-11-15 Werner Koch Add special check version request \001\001. + commit 4f5596cf09c9e3e7845aa703f68e49168797fd2a * src/assuan.c (assuan_check_version): Handle version "\001\001" * tests/version.c (main): Print extended version info. Let configure create the VERSION file. + commit dfb8654f66f8ddeeb048e195a4f98c0aeed9ffb7 * autogen.sh: Update from Libgpg-error * configure.ac: Create file VERSION. * Makefile.am (dist-hook): Do not create VERSION. (EXTRA_DIST): Add VERSION. Fix last commit. + commit 4d4c82ae2bbe7c0e08391ecf34e1aaadfdab435f * src/system-posix.c (__assuan_usleep): Its ysec and usecs Fix the nanosleep case of __assuan_usleep. + commit 7b408d356094ab0ef0a07904a3ddf3832a8aa197 * src/system-posix.c (__assuan_usleep): Handle full seconds. 2017-09-06 NIIBE Yutaka We can't support fd passing, if the system doesn't support it. + commit 87c2bb5708ff202651fca81d91d5f1e0c898cb07 * configure.ac (check_descriptor_passing): New. (use_descriptor_passing): Use check_descriptor_passing. Define INADDR_LOOPBACK if not defined. + commit 87473cd29ca9d5e3fb1c3172126c1122472d8b90 * src/assuan-socket.c (INADDR_LOOPBACK): Define. 2017-06-19 Marcus Brinkmann configure: Add flag to disable documentation build. + commit 859f9a9754708572a6289853d7d95b9ee3eae589 * 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 2017-05-31 NIIBE Yutaka Use gpgrt_free to release memory allocated by gpgrt_asprintf. + commit 62f3123d3877c8a84961e5f907bf959d4593fa5c * src/assuan-logging.c (_assuan_log_control_channel): Use gpgrt_free. * src/debug.c (_assuan_debug, _assuan_debug_add, _assuan_debug_end): Likewise. 2017-03-08 Justus Winter build: Use macOS' compatibility macros to enable all features. + commit b26b73d04bff10852382113ae361ea5726661510 * 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. 2016-09-04 Ben Kibbey EPROTO portability fix. + commit 8ab3b9273524bd344bdb90dd5d3bc8e5f53ead6e * src/assuan-socket.c(socks5_connect): Return EPROTONOSUPPORT rather than EPROTO. 2016-07-14 Werner Koch Release 2.4.3. + commit 316a040452c0956ecab4ce6b5d99d5e75b36879b * configure.ac: Set LT version to C7/A7/R3. * Makefile.am (distcheck-hook): New. 2016-07-13 Werner Koch build: Update config.{guess,sub} to {2016-05-15,2016-06-20}. + commit cbf913c5d543163fa29703884bae3676a57a3261 * build-aux/config.guess: Update. * build-aux/config.sub: Update. Improve test for inet_pton on Solaris. + commit c52829e32fe9108fc0e39d478eede24ac5e694ac * configure.ac (HAVE_INET_PTON): Add a fallback test. Allow socket redirection with assuan_socket_connect. + commit 678f6063b53e4a2cc919f5a8b9d8bde743839c54 * src/assuan-socket-connect.c (assuan_socket_connect): Use set_socketaddr function. Speedup closing fds before an exec. + commit e64f9a4af5a379f5a9fde59f0f944cd10ccfc6ea * src/system-posix.c [__linux__]: Include dirent.h. (get_max_fds) [__linux__]: Return the actual used highest fd. 2016-07-05 Justus Winter Fix distcheck. + commit 70bb71e51462e9d81eff80ef8308cd8e15ea96ca * tests/Makefile.am (EXTRA_DIST): Drop compiled test. 2016-06-25 Werner Koch Fix minor memory leaks. + commit d60ef7192ad95ec2ec1aef436742f56e6c750b89 * 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. 2016-01-15 Werner Koch Improve getting of max. number of open fds. + commit 7101fcbb662220326f2fc786219c1853f27a5298 * 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. 2015-12-02 Werner Koch Release 2.4.2. + commit e0516c5bbac23aa2d2a0b59caad67fca00b3183f * configure.ac: Bump LT version to C7/A7/R2. 2015-11-27 Werner Koch New feature to test for SOCKS5 proxy availability. + commit 05ac2dc5c77fa4b87e98508c1b15fd254806b1ce * 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. 2015-11-26 Werner Koch Protect connect system hook against blocking (nPth). + commit 18ca1593c62d62bb72b4e7e14347cd221c187138 * src/assuan.h.in (ASSUAN_SYSTEM_NPTH_IMPL): Add wrapper for connect. Do not use size_t with _assuan_read. + commit 9f24377f9f19983926233af8b475328bb7fe9e65 * src/assuan-socket.c (do_readn): Use ssize_t for N. 2015-11-23 Werner Koch Release 2.4.1. + commit add6953a916dafa93ae152bffc937a93ab5b55f8 * configure.ac: Bump LT version to C7/A7/R1. Make socks5 test case a bit more robust. + commit 429ff31fe72db8afedaad3f2d089c9c3b5dae41e * tests/socks5.c (main): Call gpgrt_init. Check for write and read errors. Allow building of some parts even w/o getaddrinfo. 2015-11-21 Werner Koch Also try port 9150 in Tor mode. + commit 5b927b3dcffa2918e6b503c4907923aadbad0865 * src/assuan-socket.c (TOR_PORT2): New. (_assuan_sock_wsa2errno): Map WSAECONNREFUSED. (socks5_connect): Fall back to TOR_PORT2. 2015-11-21 Andre Heinecke Fix windows build with mingw-w64 2.0.x. + commit cef28d96debcf94003f94f3ea2181e80aff0b665 * src/assuan-socket.c: Add errno values not defined by mingw-w64 2.0 2015-11-03 Werner Koch Release 2.4.0. + commit 0beb1784e7b72e31ecec441ee0a8ba4cef63d853 * configure.ac: Bump LT version to C7/A7/Ro. w32: Use assuan_fd_t with the new socket functions. + commit 6034cc02e38cb947800f904f678c4ef5ff9c2050 * src/assuan-socket.c (socks5_connect): Use assuan_fd_t instead of int. (_assuan_sock_connect): Ditto. (_assuan_sock_connect_byname): Ditto. Use asprintf function from libgpg-error. + commit 7279c3ce9283723bd7f670051cd8a2087f62cd7f * configure.ac: Require libgpg-error 1.17. (vasprintf): Remove ac_replace. * src/assuan-defs.h [!HAVE_VASPRINTF]: Remove replace wrapper. * src/assuan-logging.c (_assuan_log_control_channel): (_assuan_log_control_channel): s/asprintf/gpgrt_asprintf/. * src/debug.c (_assuan_debug): s/vasprintf/gpgrt_vasprintf/. (_assuan_debug_begin): Ditto. (_assuan_debug_add): Ditto. s/asprintf/gpgrt_asprintf/. 2015-10-26 Werner Koch Tests: Cope with broken HTTP servers. + commit dda9c84bc67326a6d2bef1e5c45b5de8b67eeb40 * tests/socks5.c (main): Use GET instead of HEAD Support hostname based SOCKS5 connection. + commit 4061ac57ca84a1e0ed779096897a160d49b50c03 * src/assuan.h.in (ASSUAN_SOCK_SOCKS): New. (ASSUAN_SOCK_TOR): New. (assuan_sock_connect_byname): New. * src/libassuan.def, src/libassuan.vers: Add that function. * src/assuan-socket.c (socks5_connect): Add args socksport, credentials, hostname, and hostport. Implement user/password authentication and domainname address type. Change callers accordingly. (_assuan_sock_connect_byname): New. (assuan_sock_connect_byname): New. * tests/socks5.c (main): Add options --byname, --user, and --pass. 2015-10-18 Werner Koch Support SOCKS5 for assuan_sock_connect. + commit 85ece74a11718338dcd76d6e43ea8100183df02f * src/assuan-socket.c: Include netinet/in.h and arpa/inet.h. (SOCKS_PORT, TOR_PORT): New constants. (tor_mode): New variable. (_assuan_sock_set_flag): Add flags "tor-mode" and "socks". (_assuan_sock_get_flag): Ditto. (do_readn, do_writen): Always build. (socks5_connect): New. (use_socks): New. (_assuan_sock_connect): Divert to socks5_connect if requested. * tests/socks5.c: New. * configure.ac (AH_TOP): Define GPGRT_ENABLE_ES_MACROS. (AC_CHECK_FUNC): Check for getaddrinfo. * tests/Makefile.am (testtools): New. Add socks5. (AM_LDFLAGS): Add -no-install for easier debugging. 2015-08-28 Werner Koch Post release updates. + commit 3aec1981cfd0a7b29750965c065a45ad928e66dc Release 2.3.0. + commit cdb1e6484d6f094f8e795bfec5b314ec524a90f8 * configure.ac: Set LT version to C6/A6/R0. Support Cygwin local sockets. + commit 6d4a8ee2a6c749eec70bd3ae804f21456e375727 * src/assuan-socket.c (cygwin_fdtable, cygwin_fdtable_cs): New. (is_cygwin_fd, insert_cygwin_fd, delete_cygwin_fd): New. (assuan_sock_init) [W32]: Init the CS. (assuan_sock_deinit) [W32]: Deinit the CS. (read_port_and_nonce): Add arg cygwin and detect Cygwin socket files. (_assuan_sock_set_flag): Add "cygwin" flag. (_assuan_sock_get_flag): Ditto. (do_readn, do_writen): New. (_assuan_sock_bind): Create a Cygwin socket file depending on a socket flag. (_assuan_sock_connect): Handle the cygwin socket protocol. (_assuan_sock_check_nonce): Ditto. Read up remaining lines in assuan_inquire after reaching MAXLEN. + commit 5a52404c704d0e99629a2db79dda17e3b95c9680 * src/assuan-inquire.c (assuan_inquire): Clear return args on error. Read up remaining lines after MAXLEN has been hit. 2015-08-25 Werner Koch Add configure option --enable-build-timestamp. + commit d4bef26a49879761867ad6d57113341915db6acf * configure.ac (BUILD_TIMESTAMP): Set to "" by default. 2015-08-07 Werner Koch Wipe the context before releasing as an extra safeguard. + commit b5cbf11ccece653819a782a3e8adbb785fe36d7d * src/assuan-defs.h (wipememory2, wipememory): New. Taken from GnuPG. * src/assuan.c (assuan_release): Wipe the context. 2015-06-30 Werner Koch Add assuan_sock_set_flag and assuan_sock_get_flag. + commit 87def94c86d5272c23daf2b5ea446c5553aa1d90 * src/assuan-socket.c (_assuan_sock_set_flag): New. (assuan_sock_set_flag): New. (_assuan_sock_get_flag, assuan_sock_get_flag): New. * src/assuan.h.in (assuan_sock_set_flag): New. (assuan_sock_get_flag): New. * src/libassuan.def: Add them. * src/libassuan.vers: Add them. 2015-06-26 Werner Koch Return GPG_ERR_SOURCE_ASSUAN on errors with no CTX. + commit cd8face27cc96cb0092c920e6e5bdee81a61c420 * src/assuan-defs.h (_assuan_error): Use error source Assuan if no CTX is given. Do not segv if NULL is passed for CTX in sendfd and receivefd. + commit 0da6afa864cfd68333941d6332d762c82928946c * src/assuan-buffer.c (assuan_sendfd): Check that CTX is not NULL. (assuan_receivefd): Ditto. 2015-06-01 Neal H. Walfield Fix documentation for assuan_inquire. + commit c6b131949bb6c77392af2cbbbeb8ea1bed129b79 * doc/assuan.texi (assuan_inquire): Fix and improve description of this function. 2015-05-12 Werner Koch Release 2.2.1. + commit 1f0896c86b0d6b02a71b90f122bf3fa90e75fb9d 2015-05-07 Daniel Kahn Gillmor clean up assuan documentation. + commit e6e51c067181a94d92353f5af2340e75a839c4e3 * doc/assuan.texi: fix documentation 2015-05-07 Neal H. Walfield Documentation cleanups. + commit ccd1811479e9d30dcd207a5031eda07958459fe2 2015-01-30 Werner Koch w32: Use -static-libgcc to avoid linking to libgcc_s_sjlj-1.dll. + commit 5cdc9c457f4e549491fa3f0db75119abd078b070 * src/Makefile.am (extra_ltoptions): New. (libassuan_la_LDFLAGS): Use it. 2015-01-28 Werner Koch Require the use of automake 1.14. + commit 77dfed442db065ce0c9e0afb8a0f6fd3ae169a64 * configure.ac (AM_INIT_AUTOMAKE): Add serial-tests. * src/Makefile.am (INCLUDES): Rename to AM_CPPFLAGS and remove the nonexistent ../include/. w32: Fix assuan_connect_fd. + commit 91a98e2c812dccd73c57badd02da7642e0421c8e * src/assuan-socket-connect.c (assuan_socket_connect_fd): Map fd to assuan_fd_t. Fix gcc warning about unused values. + commit 5e0a01fad54ca16a4cff2c0fc33bf16aac62f417 * src/debug.h: Remove traling ", 0" expression part where not useful. 2015-01-27 Werner Koch Fix WSAEADDRINUSE EADDRINUSE mismatch. + commit ab5264b20f75a4dcc8baf2e672394d3a84c60870 * src/w32-sock-nonce.inc.h (EADDRINUSE): Avoid redefining. * src/assuan-socket.c (_assuan_sock_bind): Set error to EADDRINUSE. 2014-12-11 Werner Koch Release 2.2.0. + commit 261498de39a10a00d5035f2481d33319c983875f * configure.ac: Set LT version to C5/A5/R0. (AM_INIT_AUTOMAKE): Add options. * Makefile.am (AUTOMAKE_OPTIONS): Remove. 2014-11-28 Werner Koch Do not allow LFs in the redirected name. + commit 0fce017100c5896cf9dc1fcbd4a39053651c3910 * src/assuan-socket.c (eval_redirection): Stop parsing at the first LF. Implement socket file redirection. + commit 1f99031cb55e88840d98dd71381b2bc2618406fc * configure.ac (AC_CHECK_FUNC): Check for stat. * src/assuan-socket.c (SUN_LEN): Add. (eval_redirection): New. (_assuan_sock_connect) [!W32]: Implement socket file redirection. (_assuan_sock_set_sockaddr_un): New. (assuan_sock_set_sockaddr_un): New. 2014-11-07 Werner Koch Release 2.1.3. + commit 3003c5d70febc8d4b6be9c95ca6deda7b033cabc * configure.ac: Set LT version to C4/A4/R3. w32: Remove I/O delays due to our 100ms delay after an EAGAIN. + commit 1023508f210cd136992661c01b55b428de86a182 * src/system-w32.c (__assuan_read): Retry using select. Map WSAECONNRESET to EPIPE. (__assuan_write): Retry using select. * src/assuan-buffer.c (readline) [W32]: Return EOF instead of EPIPE. 2014-08-17 Werner Koch Release 2.1.2. + commit a5d7f4999f4aa844d9446bd4524cb6a47219826c * configure.ac: Set LT version to C4/A4/R2. Update build system. + commit 49a930a613b280fdd55e6d558a2ae414bdbbf66e * autogen.sh: Add --find-version stuff. Taken from GnuPG. * configure.ac: Change accordingly Fix possible segv in a call to _assuan_debug. + commit b6da2da96780ec270439eba5569a618cabe4da02 * src/context.c (assuan_set_error): Do not pass NULL for %s in the trace function. 2014-06-30 Werner Koch Avoid a vasprintf call if tracing has not been enabled. + commit 134c045c7d1f93ce61f62193d33af8a6e8825543 * src/debug.c (_assuan_debug): Check wether CAT want to be logged. 2014-04-16 Werner Koch Fix NULL deref when tracing is enabled and malloc fails. + commit 326a2918d645dd3d38dbc928e4452c66cb9757f1 * src/debug.h (TRACE_ERR): Check CTX before a deref. * src/assuan-defs.h (_assuan_error): Turn into an inline function and check CTX before a deref. 2014-01-10 Werner Koch Use the generic autogen.sh script. + commit a5a6aea1ef063b9c6801b5f5ff482b7599ec4b2e * autogen.rc: New. * Makefile.am (EXTRA_DIST): Add it. * autogen.sh: Update from GnuPG. Move helper scripts to build-aux. + commit a9c9aaca70c770cf5f9d05ce2417343490e45627 * compile, config.guess, config.rpath, config.sub, depcomp, ltmain.sh * doc/mdate-sh, doc/texinfo.tex, install-sh, missing: Move to build-aux/. * Makefile.am (EXTRA_DIST): Remove config.rpath - it is implicitly distributed. * configure.ac (AC_CONFIG_AUX_DIR): New. (AM_SILENT_RULES): New. 2013-12-03 Werner Koch Add build support for ppc64le. + commit 46b6d97b4a396c16df53e82872c3cc772d427623 * config.guess, config.sub: Update to latest version (2013-11-29). * m4/libtool.m4: Add patches for ppc64le. 2013-06-24 Werner Koch Release 2.1.1. + commit cf1e6f64c83194a42012cc786a0da2814be72883 * configure.ac: Set LT version to C4/A4/R1. 2013-06-19 Werner Koch Changes to support W64. + commit 6ba18ca32c8669fa76cc10de3382f78212ca51a8 * configure.ac (have_dosish_system): Set for W64. * src/assuan-defs.h (SOCKET2HANDLE, HANDLE2SOCKET): Add versions for W64. * src/assuan-handler.c (assuan_command_parse_fd) [W64]: Use strtoull to parse an FD. 2013-06-17 Werner Koch Add hack to have different names for 64 bit Windows DLLs. + commit f88eb9e98f491b503f46c7d995c9651f1e46b9e9 * ltmain.sh: Prefix the SO number for W64 with a "6". Support building for w64. + commit 61f5ca41e9d44bdd266cb4e91abe45fc5f2ddf3e 2013-02-22 Werner Koch Release version 2.1.0. + commit 7d227acff329a921f76cd4c391d7cbae40115672 * configure.ac: Bump LT version to C4/A4/R0. Add assuan_check_version and ASSUAN_VERSION_NUMBER. + commit ab2e01598446120dac09e49c63a5c8fc27a1bc32 * 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. w32: Fix header inclusion order for newer toolchain. + commit a4d64a06f9b80ed58cd8f9ca4a68393733c36b1f * src/system-w32.c: Do not include windows.h here. Beautify the BUILD_TIMESTAMP and put it into the binary. + commit c6c80414201a1c58e24220ff9ea214c7164ccc8d * 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. w32ce: Adjust to changed API and make it build again. + commit 3eec7a1f67dc1af2199d91ee017be26b24c389b6 * 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) w32: Allow overriding a toolchain via ~/.gnupg-autogen.rc. + commit e321c69006a12577e41408a2e1ea726a19b75c00 * autogen.sh (build-w32): Include {amd64,w32_toolprefixes). Modernize release version management. + commit 807d9cd2a27c62ab6c91b9ec1dd11675ec0382d6 * configure.ac: Update to modern git version checking. Remove svn support. * src/versioninfo.rc.in: Update copyright years. Fix --with-{lib,}gpg-error-prefix. + commit 97ce28a430129ce997783c6196ccfe737f5b3007 * m4/gpg-error.m4: Update from current gpg-error git. Update helper scripts. + commit 0884e91324232b4d7dfdc8fad0dea9948519845b * compile, config.guess, config.rpath, config.sub, depcomp, * install-sh, mkinstalldirs: Update to current versions from gnulib. 2013-02-07 Werner Koch Make assuan_transact more robust against inquiry errors. + commit f17039b1ece8a8b2c56766f86b002536c7599699 * src/client.c (assuan_transact): Send an CAN after an error return from the inquiry callback. 2012-11-26 Ben Kibbey Check for getpeerucred(). + commit cd96daf5a4ddb4a7e9e373220a7aaead0a97c8cf * configure.ac: check for getpeerucred() which (Open)Solaris/SunOS uses. * src/assuan-socket-server.c (accept_connection_bottom): make use of getpeerucred(). 2012-11-21 Ben Kibbey Support LOCAL_PEEREID (NetBSD) and getpeereid() (FreeBSD) + commit 76ea68c2a77cafe2424fe6bc97403c9d9a6b1e95 * configure.ac: check for LOCAL_PEEREID and getpeereid(). * src/assuan-socket-server.c (accept_connection_bottom): make use of LOCAL_PEEREID and getpeereid(). 2012-11-16 Werner Koch Improve parsing of the GIT revision number. + commit 76ceeb3582bba138227bf76167b451ee017d38fc * configure.ac (mmm4_revision): Use git rev-parse. Print version information at the end of a configure run. Fix non-portable use of chmod in autogen.sh. + commit e6688eebc03fda7c8c81789c24ad13c06f648a9f * autogen.sh: Remove option -c from chmod. 2012-06-05 W. Trevor King src/assuan-handler.c: add help strings for standard commands. + commit ca3f8e4b5bbe5549bd7804cf3bff36be21db1b82 2012-04-20 W. Trevor King Update example code for pipe server. + commit 7cf99d04d864fb308159fb928057f59eb4e5a110 * doc/assuan.texi: Fix server example code to use assuan_new. Wrap reference to END with @code. + commit f40f8033b21bad8801b43676b486dab80c532397 * doc/assuan.texi: Wrap reference to END with @code{}. 2012-04-20 Werner Koch State new contribution rules. + commit 861d19e028af70c7009640efc98eb485fff546d7 * doc/DCO: New. * doc/HACKING: Doument new rules. Give examples for commit logs. 2012-01-25 Werner Koch Make new functions also visible on non-W32. + commit 5c00c7cc2901a879927a5756e1bb7ecf49439ebc * 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. Require gitlog-to-changelog to be installed. + commit dbfbc908121afd1cf3177249d9378fc787a9cff7 * Makefile.am (GITLOG_TO_CHANGELOG): New. (gen-ChangeLog): Use installed version of gitlog-to-changelog. * build-aux/gitlog-to-changelog: Remove from repo. 2012-01-24 Marcus Brinkmann Fix npth port file handle use. + commit cef55142f2552538714f8296479f58a63d14a239 * 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. 2012-01-03 Marcus Brinkmann Make assuan portable to NPTH. + commit e23e6f2bd49f415f4fdca013e4f61e1b17995a51 2011-12-20 Werner Koch Post release version number update. + commit 6ff1083166366b9d627e5e909f245cfb119b27a7 Release version 2.0.3. + commit 3ebe00d6854f110301a2742041d6d5c3e95d8e6b * configure.ac: Bump LT version to C3/A3/R0. Update gitlog-to-changelog to support --tear-off. + commit 132c70fe697346a1c9f75d51572835f6d4951b3b 2011-12-13 Werner Koch Fix assuan_get_pid for pipe servers. + commit edbe8fdcea1a2c05999861f58d5f67d2e76610e0 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. + commit ff9a8c2e64ea2345f2ebe85a527b7c43033ba53e * src/vasprintf.c (checkit): Set flag for a test failure. (main): Return error on any failure. 2011-12-01 Werner Koch Generate the ChangeLog from commit logs. + commit 165a57d29d2ac84159aa48b171b6098c629bc798 * 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. 2011-12-01 Werner Koch NB: Changes done before December 1st, 2011 are described in per directory files named ChangeLog-2011. See doc/HACKING for details. ----- Copyright (C) 2011 Free Software Foundation, Inc. Copying and distribution of this file and/or the original GIT commit log messages, with or without modification, are permitted provided the copyright notice and this notice are preserved.