Page MenuHome GnuPG
Feed Advanced Search

Tue, Feb 18

werner closed T7456: libassuan: Windows: assuan_sock_bind error as Resolved.

Released with libassuan 3.0.2 (T7163)

Tue, Feb 18, 1:52 PM · libassuan, Windows
werner updated the task description for T7163: Release libassuan 3.0.0 and 3.0.1.
Tue, Feb 18, 1:45 PM · libassuan, Release Info

Jan 8 2025

gniibe merged T7177: libassuan-3.0.1: Errant declaration of putc_unlocked in src/assuan-defs.h causes a Darwin build to fail into T7246: libassuan 3.0.1: putc_unlocked() is re-defined unconditionally.
Jan 8 2025, 12:51 AM · libassuan, MacOS, Bug Report

Dec 16 2024

gniibe added a comment to T7456: libassuan: Windows: assuan_sock_bind error.

Here is a patch to support "w32_error" for assuan_sock_get_flag function.

Dec 16 2024, 6:53 AM · libassuan, Windows

Dec 13 2024

gniibe changed the status of T7456: libassuan: Windows: assuan_sock_bind error from Open to Testing.
Dec 13 2024, 3:20 AM · libassuan, Windows
gniibe triaged T7456: libassuan: Windows: assuan_sock_bind error as Normal priority.
Dec 13 2024, 2:29 AM · libassuan, Windows

Dec 2 2024

gniibe lowered the priority of T7399: assuan: GPG_ERR_ASS_NO_DATA_CB situation from High to Normal.

Put it under lower priority, as it's basically programming error.

Dec 2 2024, 6:00 AM · libassuan

Nov 29 2024

gniibe added a comment to T7399: assuan: GPG_ERR_ASS_NO_DATA_CB situation.

Here is my proposal to avoid unsynched state for data.

