aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Release 2.5.6libassuan-2.5.6Werner Koch2023-06-192-2/+12
|
* Flush data before clearing the confidential flag.Werner Koch2023-06-161-1/+3
| | | | | | | | | | | | | * src/context.c (assuan_end_confidential): Flush data. -- This is required so that for example gpg-agent won't reveal a password in a log file if requested via get_passphrase --data X X X X (Note that --data is required in any case because the default of returing it with the OK line can't be secured).
* build: Fix listing m4 files.NIIBE Yutaka2023-06-161-1/+1
| | | | | | | | | * m4/Makefile.am (EXTRA_DIST): Add ax_cc_for_build.m4 and gpg-error.m4. Remove sys_socket_h.m4. -- Signed-off-by: NIIBE Yutaka <[email protected]>
* build: Better cross build support.NIIBE Yutaka2023-06-163-18/+82
| | | | | | | | | | * configure.ac: Use AX_CC_FOR_BUILD. * src/Makefile.am: Use EXEEXT_FOR_BUILD. * m4/ax_cc_for_build.m4: New from libgpg-error. -- Signed-off-by: NIIBE Yutaka <[email protected]>
* tests: Use -no-fast-install LDFLAGS for Windows.NIIBE Yutaka2023-06-161-0/+4
| | | | | | | | * tests/Makefile.am [HAVE_W32_SYSTEM] (AM_LDFLAGS): Conditionalize. -- Signed-off-by: NIIBE Yutaka <[email protected]>
* build: Update gpg-error.m4.NIIBE Yutaka2023-06-161-23/+36
| | | | | | | | * m4/gpg-error.m4: Update from libgpg-error master. -- Signed-off-by: NIIBE Yutaka <[email protected]>
* doc: Update the description about pkg-config.NIIBE Yutaka2023-06-161-12/+14
| | | | | | -- Signed-off-by: NIIBE Yutaka <[email protected]>
* Fix an explanation for socket on Windows.NIIBE Yutaka2023-06-161-1/+1
| | | | | | -- Signed-off-by: NIIBE Yutaka <[email protected]>
* build: Update gpg-error.m4.NIIBE Yutaka2023-06-161-1/+5
| | | | | | | | * m4/gpg-error.m4: Update from libgpg-error 1.46. -- Signed-off-by: NIIBE Yutaka <[email protected]>
* build: Update config.guess, config.sub, and config.rpath.NIIBE Yutaka2023-06-163-1965/+2324
| | | | | | | | | | | * build-aux/config.guess: Update from upstream. * build-aux/config.sub: Ditto. * build-aux/config.rpath: Update from gettext 0.21. -- GnuPG-bug-id: 6078 Signed-off-by: NIIBE Yutaka <[email protected]>
* build: Update gpg-error.m4.NIIBE Yutaka2023-06-161-1/+2
| | | | | | | | * m4/gpg-error.m4: Update from libgpg-error. -- Signed-off-by: NIIBE Yutaka <[email protected]>
* Fix the previous commit.NIIBE Yutaka2023-06-161-1/+1
| | | | | | -- Signed-off-by: NIIBE Yutaka <[email protected]>
* Don't access NULL by wipememory.NIIBE Yutaka2023-06-161-1/+1
| | | | | | | | | | | * src/assuan-inquire.c (assuan_inquire): Check mb->buf. -- There is a case where mb->buf may be cleared already by get_membuf. Fixes-commit: d812e28af637144d078005887cb7519d7a2d0c58 Signed-off-by: NIIBE Yutaka <[email protected]>
* client: Wipe the inbound buffer when CONFIDENTIAL.NIIBE Yutaka2023-06-161-0/+2
| | | | | | | | | * src/client.c (assuan_transact): Wipe the buffer. -- GnuPG-bug-id: 5977 Signed-off-by: NIIBE Yutaka <[email protected]>
* server,client: Wipe the outbound buffer when CONFIDENTIAL.NIIBE Yutaka2023-06-161-0/+2
| | | | | | | | | * src/assuan-buffer.c (assuan_send_data): Wipe the buffer. -- GnuPG-bug-id: 5977 Signed-off-by: NIIBE Yutaka <[email protected]>
* server: Wipe out the memory used by assuan_inquire if CONFIDENTIAL.NIIBE Yutaka2023-06-161-1/+7
| | | | | | | | | | * src/assuan-inquire.c (assuan_inquire): Wipe the memory and inbound buffer. -- GnuPG-bug-id: 5977 Signed-off-by: NIIBE Yutaka <[email protected]>
* build: Update for newer autoconf.NIIBE Yutaka2021-12-222-25/+1
| | | | | | | | | | * configure.ac (AC_PREREQ): Require >= 2.69. (AC_HEADER_STDC): Remove. * m4/sys_socket_h.m4: Remove. -- Signed-off-by: NIIBE Yutaka <[email protected]>
* build,w32: Update configure script.NIIBE Yutaka2021-12-171-1/+1
| | | | | | * configure.ac: Don't use gl_HEADER_SYS_SOCKET, but check winsock2.h. Signed-off-by: NIIBE Yutaka <[email protected]>
* libtool: Link without -flat_namespace for macOS.NIIBE Yutaka2021-11-101-9/+4
| | | | | | | | | | | | | | | | | | * m4/libtool.m4: Not setting 10.0 to MACOSX_DEPLOYMENT_TARGET when not defined. Only specify -flat_namespace to linker for specific (older) versions and hosts. -- Original patch was by: Jeremy Huddleston Sequoia <[email protected]> in https://lists.gnu.org/archive/html/libtool-patches/ 2020-06/msg00001.html Reported-by: Aleix Conchillo Flaque GnuPG-bug-id: 5610 Signed-off-by: NIIBE Yutaka <[email protected]>
* build: Simplify configure.ac.NIIBE Yutaka2021-08-051-1/+1
| | | | | | * configure.ac (AC_CHECK_HEADERS): Remove string.h. Signed-off-by: NIIBE Yutaka <[email protected]>
* build: _DARWIN_C_SOURCE should be 1.NIIBE Yutaka2021-05-271-1/+1
| | | | | | | | | | * configure.ac (*-apple-darwin*): Set _DARWIN_C_SOURCE 1. -- GnuPG-bug-id: 5440 Reported-by: Jay Freeman Signed-off-by: NIIBE Yutaka <[email protected]>
* build: Update gpg-error.m4.NIIBE Yutaka2021-04-211-50/+69
| | | | | | * m4/gpg-error.m4: Update from libgpg-error. Signed-off-by: NIIBE Yutaka <[email protected]>
* Post release updateslibassuan-3.0-baseWerner Koch2021-03-222-1/+5
| | | | --
* Release 2.5.5.libassuan-2.5.5Werner Koch2021-03-226-6/+13
|
* Support Unicode when starting servers on Windows.Werner Koch2021-03-093-21/+36
| | | | | | | | | * 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. -- GnuPG-bug-id: 4398
* m4: Update with newer autoconf constructs.NIIBE Yutaka2020-11-171-1/+2
| | | | | | * src/libassuan.m4: Replace AC_HELP_STRING to AS_HELP_STRING. Signed-off-by: NIIBE Yutaka <[email protected]>
* build: Update to newer autoconf constructs.NIIBE Yutaka2020-11-177-229/+84
| | | | | | | | | | | | | | | | * 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. Signed-off-by: NIIBE Yutaka <[email protected]>
* Fix crash when logging.Ben Kibbey2020-11-121-1/+1
| | | | | | * src/assuan-logging.c (_assuan_log_control_channel): Use gpgrt_malloc. Signed-off-by: Ben Kibbey <[email protected]>
* Post release updatesWerner Koch2020-10-232-1/+6
|
* Release 2.5.4libassuan-2.5.4Werner Koch2020-10-236-6/+12
|
* Support Unicode socket file names under Windows.Werner Koch2020-10-202-10/+6
| | | | | | | | | | * src/assuan-socket.c [W32]: Always use CreateFileW. Drop support for Windows-CE (read_port_and_nonce): Use gpgrt_fopen. -- GnuPG-bug-id: 5098 Signed-off-by: Werner Koch <[email protected]>
* build: Use Requires.private and Libs.private.NIIBE Yutaka2020-02-253-6/+3
| | | | | | | | | * configure.ac (LIBASSUAN_CONFIG_LIBS): Remove NETLIBS. * src/libassuan.pc.in: Distinguish static link. * tests/Makefile.am: Don't need to link NETLIBS. GnuPG-bug-id: 4624 Signed-off-by: NIIBE Yutaka <[email protected]>
* w32: Fix bad-function-cast warning.Werner Koch2019-11-271-0/+7
| | | | | | | | | | | | | * src/w32-fd-t.inc.h (assuan_fd_from_posix_fd): Avoid compiler warning. -- The actual warning was: warning: cast from function call of type 'intptr_t' {aka 'int'} to non-matching type 'void *' [-Wbad-function-cast] return (assuan_fd_t)(HANDLE) _get_osfhandle (fd); Signed-off-by: Werner Koch <[email protected]>
* doc: Minor comment cleanup and beautification.Werner Koch2019-11-272-63/+81
| | | | --
* libassuan.pc: Fix to have -I for Cflags and -L for Libs.NIIBE Yutaka2019-08-201-2/+2
| | | | | | | | * src/libassuan.pc.in (Cflags): Add -I flag. (Libs): Add -L flag. GnuPG-bug-id: 4678 Signed-off-by: NIIBE Yutaka <[email protected]>
* build: Use {CFLAGS,CPPFLAGS,LDFLAGS}_FOR_BUILD for helper programs.Daniel Kahn Gillmor2019-07-181-1/+2
| | | | | | | | | | | | | | | | | | * src/Makefile.am: pass distinct build flags to CC_FOR_BUILD. -- We don't want to use the standard CFLAGS, CPPFLAGS, and LDFLAGS for build helper tools because when cross-compiling they might include choices that only make sense for the platform we are aiming to build for. That said, the environment might offer standard build flags for non-cross-built helper tools too. So we include those flags in the right place here. Debian-bug-id: 932213 Signed-off-by: Daniel Kahn Gillmor <[email protected]>
* Post release updatesWerner Koch2019-02-112-1/+5
| | | | --
* Release 2.5.3libassuan-2.5.3Werner Koch2019-02-116-7/+16
|
* socks5: Fix compiler warning on Windows.Werner Koch2019-01-251-1/+1
| | | | | | | | | * src/assuan-socket.c (socks5_connect): Use cast macro to get the hightest socket number. -- GnuPG-bug-id: 3381 Signed-off-by: Werner Koch <[email protected]>
* socks5: Implement timeout to detect bogus service.NIIBE Yutaka2019-01-251-0/+26
| | | | | | | | | | | * src/assuan-socket.c (TIMEOUT_NOT_WAITING_SOCKS5_FOREVER): New. (socks5_connect): Call 'select' in order to not waiting response forever. -- GnuPG-bug-id: 3381 Signed-off-by: NIIBE Yutaka <[email protected]>
* build: With LD_LIBRARY_PATH defined, use --disable-new-dtags.NIIBE Yutaka2019-01-162-1/+37
| | | | | | | | | | * configure.ac (LDADD_FOR_TESTS_KLUDGE): New for --disable-new-dtags. * tests/Makefile.am (LDADD): Use LDADD_FOR_TESTS_KLUDGE. -- GnuPG-bug-id: 4298 Signed-off-by: NIIBE Yutaka <[email protected]>
* Post release updatesWerner Koch2018-12-132-1/+5
| | | | --
* Release 2.5.2libassuan-2.5.2Werner Koch2018-12-136-7/+13
| | | | | | * configure.ac: Bump LT version to C8/A8/R2. Signed-off-by: Werner Koch <[email protected]>
* libassuan.vers: Remove duplicates.NIIBE Yutaka2018-11-141-2/+0
| | | | Signed-off-by: NIIBE Yutaka <[email protected]>
* server: Don't call _assuan_waitpid on server side.NIIBE Yutaka2018-11-142-7/+6
| | | | | | | | | | | | | | | | | | | | | | | | | * src/server.c (_assuan_server_finish): Never call waitpid here. * src/assuan-socket-server.c (accept_connection_bottom): Indentation. -- The waitpid/wait only makes sense by parent catching its child process. Since the commit 93595de1ede96dedfcaa93c7442536a2cde0b6ef (for version 0.6.5, in 2004-04-21), CTX->PID on server side has client PID. In the commit cb53f862ff2a864da822d1c16d3df6a02157608b (2009-11-19), call of _assuan_waitpid was introduced in assuan_server_finish, but this call always fails because the process is not a child process of server. (If we could catch exit of non-child process, it might cause a dead lock, since client does call waitpid too.) The indentation fix is to show the place where PID is assigned. Signed-off-by: NIIBE Yutaka <[email protected]>
* build: Update autogen.rc and autogen.sh.NIIBE Yutaka2018-11-132-22/+42
| | | | | | | * autogen.sh: Update from libgpg-error, version 2018-07-10. * autogen.rc: Remove obsolete --with-gpg-error-prefix option. Signed-off-by: NIIBE Yutaka <[email protected]>
* socket: Use union for sockaddr access.NIIBE Yutaka2018-11-081-15/+21
| | | | | | | | | | | | | | | | | | | | | | | * src/assuan-socket.c (socks5_connect, use_socks): Use union to access, instead of using cast to the pointer. -- In some machine like 32-bit ARM, alignment requirement of struct sockaddr and struct sockaddr_in (or struct sockaddr_in6) is different. Although it is completely valid to use the value of the address by cast here, because the object should be allocated by struct sockaddr_in or struct sockaddr_in6 to be referred by struct sockaddr *. But compiler doesn't assume such a usage, thus, emits warnings. The API with struct sockaddr * is a bit difficult thing. I examined GNU C library for the implementation of the connect function, it uses transparent union, the GCC feature. It would be too much, if we do same thing here. Signed-off-by: NIIBE Yutaka <[email protected]>
* build: Update gpg-error.m4 and libassuan.m4.NIIBE Yutaka2018-11-022-13/+47
| | | | | | | * m4/gpg-error.m4: Update to 2018-11-02. * src/libassuan.m4: Add AC_MSG_NOTICE. Signed-off-by: NIIBE Yutaka <[email protected]>
* build: Update gpg-error.m4 and libassuan.m4.NIIBE Yutaka2018-10-292-25/+31
| | | | | | | * m4/gpg-error.m4: Update to 2018-10-26. * src/libassuan.m4: Follow the change of gpgrt-config. Signed-off-by: NIIBE Yutaka <[email protected]>
* libassuan.m4: Better backward compatibility support.NIIBE Yutaka2018-10-262-10/+35
| | | | | | | * m4/gpg-error.m4: Update. * src/libassuan.m4: Don't assume libassuan-config is newer. Signed-off-by: NIIBE Yutaka <[email protected]>