aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Release 3.0.1libassuan-3.0.1Werner Koch2024-06-243-3/+8
| | | | | | | * src/libassuan.vers: Change to LIBASSUAN_2.0. -- GnuPG-bug-id: 7163
* Post release updatesWerner Koch2024-06-183-5/+6
| | | | --
* Release 3.0.0libassuan-3.0.0Werner Koch2024-06-182-7/+19
| | | | | * configure.ac: Set LT age to zero because we really have an API change. Note that Current was already bumped up.
* Add release targetsWerner Koch2024-06-181-1/+70
| | | | --
* Update copyright noticesWerner Koch2024-06-184-24/+5
| | | | --
* Add new socket flags "linger" and "reuseaddr".Werner Koch2024-06-181-0/+54
| | | | | * src/assuan-socket.c (_assuan_sock_set_flag): Add new flags. (_assuan_sock_get_flag): Ditto.
* Spell fix in gpg-error.m4 from GnuPG.NIIBE Yutaka2024-06-141-1/+1
| | | | Signed-off-by: NIIBE Yutaka <[email protected]>
* m4: Update gpg-error.m4.NIIBE Yutaka2024-06-131-14/+23
| | | | | | | | * m4/gpg-error.m4: Update from gpg-error master. -- Signed-off-by: NIIBE Yutaka <[email protected]>
* libassuan.m4: Fix setting/using GPG_ERROR_CONFIG.NIIBE Yutaka2024-06-131-9/+8
| | | | | | | | | libassuan.m4 (_AM_PATH_GPGRT_CONFIG): Don't set GPG_ERROR_CONFIG and gpg_error_config_version. -- Signed-off-by: NIIBE Yutaka <[email protected]>
* Always append the process identification to hello line.Werner Koch2024-06-071-5/+0
| | | | | | | | * src/assuan-listen.c (assuan_accept): Always append "process %i". -- Is was surprising that we see this on Unix only for servers which do not set their own hello line.
* Modify documentation for new release.NIIBE Yutaka2024-05-281-4/+4
| | | | | | -- Signed-off-by: NIIBE Yutaka <[email protected]>
* Fix the previous commit.NIIBE Yutaka2024-05-141-1/+1
| | | | Signed-off-by: NIIBE Yutaka <[email protected]>
* m4: Include _AM_PATH_GPGRT_CONFIG definition.NIIBE Yutaka2024-05-141-2/+89
| | | | | | | | | * src/libassuan.m4: Find gpgrt-config. -- GnuPG-bug-id: 7114 Signed-off-by: NIIBE Yutaka <[email protected]>
* tests: Cleanup mention of removed variableAndre Heinecke2023-10-281-1/+1
| | | | * tests/Makefile.am (noinst_PROGRAMS): Remove w32cetools.
* doc: Minor style fixes.NIIBE Yutaka2023-10-061-4/+4
| | | | | | -- Signed-off-by: NIIBE Yutaka <[email protected]>
* build: Change the default for --with-libtool-modification.NIIBE Yutaka2023-09-011-2/+2
| | | | | | | | | * configure.ac (--with-libtool-modification): default=never. -- GnuPG-bug-id: 6619 Signed-off-by: NIIBE Yutaka <[email protected]>
* build: Update libtool-patch.sed from libgpg-error.NIIBE Yutaka2023-08-161-18/+53
| | | | | | | | | * build-aux/libtool-patch.sed: Fail with exit code 1, when it doesn't go well. -- Signed-off-by: NIIBE Yutaka <[email protected]>
* build: New configure option --with-libtool-modification.NIIBE Yutaka2023-08-084-16/+74
| | | | | | | | | | | | | * Makefile.am (EXTRA_DIST): Add build-aux/libtool-patch.sed. * build-aux/libtool-patch.sed: New. * configure.ac (--with-libtool-modification): New. * build-aux/ltmain.sh: Revert our own local modification. -- Fixes-commit: f88eb9e98f491b503f46c7d995c9651f1e46b9e9 GnuPG-bug-id: 6619 Signed-off-by: NIIBE Yutaka <[email protected]>
* Add NEWS entries for 2.5.6 from libassuan 2.5 branch.NIIBE Yutaka2023-08-041-0/+13
| | | | | | -- Signed-off-by: NIIBE Yutaka <[email protected]>
* Fix for v2 support: ASSUAN_REALLY_REQUIRE_V2_NPTH_SYSTEM_HOOKSNIIBE Yutaka2023-08-042-13/+19
| | | | | | | | | * src/assuan.h.in (ASSUAN_REALLY_REQUIRE_V2_NPTH_SYSTEM_HOOKS): Rename. -- Signed-off-by: NIIBE Yutaka <[email protected]>
* New function: assuan_control.NIIBE Yutaka2023-08-024-0/+33
| | | | | | | | | | | | | * src/assuan.c (assuan_control): New. * src/assuan.h.in (ASSUAN_CONTROL_REINIT_SYSCALL_CLAMP): New. (assuan_control): New. * src/libassuan.def (assuan_control): Add. * src/libassuan.vers (assuan_control): Add. -- GnuPG-bug-id: 6625 Signed-off-by: NIIBE Yutaka <[email protected]>
* libassuan.m4: Allow use of libassuan 3 for API of version 2.NIIBE Yutaka2023-07-261-1/+3
| | | | | | | | * src/libassuan.m4: API 3 is backward compatible to API 2. -- Signed-off-by: NIIBE Yutaka <[email protected]>
* Update NEWS.NIIBE Yutaka2023-07-251-0/+3
| | | | | | -- Signed-off-by: NIIBE Yutaka <[email protected]>
* Add new pipe functions to control its server process.NIIBE Yutaka2023-07-247-6/+77
| | | | | | | | | | | | | | | | * src/assuan-pipe-connect.c (assuan_pipe_wait_server_termination) (assuan_pipe_kill_server): New. * src/assuan.h.in: Add new functions. * src/libassuan.def: Add symbols for those functions. * src/libassuan.vers: Likewise. * src/system-posix.c (__assuan_waitpid): Extend the semantics for OPTIONS. * src/system-w32.c (__assuan_waitpid): Likewise. -- GnuPG-bug-id: T6487 Signed-off-by: NIIBE Yutaka <[email protected]>
* socket: Don't call pre/post_syscall for bind.NIIBE Yutaka2023-07-241-3/+0
| | | | | | | | | | | | | | | * src/assuan-socket.c (_assuan_sock_bind): Don't call _assuan_pre_syscall and _assuan_post_syscall. -- In the current use cases in GnuPG, the socket is bound *before* calling npth_init and gpgrt_set_syscall_clamp, which results no syscall clamping. It's OK for bind to use with no syscall clamping as it is not blocked longer. Fixes-commit: 703b4100a4162216314d3489fa9d3160c3aadeb5 Signed-off-by: NIIBE Yutaka <[email protected]>
* build: Prepare release with API change.NIIBE Yutaka2023-07-241-4/+4
| | | | | | | | | | | * configure.ac (LIBASSUAN_CONFIG_API_VERSION): Increment. (LIBASSUAN_LT_CURRENT): Increment for adding new interface. (LIBASSUAN_LT_AGE): Likewise. (LIBASSUAN_LT_REVISION): Reset to 0. -- Signed-off-by: NIIBE Yutaka <[email protected]>
* Update NEWS.NIIBE Yutaka2023-07-211-2/+8
| | | | Signed-off-by: NIIBE Yutaka <[email protected]>
* Expose assuan_sock_accept function.NIIBE Yutaka2023-07-203-0/+6
| | | | Signed-off-by: NIIBE Yutaka <[email protected]>
* Add _assuan_pre_syscall / _assuan_post_syscall to _assuan_sock_*.NIIBE Yutaka2023-07-201-12/+31
| | | | | | | | | | * src/assuan-socket.c (_assuan_sock_accept): Add _assuan_pre_syscall / _assuan_post_syscall. (_assuan_sock_bind): Likewise. -- Signed-off-by: NIIBE Yutaka <[email protected]>
* Support larger greeting message.NIIBE Yutaka2023-07-191-1/+1
| | | | | | | | * src/assuan-listen.c (assuan_accept): Update the size. -- Signed-off-by: NIIBE Yutaka <[email protected]>
* Next release will be 3.0Werner Koch2023-06-162-4/+4
| | | | | | -- We will branch a stable version at 2.5.5
* Flush data before clearing the confidential flag.Werner Koch2023-06-151-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).
* w32: Fix closing for non-socket HANDLE.NIIBE Yutaka2023-06-061-9/+4
| | | | | | | | | | | | * src/system-w32.c (__assuan_close): Revert the change. -- There are use cases where closing output_fd / input_fd which may be not socket. Fixes-commit: c93eb901e58d5b31294c2d452659b5150d95ec59 Signed-off-by: NIIBE Yutaka <[email protected]>
* w32: Fix hello_line parsing for fd passing.NIIBE Yutaka2023-06-012-1/+2
| | | | | | | * tests/fdpassing.c (server_socket): Test with comma in the hello line. Signed-off-by: NIIBE Yutaka <[email protected]>
* w32: Always include process information in HELLO.NIIBE Yutaka2023-05-311-4/+23
| | | | | | | * src/assuan-listen.c (assuan_accept): Supply process information when ctx->hello is avaliable, too. Signed-off-by: NIIBE Yutaka <[email protected]>
* w32: Fix error return for sending fd.NIIBE Yutaka2023-05-311-6/+16
| | | | | | | | * src/system-w32.c (get_file_handle): Have a CTX to compose an error. (w32_fdpass_send): Check PROCESS_ID. Compose an error with _assuan_error. Signed-off-by: NIIBE Yutaka <[email protected]>
* Allow use of global system hooks with API version 2.NIIBE Yutaka2023-05-242-1/+7
| | | | | | | | * src/libassuan.m4 (LIBASSUAN_API_REQUESTED): New. * src/assuan.h.in (ASSUAN_NO_GLOBAL_SYSTEM_HOOKS_ANY_MORE): New. (ASSUAN_SYSTEM_NPTH_IMPL, ASSUAN_SYSTEM_NPTH): Relax the condition. Signed-off-by: NIIBE Yutaka <[email protected]>
* doc: Update documentation for the method spawn and waitpid.NIIBE Yutaka2023-05-171-2/+2
| | | | Signed-off-by: NIIBE Yutaka <[email protected]>
* w32: File handle passing to server is now supported.NIIBE Yutaka2023-05-172-6/+14
| | | | | | | | | * configure.ac: Fix for MinGW. * src/assuan-buffer.c (assuan_sendfd): Fix runtime check. -- Signed-off-by: NIIBE Yutaka <[email protected]>
* Don't use ASSUAN_INVALID_PID for assuan_pid_t value.NIIBE Yutaka2023-05-172-3/+3
| | | | | | | | | * src/assuan.c (assuan_new_ext): Use -1. * src/client.c (_assuan_client_finish): Likewise. -- Signed-off-by: NIIBE Yutaka <[email protected]>
* w32: Cleaner semantics for PID and Process handle.NIIBE Yutaka2023-05-1715-36/+119
| | | | | | | | | | | | | | | | | | | | | | | | | | | * src/assuan-defs.h (struct assuan_context_s): Introduce SERVER_PROC member. Clarify the use of PROCESS_ID and PID. Introduce assuan_pid_t for internal use of process id or handle. * src/assuan.h.in: Follow the change. * src/assuan.c (assuan_new_ext): Likewise. * src/client.c (_assuan_client_finish): Likewise. * src/assuan-pipe-connect.c (pipe_connect): Likewise. * src/server.c (_assuan_server_finish): Likewise. * src/system-posix.c: Likewise. * src/system-w32.c: Likewise. * src/system.c: Likewise. * src/assuan-pipe-server.c (assuan_init_pipe_server) [HAVE_W32_SYSTEM]: Exclude the use of _assuan_pipe_connect_pid. * src/assuan-socket-server.c (accept_connection_bottom) [HAVE_W32_SYSTEM]: Exclude the use of the member peercred.pid. * src/assuan-socket.c (_assuan_sock_check_nonce): Support Cygwin Unix domain emulation for having valid client process ID. * src/context.c (assuan_get_pid): Clarify the use cases. * src/posix-types.inc.h, src/w32-types.inc.h: Introduce assuan_pid_t. -- GnuPG-bug-id: 6487 Signed-off-by: NIIBE Yutaka <[email protected]>
* Fix comments.NIIBE Yutaka2023-05-172-2/+2
| | | | | | -- Signed-off-by: NIIBE Yutaka <[email protected]>
* Fix wrong return type for functions.NIIBE Yutaka2023-05-161-6/+6
| | | | | | | * src/system.c (_assuan_recvmsg, _assuan_sendmsg): Fix to int. (_assuan_waitpid): Fix to pid_t. Signed-off-by: NIIBE Yutaka <[email protected]>
* tests: Use -no-fast-install LDFLAGS for Windows.NIIBE Yutaka2023-05-111-0/+4
| | | | | | | | * tests/Makefile.am [HAVE_W32_SYSTEM] (AM_LDFLAGS): Conditionalize. -- Signed-off-by: NIIBE Yutaka <[email protected]>
* Deprecate ASSUAN_SYSTEM_NPTH.NIIBE Yutaka2023-05-112-2/+11
| | | | | | | | | | | * src/assuan.h.in: Introduce new configuration with ASSUAN_REALLY_REQUIRE_OLD_WAY_OF_SYSTEM_NPTH. -- Existing use cases just works with ASSUAN_SYSTEM_NPTH=NULL. Signed-off-by: NIIBE Yutaka <[email protected]>
* Allow NULL for system_hooks.NIIBE Yutaka2023-05-111-0/+3
| | | | | | * src/system.c (_assuan_system_hooks_copy): Do nothing with SRC=NULL. Signed-off-by: NIIBE Yutaka <[email protected]>
* Fix the previous commit.NIIBE Yutaka2023-05-111-0/+2
| | | | | | | * src/assuan.c (_assuan_pre_syscall): Call the pre_syscall_func function after get it. Signed-off-by: NIIBE Yutaka <[email protected]>
* Fix calling gpgrt_get_syscall_clamp.NIIBE Yutaka2023-05-111-6/+5
| | | | | | | | | * src/assuan.c (assuan_new_ext): Move gpgrt_get_syscall_clamp to... (_assuan_pre_syscall): ... here. -- Signed-off-by: NIIBE Yutaka <[email protected]>
* tests: Fix for POSIX machine.NIIBE Yutaka2023-05-111-0/+2
| | | | | | | | * modified tests/pipeconnect.c (cmd_cat): Ifdef-out W32. -- Signed-off-by: NIIBE Yutaka <[email protected]>
* w32: Fix test header file for 64-bit Windows.NIIBE Yutaka2023-05-101-1/+7
| | | | | | | | * tests/common.h: Add for HAVE_W64_SYSTEM. -- Signed-off-by: NIIBE Yutaka <[email protected]>