aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Post release updatesHEADmasterWerner Koch2025-02-182-1/+5
| | | | --
* Release 3.0.2libassuan-3.0.2Werner Koch2025-02-182-2/+14
|
* Put full commit id into VERSION.Werner Koch2025-02-186-51/+73
| | | | | | | | * autogen.sh: Update from current libgpg-error. * configure.ac: Append commit id to the VERSION file. (BUILD_REVISION): New ac_define. * src/sysutils.c (_assuan_sysutils_blurb): Replace revision by full commit id.
* w32: Enable "w32_error" for assuan_sock_get_flag.NIIBE Yutaka2024-12-164-10/+17
| | | | | | | | | | | | | | | | | * src/assuan-defs.h (struct assuan_context_s): Have w32_error field. (_assuan_sock_wsa2errno): Supply CTX argument. * src/assuan-socket.c (_assuan_sock_wsa2errno): Put ERR to the field in CTX argument. (_assuan_sock_get_flag): Support "w32_error" string. (_assuan_sock_accept, _assuan_sock_bind): Follow the change. * src/assuan-uds.c (uds_reader, uds_writer): Likewise. * src/system-w32.c (__assuan_close, __assuan_socket): Likewise. (__assuan_connect): Likewise. -- GnuPG-bug-id: 7456 Signed-off-by: NIIBE Yutaka <[email protected]>
* w32: Fix errno for assuan_sock_bind failure.NIIBE Yutaka2024-12-131-1/+1
| | | | | | | | | | * src/assuan-socket.c (_assuan_sock_bind): Use WSAGetLastError and the mapping to set ERRNO. -- GnuPG-bug-id: 7456 Signed-off-by: NIIBE Yutaka <[email protected]>
* Fix FreeBSD to set the pid of assuan_peercred_t.Ben Kibbey2024-09-162-0/+14
| | | | | | | | * configure.ac: Check for struct xucred.cr_pid. * src/assuan-socket-server.c (accept_connection_bottom): Obtain the pid via LOCAL_PEERCRED. Signed-off-by: Ben Kibbey <[email protected]>
* Use socklen_t for the length of socket address.NIIBE Yutaka2024-07-113-12/+15
| | | | | | | | | | | | | | | * src/assuan-defs.h (_assuan_sock_connect): Use socklen_t. (_assuan_sock_bind, _assuan_sock_get_nonce): Likewise. * src/assuan-socket.c (_assuan_sock_connect): Likewise. (_assuan_sock_bind, _assuan_sock_get_nonce, assuan_sock_connect) (assuan_sock_bind, assuan_sock_get_nonce): Likewise. * src/assuan.h.in (assuan_sock_connect, assuan_sock_bind) (assuan_sock_get_nonce): Likewise. -- GnuPG-bug-id: 5924 Signed-off-by: NIIBE Yutaka <[email protected]>
* Update date of libassuan.m4.NIIBE Yutaka2024-07-111-1/+1
| | | | | | -- Signed-off-by: NIIBE Yutaka <[email protected]>
* Fix typo in assuan.h.NIIBE Yutaka2024-07-111-1/+1
| | | | | | | | * src/assuan.h.in (ASSUAN_NO_NPTH_SYSTEM_HOOKS_ANY_MORE): Fix. -- Signed-off-by: NIIBE Yutaka <[email protected]>
* libassuan.m4: Fix AC_DEFINE variable expansion.Ben Kibbey2024-07-061-1/+1
| | | | | | | * src/libassuan.m4 (_AM_PATH_LIBASSUAN_COMMON): Use AC_DEFINE_UNQUOTED() to expand $req_libassuan_api. Signed-off-by: Ben Kibbey <[email protected]>
* Remove an declaration for an unused functionWerner Koch2024-06-251-3/+0
| | | | | | | | * src/assuan-defs.h (putc_unlocked): Remove declaration. -- It seems the test for putc_unlocked was remove a long time ago. GnuPG-bug-id: 7111
* Post release updatesWerner Koch2024-06-242-1/+5
| | | | --
* 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]>