diff --git a/src/client.c b/src/client.c
index 410f940..0989984 100644
--- a/src/client.c
+++ b/src/client.c
@@ -250,6 +250,7 @@ assuan_transact (assuan_context_t ctx,
   int off;
   char *line;
   int linelen;
+  gpg_error_t last_err = 0;
Nov 29 2024, 8:29 AM · libassuan

Nov 15 2024

gniibe renamed T7399: assuan: GPG_ERR_ASS_NO_DATA_CB situation from assuan: GPG_ERR_ASS_NO_INQUIRE_CB situation to assuan: GPG_ERR_ASS_NO_DATA_CB situation.
Nov 15 2024, 5:19 AM · libassuan
gniibe updated the task description for T7399: assuan: GPG_ERR_ASS_NO_DATA_CB situation.
Nov 15 2024, 5:18 AM · libassuan
gniibe added a project to T7399: assuan: GPG_ERR_ASS_NO_DATA_CB situation: libassuan.
Nov 15 2024, 3:51 AM · libassuan

Oct 24 2024

ikloecker closed T7246: libassuan 3.0.1: putc_unlocked() is re-defined unconditionally as Resolved.

I have confirmed that rA69069bc63e6b fixes the build on macOS.

Oct 24 2024, 9:37 PM · libassuan, MacOS, Bug Report

Sep 24 2024

gniibe closed T5924: libassuan: uses of socklen_t in assuan.h are inconsistent as Resolved.

Fixed in libassuan 3.0.0.

Sep 24 2024, 7:39 AM · libassuan

Sep 12 2024

gniibe changed the status of T7246: libassuan 3.0.1: putc_unlocked() is re-defined unconditionally from Open to Testing.
Sep 12 2024, 7:12 AM · libassuan, MacOS, Bug Report

Sep 4 2024

gniibe added a comment to T7246: libassuan 3.0.1: putc_unlocked() is re-defined unconditionally.

Fixed in: rA69069bc63e6b: Remove an declaration for an unused function

Sep 4 2024, 7:23 AM · libassuan, MacOS, Bug Report

Aug 16 2024

werner triaged T7246: libassuan 3.0.1: putc_unlocked() is re-defined unconditionally as Normal priority.
Aug 16 2024, 3:04 PM · libassuan, MacOS, Bug Report

Aug 10 2024

werner added projects to T7246: libassuan 3.0.1: putc_unlocked() is re-defined unconditionally: MacOS, libassuan.

Actually we should get rid of stdio functions and use the es_foo replacements from libgpg-error.

Aug 10 2024, 9:28 PM · libassuan, MacOS, Bug Report

Jul 11 2024

gniibe claimed T5924: libassuan: uses of socklen_t in assuan.h are inconsistent.
Jul 11 2024, 4:46 AM · libassuan
gniibe changed the status of T5924: libassuan: uses of socklen_t in assuan.h are inconsistent from Open to Testing.

The socklen_t use are now being fixed in newer POSIX Issue 8, 2024.
https://www.man7.org/linux/man-pages/man3/socklen_t.3type.html

Jul 11 2024, 4:45 AM · libassuan
gniibe added a project to T5924: libassuan: uses of socklen_t in assuan.h are inconsistent: libassuan.
Jul 11 2024, 4:10 AM · libassuan
gniibe added a project to T5920: libassuan: Don't inherit handles for Windows: libassuan.
Jul 11 2024, 4:08 AM · libassuan

Jun 28 2024

werner closed T7178: make check fails for GnuPG with libassuan 3.0.1 as Resolved.

Yes, the SO number changed. Before that you had run the test with an old version of the library or maybe the current one depending on your system. However, a changed SO number means that you have can have two versions of the library installed and they don't alias them with symlinks. We rarely update SO numbers but int he libassuan case we did it because technically we had a minor ABI change but GnuPG and Cie. are not affected; we did it anyway to be correct.

Jun 28 2024, 6:04 PM · libassuan, Bug Report

Jun 24 2024

werner renamed T7163: Release libassuan 3.0.0 and 3.0.1 from Release libassuan 3.0.0 to Release libassuan 3.0.0 and 3.0.1.
Jun 24 2024, 11:32 AM · libassuan, Release Info
werner added a comment to T7163: Release libassuan 3.0.0 and 3.0.1.

Debian uses symbol versions to help with library transition. See https://lists.gnupg.org/pipermail/gnupg-devel/2024-June/035587.html for more. Although I am not sure whether this is a good idea, I just released a new version 3.0.1 with just a chnage in the symbol versioning. See rAc9e902705a

Jun 24 2024, 11:32 AM · libassuan, Release Info

Jun 21 2024

werner added a comment to T7023: Support SYSROOT in all Gupg related libraries.

Now also done for libksba.

Jun 21 2024, 2:07 PM · Feature Request, Cross-Compiler, gpgrt, libassuan, libksba
gniibe closed T6625: libassuan: Add assuan_control function as Resolved.
Jun 21 2024, 8:47 AM · libassuan
gniibe closed T6018: libassuan: Coverity reports as Resolved.
Jun 21 2024, 8:47 AM · patch, libassuan, Bug Report
gniibe closed T5914: libassuan: Introduce use of gpgrt_get_syscall_clamp, no use of system_hooks for nPTH as Resolved.
Jun 21 2024, 8:46 AM · Feature Request, libassuan
gniibe closed T3302: Allow non-blocking connect with Tor as Resolved.

Done in 3.0.0.

Jun 21 2024, 8:41 AM · libassuan
gniibe closed T6236: libassuan: Support sendfd/recvfd (possibly by new API) on Windows as Resolved.

Done in 3.0.0.

Jun 21 2024, 8:40 AM · Windows, libassuan, Feature Request
gniibe closed T6170: libassuan: Drop WindowsCE support as Resolved.

Done in 3.0.0.

Jun 21 2024, 8:39 AM · libassuan
gniibe closed T5925: libassuan: Add assuan_sock_accept function to the API as Resolved.

Added in 3.0.0.

Jun 21 2024, 8:39 AM · Feature Request, libassuan

Jun 19 2024

werner closed T6249: gpgrt: spawn functions as Resolved.
Jun 19 2024, 10:59 AM · gnupg, libassuan, gpgrt
werner updated the task description for T7163: Release libassuan 3.0.0 and 3.0.1.
Jun 19 2024, 9:00 AM · libassuan, Release Info
werner closed T7163: Release libassuan 3.0.0 and 3.0.1 as Resolved.
Jun 19 2024, 9:00 AM · libassuan, Release Info

Jun 18 2024

werner updated the task description for T6542: Release libassuan 2.5.6.
Jun 18 2024, 3:26 PM · Release Info, libassuan
werner triaged T7163: Release libassuan 3.0.0 and 3.0.1 as Low priority.
Jun 18 2024, 3:25 PM · libassuan, Release Info
werner closed T7028: Release Libassuan 2.5.7 as Resolved.
Jun 18 2024, 3:24 PM · libassuan, Release Info

Jun 5 2024

gniibe changed the status of T6249: gpgrt: spawn functions from Open to Testing.
Jun 5 2024, 8:19 AM · gnupg, libassuan, gpgrt

May 27 2024

gniibe closed T6275: gnupg26: Improve gnupg_spawn_process function, a subtask of T6249: gpgrt: spawn functions, as Resolved.
May 27 2024, 4:02 AM · gnupg, libassuan, gpgrt
gniibe closed T6275: gnupg26: Improve gnupg_spawn_process function as Resolved.

It's tested by gnupg master (for gnupg26) for a year. Let us move on.

May 27 2024, 4:02 AM · gnupg, libassuan, gpgrt
gniibe renamed T6275: gnupg26: Improve gnupg_spawn_process function from gnupg: Improve gnupg_spawn_process function to gnupg26: Improve gnupg_spawn_process function.
May 27 2024, 4:00 AM · gnupg, libassuan, gpgrt

Mar 6 2024

werner updated the task description for T6542: Release libassuan 2.5.6.
Mar 6 2024, 2:42 PM · Release Info, libassuan
werner updated the task description for T7028: Release Libassuan 2.5.7.
Mar 6 2024, 2:41 PM · libassuan, Release Info
werner added projects to T7028: Release Libassuan 2.5.7: Release Info, libassuan.
Mar 6 2024, 2:41 PM · libassuan, Release Info

Feb 29 2024

werner triaged T7023: Support SYSROOT in all Gupg related libraries as Normal priority.
Feb 29 2024, 4:27 PM · Feature Request, Cross-Compiler, gpgrt, libassuan, libksba

Feb 23 2024

werner added a comment to T5005: Unified single header file if it offers same API.

I think we should close this bug or re-purpose it to silence those warnings in common cases.

Feb 23 2024, 2:12 PM · libassuan, gpgrt

Aug 4 2023

gniibe renamed T5914: libassuan: Introduce use of gpgrt_get_syscall_clamp, no use of system_hooks for nPTH from libassuan: Introduce use of gpgrt_get_syscall_clamp, no use of system_hooks to libassuan: Introduce use of gpgrt_get_syscall_clamp, no use of system_hooks for nPTH.
Aug 4 2023, 8:06 AM · Feature Request, libassuan
gniibe changed the status of T6625: libassuan: Add assuan_control function from Open to Testing.

Pushed the change into master of libassuan (to be 3.0).

Aug 4 2023, 8:02 AM · libassuan
gniibe added a parent task for T5925: libassuan: Add assuan_sock_accept function to the API: T6606: Use new API of libassuan 3.
Aug 4 2023, 3:09 AM · Feature Request, libassuan
gniibe added a parent task for T6487: libassuan: Clear semantics for assuan_get_pid and improve use cases for process control: T6606: Use new API of libassuan 3.
Aug 4 2023, 3:09 AM · libassuan, Memo
gniibe added a parent task for T6236: libassuan: Support sendfd/recvfd (possibly by new API) on Windows: T6606: Use new API of libassuan 3.
Aug 4 2023, 3:09 AM · Windows, libassuan, Feature Request
gniibe added a parent task for T6625: libassuan: Add assuan_control function: T6606: Use new API of libassuan 3.
Aug 4 2023, 3:09 AM · libassuan
gniibe added a parent task for T5914: libassuan: Introduce use of gpgrt_get_syscall_clamp, no use of system_hooks for nPTH: T6606: Use new API of libassuan 3.
Aug 4 2023, 3:05 AM · Feature Request, libassuan
gniibe added a parent task for T5925: libassuan: Add assuan_sock_accept function to the API: T6508: Port GnuPG to 64-bit Windows.
Aug 4 2023, 2:57 AM · Feature Request, libassuan

Aug 2 2023

gniibe triaged T6625: libassuan: Add assuan_control function as Normal priority.
Aug 2 2023, 6:43 AM · libassuan

Jul 24 2023

ebo moved T6324: libassuan, w32: assuan_sock_check_nonce fails with master from Restricted Project Column to Restricted Project Column on the Restricted Project board.
Jul 24 2023, 2:12 PM · Restricted Project, libassuan
gniibe added a project to T6487: libassuan: Clear semantics for assuan_get_pid and improve use cases for process control: libassuan.
Jul 24 2023, 8:10 AM · libassuan, Memo

Jun 19 2023

werner closed T6542: Release libassuan 2.5.6 as Resolved.
Jun 19 2023, 10:51 AM · Release Info, libassuan
werner updated the task description for T6542: Release libassuan 2.5.6.
Jun 19 2023, 9:45 AM · Release Info, libassuan
werner triaged T6542: Release libassuan 2.5.6 as Normal priority.
Jun 19 2023, 9:45 AM · Release Info, libassuan

May 12 2023

gniibe added a comment to T6275: gnupg26: Improve gnupg_spawn_process function.

Pushed to GnuPG master. Let us test. For my machine of Debian GNU/Linux, Wine emulation (Windows 32-bit, Windows 64-bit), make check goes all well.
After confirming the implementation, I'd like to put it into gpgrt.

May 12 2023, 1:50 AM · gnupg, libassuan, gpgrt

May 8 2023

gniibe changed the status of T3302: Allow non-blocking connect with Tor from Open to Testing.

Implemented in rA9110945ce625: Implement timeout in assuan_sock_connect_byname..

May 8 2023, 4:18 AM · libassuan
gniibe added a comment to T3302: Allow non-blocking connect with Tor.

Actually, it's not 'connect' system call, but 'CONNECT' request which matters. The use of SOCKS in libassuan is that it always connects to SOCKS server at localhost.
So, other than the special case of erroneous configuration of TOR, introducing timeout handling to the initial connection to the SOCKS server makes less sense.

May 8 2023, 4:14 AM · libassuan

May 2 2023

gniibe added a comment to T3302: Allow non-blocking connect with Tor.

I see the point of use of int.
For backward compatibility, the semantics of 0 should remain as default timeout (let kernel decide == 120 sec, usually), -1 would be meaning immediately (only success when local).

May 2 2023, 8:00 AM · libassuan

Apr 28 2023

werner added a comment to T3302: Allow non-blocking connect with Tor.

Why can't we keep the signed int? Do we ever need such a long timeout. We could for example define -1 as use default timeout.

Apr 28 2023, 9:19 AM · libassuan
gniibe added a comment to T3302: Allow non-blocking connect with Tor.

assuan_sock_connect_byname may be extended to change the third argument (now int reserved) to unsigned int timeout.
It's a kind of API change, but ABI wise, the impact is minimum.

Apr 28 2023, 7:56 AM · libassuan

Apr 5 2023

ebo moved T6308: Kleopatra: UiServer Connectivity self-test fails on Windows from Restricted Project Column to Restricted Project Column on the Restricted Project board.
Apr 5 2023, 12:50 PM · gpg4win, libassuan, Restricted Project, kleopatra, Bug Report

Jan 5 2023

gniibe added a comment to T6324: libassuan, w32: assuan_sock_check_nonce fails with master.

My understanding is that: selftest in Kleo does call assuan_socket_connect (possibly in kleopatra/src/libkleopatraclient/core/command.cpp), and it didn't send nonce correctly.

Jan 5 2023, 1:06 AM · Restricted Project, libassuan

Jan 4 2023

aheinecke closed T6324: libassuan, w32: assuan_sock_check_nonce fails with master as Resolved.

Thanks! I don't understand why your fix helps as Kleopatra never calls assuan_socket_connect on the server side, but it helps. :) So this is probably called indirectly and I don't see it.

Jan 4 2023, 11:22 AM · Restricted Project, libassuan
gniibe added a comment to T6324: libassuan, w32: assuan_sock_check_nonce fails with master.

I found an issue in the assuan code of client side. This might be the cause of the server failure for nonce.

Jan 4 2023, 3:39 AM · Restricted Project, libassuan

Jan 3 2023

aheinecke added a comment to T6308: Kleopatra: UiServer Connectivity self-test fails on Windows.

The followup of this issue for libassuan is: https://dev.gnupg.org/T6324

Jan 3 2023, 4:19 PM · gpg4win, libassuan, Restricted Project, kleopatra, Bug Report
werner added a comment to T6324: libassuan, w32: assuan_sock_check_nonce fails with master.

What I mean is that our socket emulation is encapsulated in libgcrypt and details should not be visible to the caller. Further libassuan and kleopatra might be build against different libc versions and thus the used structures might also differ.

Jan 3 2023, 12:27 PM · Restricted Project, libassuan
aheinecke added a comment to T6324: libassuan, w32: assuan_sock_check_nonce fails with master.

From the NEWS assuan_sock_set_sockaddr_un was only added in 2014, years after the UIServer code was really last modified.

Jan 3 2023, 8:44 AM · Restricted Project, libassuan

Jan 2 2023

werner added a comment to T6324: libassuan, w32: assuan_sock_check_nonce fails with master.

The question is why Kleopatra does not use assuan_sock_set_sockaddr_un as we do in GnuPG. See for example
https://dev.gnupg.org/source/gnupg/browse/master/kbx/keyboxd.c$1124 - was this a workaround back when we had no support for Unicode? assuan_sock_set_sockaddr_un and assuan_sock_get_nonce work together and their internal workings should be opaque to the caller.

Jan 2 2023, 4:13 PM · Restricted Project, libassuan
aheinecke added a comment to T6324: libassuan, w32: assuan_sock_check_nonce fails with master.

Btw. This is how Kleopatra creates the socket: https://dev.gnupg.org/source/kleo/browse/master/src/uiserver/uiserver_win.cpp$34 which does not use a function that would set is_socket=1. My naive fix would be:

Jan 2 2023, 3:57 PM · Restricted Project, libassuan
aheinecke triaged T6324: libassuan, w32: assuan_sock_check_nonce fails with master as Normal priority.
Jan 2 2023, 3:32 PM · Restricted Project, libassuan

Dec 13 2022

ebo closed T6308: Kleopatra: UiServer Connectivity self-test fails on Windows as Resolved.

works

Dec 13 2022, 12:31 PM · gpg4win, libassuan, Restricted Project, kleopatra, Bug Report
werner moved T6308: Kleopatra: UiServer Connectivity self-test fails on Windows from Restricted Project Column to Restricted Project Column on the Restricted Project board.

Fixed by reverting to 2.5.5

Dec 13 2022, 12:02 PM · gpg4win, libassuan, Restricted Project, kleopatra, Bug Report
ikloecker moved T6308: Kleopatra: UiServer Connectivity self-test fails on Windows from Restricted Project Column to Restricted Project Column on the Restricted Project board.
Dec 13 2022, 10:11 AM · gpg4win, libassuan, Restricted Project, kleopatra, Bug Report
ikloecker added a project to T6308: Kleopatra: UiServer Connectivity self-test fails on Windows: gpg4win.
Dec 13 2022, 10:10 AM · gpg4win, libassuan, Restricted Project, kleopatra, Bug Report
werner added a project to T6308: Kleopatra: UiServer Connectivity self-test fails on Windows: libassuan.

Problem is that Kleopatra uses the latest libassuan from Git and not the released version. Replacing the libassuan DLL with the one from the gnupg directory fixes the bug.

Dec 13 2022, 9:32 AM · gpg4win, libassuan, Restricted Project, kleopatra, Bug Report

Nov 26 2022

gniibe changed the status of T6249: gpgrt: spawn functions from Testing to Open.
Nov 26 2022, 3:26 AM · gnupg, libassuan, gpgrt

Nov 18 2022

gniibe added a comment to T6275: gnupg26: Improve gnupg_spawn_process function.

On Windows, closing/inheriting handles is different to POSIX.
https://devblogs.microsoft.com/oldnewthing/20111216-00/?p=8873
https://devblogs.microsoft.com/oldnewthing/20130426-00/?p=4543
https://learn.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-createprocessw
https://learn.microsoft.com/en-us/windows/win32/api/winbase/ns-winbase-startupinfoexw
https://learn.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-initializeprocthreadattributelist
https://learn.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-updateprocthreadattribute
https://learn.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-deleteprocthreadattributelist

Nov 18 2022, 6:33 AM · gnupg, libassuan, gpgrt

Nov 16 2022

werner added a comment to T6249: gpgrt: spawn functions.

We should consider to break the Assuan API maybe we can do that without too many problems for the current use cases.

Nov 16 2022, 9:18 AM · gnupg, libassuan, gpgrt
gniibe added a comment to T6275: gnupg26: Improve gnupg_spawn_process function.

I'm going to use gnupg_process_* prefix for the functions.

Nov 16 2022, 8:20 AM · gnupg, libassuan, gpgrt
gniibe triaged T6275: gnupg26: Improve gnupg_spawn_process function as Normal priority.
Nov 16 2022, 8:18 AM · gnupg, libassuan, gpgrt

Nov 15 2022

gniibe added a comment to T6249: gpgrt: spawn functions.

Last two points are for future changes of assuan internal; For the case of controlling fds in detail, it is possible to use spawn callback controlling fds by the routine and let no-touching (inherit) by the spawn function.

Nov 15 2022, 1:45 AM · gnupg, libassuan, gpgrt

Nov 14 2022

spelissier updated the task description for T5977: Smartcard PIN stays in clear in memory.
Nov 14 2022, 1:18 PM · backport, libassuan, pinentry, scd, gnupg (gpg22), Bug Report
spelissier updated the task description for T5977: Smartcard PIN stays in clear in memory.
Nov 14 2022, 1:17 PM · backport, libassuan, pinentry, scd, gnupg (gpg22), Bug Report
werner added a comment to T6249: gpgrt: spawn functions.

I don't understand the last two points: This is only about the three standard descriptors but how shall we supply more descriptors? At least in GPGME we definitely need more.

Nov 14 2022, 7:12 AM · gnupg, libassuan, gpgrt
gniibe added a comment to T6249: gpgrt: spawn functions.

Evaluating again, I'd like to change spawn functions like this one in libgpg-error:

Nov 14 2022, 6:52 AM · gnupg, libassuan, gpgrt

Nov 10 2022

gniibe added a comment to T6249: gpgrt: spawn functions.

Examining again, I realized that the current spawn API (not published yet, only available in libgpg-error master) is not that useful in general (or difficult to use), while it works somehow.

Nov 10 2022, 5:59 AM · gnupg, libassuan, gpgrt

Nov 8 2022

gniibe added a comment to T6249: gpgrt: spawn functions.

Here is the change of GnuPG to use new spawn functions from libgpg-error:

Nov 8 2022, 7:36 AM · gnupg, libassuan, gpgrt

Nov 7 2022

gniibe changed the status of T6236: libassuan: Support sendfd/recvfd (possibly by new API) on Windows from Open to Testing.
Nov 7 2022, 6:11 AM · Windows, libassuan, Feature Request
gniibe changed the status of T6249: gpgrt: spawn functions from Open to Testing.
Nov 7 2022, 6:11 AM · gnupg, libassuan, gpgrt

Nov 4 2022

gniibe added a comment to T6236: libassuan: Support sendfd/recvfd (possibly by new API) on Windows.

Merged PIPE connection part into master.

Nov 4 2022, 11:10 AM · Windows, libassuan, Feature Request
gniibe added a comment to T6249: gpgrt: spawn functions.

For the spawn_cb, I reconsider. Having three calls complicates use, and it is actually not needed. In the case of pthread_atfork, it is needed, because fork may be used deeply in some functions. In our use cases of spawn function, prepare part of the callback can be called before calling spawn, and parent part of the callback can be called after calling spawn.

Nov 4 2022, 6:49 AM · gnupg, libassuan, gpgrt
gniibe added a comment to T6249: gpgrt: spawn functions.

I decide use of pid_t, as there are different semantics between POSIX and Windows, *and* there is a problem of MinGW-w64. I introduce gpgrt_process_t, instead.

Nov 4 2022, 6:45 AM · gnupg, libassuan, gpgrt

Oct 31 2022

gniibe added a comment to T6249: gpgrt: spawn functions.

Another thing when we define a type which represents process.
For pid_t, MinGW-w64 has a bug: https://bugzilla.redhat.com/show_bug.cgi?id=1397787 (or https://sourceforge.net/p/mingw-w64/mailman/mingw-w64-public/thread/1456671365-21759-1-git-send-email-sw%40weilnetz.de/).
(1) GetCurrentProcessId always returns 32-bit (DWORD), so, it can be represented in 32-bit (although DWORD is unsigned).
(2) POSIX requires pid_t should be signed integer https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_types.h.html
(3) Original MinGW defines pid_t as int (in include/sys/type.h by _pid_t). (checked in mingwrt-5.4.2)

Oct 31 2022, 5:56 AM · gnupg, libassuan, gpgrt