Page MenuHome GnuPG
Feed Advanced Search

Oct 22 2025

gniibe committed rG4a2dda2002c4: kbx,gpg,gpgsm: Add FP-close method for keydb to close before unlock. (authored by gniibe).
kbx,gpg,gpgsm: Add FP-close method for keydb to close before unlock.
Oct 22 2025, 5:00 AM
gniibe committed rG3db6f9f080bc: gpgsm: Fix delete and store certificate locking glitches. (authored by gniibe).
gpgsm: Fix delete and store certificate locking glitches.
Oct 22 2025, 4:38 AM
gniibe committed rG2d9e1295a1f4: gpg,gpgsm: Serialize write access to keybox/keyring to protect. (authored by gniibe).
gpg,gpgsm: Serialize write access to keybox/keyring to protect.
Oct 22 2025, 4:38 AM
gniibe committed rGef42a1e218ce: gpg,gpgsm: No more internal-lock when KEEP_LOCK is enabled. (authored by gniibe).
gpg,gpgsm: No more internal-lock when KEEP_LOCK is enabled.
Oct 22 2025, 4:38 AM
gniibe committed rGa0beed35d6c6: kbx,gpg,gpgsm: Introduce keybox_compress_when_no_other_users. (authored by gniibe).
kbx,gpg,gpgsm: Introduce keybox_compress_when_no_other_users.
Oct 22 2025, 4:38 AM
gniibe changed the status of T7855: keybox/keydb locking issue in 2.6 , a subtask of T2196: keydb locking can result in deadlock in 2.2, from Open to Testing.
Oct 22 2025, 4:38 AM · gnupg22 (gnupg-2.2.52), Bug Report
gniibe changed the status of T7855: keybox/keydb locking issue in 2.6 , a subtask of T7827: Kleopatra: Add workaround for locking issue on key generation, from Open to Testing.
Oct 22 2025, 4:38 AM · gpd5x (gpd-5.0.0), vsd33 (vsd-3.3.3), vsd34, kleopatra
gniibe changed the status of T7855: keybox/keydb locking issue in 2.6 from Open to Testing.

All changes in gniibe/t7855 are pushed into master.

Oct 22 2025, 4:38 AM · gpd5x (gpd-5.0.0), gnupg26

Oct 21 2025

gniibe changed the status of T7829: w32: daemon (gpg-agent/keyboxd/dirmngr) startup and connection race when there is a socket file already, a subtask of T7658: Okular: Dirmngr startup timeout on signature validation, from Open to Testing.
Oct 21 2025, 9:18 AM · gpd5x (gpd-5.0.0), Bug Report, okular
gniibe changed the status of T7829: w32: daemon (gpg-agent/keyboxd/dirmngr) startup and connection race when there is a socket file already from Open to Testing.

Fixed in master: rGae431b04370f: w32:common: Take care of possible race on startup under Windows.

Oct 21 2025, 9:18 AM · gpd5x (gpd-5.0.0), gnupg22 (gnupg-2.2.52), Bug Report, okular
gniibe changed the status of T7805: Permission denied on batch deletion of mixed (openpgp+smime) certs from Open to Testing.

This issue should be fixed in 2.6, too.

Oct 21 2025, 7:14 AM · gnupg, vsd, kleopatra
gniibe committed rG4050139d46fb: gpg: Minor clean up for keydb_lock API. (authored by gniibe).
gpg: Minor clean up for keydb_lock API.
Oct 21 2025, 7:14 AM
gniibe committed rG9fd630fb23b7: common,w32: Always use share mode readwrite for the keybox. (authored by werner).
common,w32: Always use share mode readwrite for the keybox.
Oct 21 2025, 7:14 AM
gniibe committed rG39cc15029017: build,common,g13,sm,tools: Require GpgRT 1.56. (authored by gniibe).
build,common,g13,sm,tools: Require GpgRT 1.56.
Oct 21 2025, 7:14 AM
gniibe committed rG8a5d2674c3be: common: New function gnupg_remove_ext. (authored by werner).
common: New function gnupg_remove_ext.
Oct 21 2025, 7:14 AM
gniibe changed the status of T7805: Permission denied on batch deletion of mixed (openpgp+smime) certs, a subtask of T7855: keybox/keydb locking issue in 2.6 , from Open to Testing.
Oct 21 2025, 6:50 AM · gpd5x (gpd-5.0.0), gnupg26
gniibe changed the status of T7138: Windows (Semi-hosted environment): filename and network access, a subtask of T6508: Port GnuPG to 64-bit Windows, from Open to Testing.
Oct 21 2025, 4:57 AM · Windows 64, Feature Request, gnupg26
gniibe changed the status of T7138: Windows (Semi-hosted environment): filename and network access from Open to Testing.
Oct 21 2025, 4:57 AM · gnupg, Bug Report
gniibe committed rG61ff3759e827: common,dirmngr:w32: Fix for semi-hosted environment. (authored by gniibe).
common,dirmngr:w32: Fix for semi-hosted environment.
Oct 21 2025, 4:57 AM
gniibe added a comment to T7138: Windows (Semi-hosted environment): filename and network access.

Pushed the change to gnupg master: rG61ff3759e827: common,dirmngr:w32: Fix for semi-hosted environment.

Oct 21 2025, 4:56 AM · gnupg, Bug Report
gniibe claimed T7138: Windows (Semi-hosted environment): filename and network access.

In libgpg-error, I pushed thread-safe version : rE0313b660f8bd: w32: Don't convert slash->backslash when it's under Wine.
I'm going to push similar code to gnupg master.

Oct 21 2025, 3:26 AM · gnupg, Bug Report

Oct 17 2025

gniibe added a comment to T7855: keybox/keydb locking issue in 2.6 .

Lastly, pushed a change into gniibe/t7855 branch.
rGf861b2a33f96: gpg,gpgsm: Fix thinko for FP closing under no lock.

Oct 17 2025, 9:01 AM · gpd5x (gpd-5.0.0), gnupg26
gniibe committed rG89f653784031: tests:w32: Fix the add-recipeint test for Windows. (authored by gniibe).
tests:w32: Fix the add-recipeint test for Windows.
Oct 17 2025, 4:31 AM

Oct 16 2025

gniibe added a comment to T7855: keybox/keydb locking issue in 2.6 .

I pushed further changes into gniibe/t7855 branch.
rG2fe62809014e: gpg,gpgsm: Serialize write access to keybox/keyring to protect.

Oct 16 2025, 9:30 AM · gpd5x (gpd-5.0.0), gnupg26

Oct 15 2025

gniibe triaged T7805: Permission denied on batch deletion of mixed (openpgp+smime) certs as High priority.
Oct 15 2025, 9:37 AM · gnupg, vsd, kleopatra
gniibe added a subtask for T7855: keybox/keydb locking issue in 2.6 : T7805: Permission denied on batch deletion of mixed (openpgp+smime) certs.
Oct 15 2025, 9:36 AM · gpd5x (gpd-5.0.0), gnupg26
gniibe added a parent task for T7805: Permission denied on batch deletion of mixed (openpgp+smime) certs: T7855: keybox/keydb locking issue in 2.6 .
Oct 15 2025, 9:36 AM · gnupg, vsd, kleopatra
gniibe added a comment to T7805: Permission denied on batch deletion of mixed (openpgp+smime) certs.

I'm fixing this issue under T7855. So, I move this ticket as a child of T7855.

Oct 15 2025, 9:36 AM · gnupg, vsd, kleopatra
gniibe added a comment to T7855: keybox/keydb locking issue in 2.6 .

For remaining changes in 2.2, I pushed changes into gniibe/t7855 branch.
rGbd65b06b74c2: gpg,gpgsm: Don't lock recursively when KEEP_LOCK is enabled.
rG423fd047da87: kbx,gpg,gpgsm: Add FP-close method for keydb to close before unlock.
rG966258ac5f99: gpgsm: Fix delete and store certificate locking glitches.

Oct 15 2025, 8:10 AM · gpd5x (gpd-5.0.0), gnupg26
gniibe added a comment to T7855: keybox/keydb locking issue in 2.6 .

I pushed changes into gniibe/t7855 for compressing the keybox.
rG8cc2a0e0ffee: gpg: Minor clean up for keydb_lock API.
rGe4d3c3aa2220: kbx,gpg,gpgsm: Introduce keybox_compress_when_no_other_users.
rG3e441d5b299f: kbx,gpg,gpgsm: More changes for compressing the keybox.

Oct 15 2025, 2:37 AM · gpd5x (gpd-5.0.0), gnupg26

Oct 14 2025

gniibe added a comment to T7855: keybox/keydb locking issue in 2.6 .

Then, we need to integrate following commits of 2.2 into gniibe/t7855 branch:
rG43fe9073aa81: gpg,gpgsm: Tweak the locking of the pubring.kbx
rG8491aca73cff: gpg: Revert the always locking introduced with 43fe9073aa
rGad4a5117ab1c: gpgsm: Properly release the lock when compressing a pubring.
rG7962eca3a023: gpgsm: Change delete and store certificate locking glitches.
rG22f9c4a3b3c1: gpg: Release lock after close also in the compress code path.

Oct 14 2025, 8:08 AM · gpd5x (gpd-5.0.0), gnupg26
gniibe added a comment to T7855: keybox/keydb locking issue in 2.6 .

I created gniibe/t7855 branch for this issue.
To start with, I forward-port/cherry-pick 2.2 commits to the branch:
rG39430d9f78dc: build,common,g13,sm,tools: Require GpgRT 1.56.
rGe71aca2a628d: common: New function gnupg_remove_ext.
rGe38c5f7d5873: w32:common: Take care of possible race on startup under Windows.
rG7bfd37e305c0: common,w32: Always use share mode readwrite for the keybox.

Oct 14 2025, 8:04 AM · gpd5x (gpd-5.0.0), gnupg26
gniibe added a comment to T7805: Permission denied on batch deletion of mixed (openpgp+smime) certs.

@timegrid Thank you for your confirmation.

Oct 14 2025, 3:39 AM · gnupg, vsd, kleopatra
gniibe added a comment to rG22f9c4a3b3c1: gpg: Release lock after close also in the compress code path..

Sorry for my late review. I should have reviewed earlier.

Oct 14 2025, 2:54 AM

Oct 13 2025

gniibe claimed T7805: Permission denied on batch deletion of mixed (openpgp+smime) certs.
Oct 13 2025, 7:53 AM · gnupg, vsd, kleopatra

Oct 10 2025

gniibe added a comment to T7855: keybox/keydb locking issue in 2.6 .

I understand that this is for 2.6.

Oct 10 2025, 9:24 AM · gpd5x (gpd-5.0.0), gnupg26

Oct 9 2025

gniibe added a comment to T7855: keybox/keydb locking issue in 2.6 .

Here are places where I found problems.

Oct 9 2025, 10:13 AM · gpd5x (gpd-5.0.0), gnupg26
gniibe triaged T7855: keybox/keydb locking issue in 2.6 as High priority.
Oct 9 2025, 10:11 AM · gpd5x (gpd-5.0.0), gnupg26

Oct 8 2025

gniibe closed T7723: gpgrt:w32: Fix for inheriting stdin/stdout/stderr with "NUL", a subtask of T7716: gpgrt:w32: Synchronous spawning detached process, with standard input and standard error, as Resolved.
Oct 8 2025, 9:09 AM · gpgrt, Feature Request, Bug Report
gniibe closed T7723: gpgrt:w32: Fix for inheriting stdin/stdout/stderr with "NUL" as Resolved.

Fixed in 1.56.

Oct 8 2025, 9:09 AM · Windows, gpgrt, Feature Request, Bug Report
gniibe closed T7218: pinentry memory leak as Resolved.

Fixed in 1.3.2.

Oct 8 2025, 9:08 AM · pinentry, Bug Report
gniibe closed T7696: POSIX: spawn fixes as Resolved.
Oct 8 2025, 9:05 AM · gpgrt, Bug Report
gniibe closed T7696: POSIX: spawn fixes, a subtask of T7660: GPGME invocation by cri-o hangs on gpgme_op_verify, as Resolved.
Oct 8 2025, 9:05 AM · golang, gpgme, Bug Report
gniibe committed rG973122f54aa3: gpg: Take care about the prefix for Curve25519 encryption. (authored by gniibe).
gpg: Take care about the prefix for Curve25519 encryption.
Oct 8 2025, 6:58 AM
gniibe committed rG9c61a8cca6b4: agent: Rename the internal function for ECC KEM. (authored by gniibe).
agent: Rename the internal function for ECC KEM.
Oct 8 2025, 6:58 AM
gniibe committed rGd640e9c95afb: gpgsm: Encrypt with ECC by KEM API. (authored by gniibe).
gpgsm: Encrypt with ECC by KEM API.
Oct 8 2025, 6:58 AM
gniibe changed the status of T7845: gpgsm: Use KEM interface for encryption, a subtask of T7649: gnupg: Use KEM interface for encryption/decryption, from Open to Testing.
Oct 8 2025, 6:57 AM · gnupg26
gniibe changed the status of T7845: gpgsm: Use KEM interface for encryption from Open to Testing.
Oct 8 2025, 6:57 AM · gnupg26

Oct 7 2025

gniibe committed rG5b61280e37af: gpgsm: Rewrite ecdh_derive_kek with gnupg_ecc_kem_kdf. (authored by gniibe).
gpgsm: Rewrite ecdh_derive_kek with gnupg_ecc_kem_kdf.
Oct 7 2025, 8:59 AM
gniibe triaged T7845: gpgsm: Use KEM interface for encryption as High priority.
Oct 7 2025, 8:56 AM · gnupg26
gniibe changed the status of T7811: gpgsm: Use KEM interface for decryption, a subtask of T7649: gnupg: Use KEM interface for encryption/decryption, from Open to Testing.
Oct 7 2025, 8:53 AM · gnupg26
gniibe changed the status of T7811: gpgsm: Use KEM interface for decryption from Open to Testing.
Oct 7 2025, 8:53 AM · gnupg26
gniibe committed rG2a221b83545d: gpgsm: Rearrange the cases for decryption. (authored by gniibe).
gpgsm: Rearrange the cases for decryption.
Oct 7 2025, 5:12 AM
gniibe committed rG035d0dd4adf3: gpgsm: Use KEM API for decryption. (authored by gniibe).
gpgsm: Use KEM API for decryption.
Oct 7 2025, 5:12 AM
gniibe committed rG06f993dc0ece: agent,common,gpg: Clean up for S/MIME decryption with KEM API. (authored by gniibe).
agent,common,gpg: Clean up for S/MIME decryption with KEM API.
Oct 7 2025, 5:12 AM

Oct 6 2025

gniibe added a comment to T7811: gpgsm: Use KEM interface for decryption.

Reading the commit log message in rG6dc3846d7819: sm: Support creation of EdDSA certificates.
I created a file to keygen.

Key-Type: ECDSA
Key-Length: 1024
Key-Grip: 0286DCA85E771F64AB9FD9C89717369524D55471
Key-Usage: sign,encrypt
Hash-Algo: sha384
Serial: random
Name-DN: CN=dummy test nistp384
Oct 6 2025, 7:28 AM · gnupg26
gniibe closed T7541: libassuan AC_DEFINE_UNQUOTED m4 fix needs propagating to pinentry and gnupg2 as Resolved.
Oct 6 2025, 2:05 AM · gpgme, gnupg, pinentry

Oct 3 2025

gniibe added a comment to T7720: w32: Synchronous spawning gpg-agent/dirmngr/keyboxd.

I updated the branch.

Oct 3 2025, 4:55 AM · gnupg, Feature Request, Bug Report
gniibe committed rA7ecea1a9d3d3: Update version string in libassuan.m4. (authored by gniibe).
Update version string in libassuan.m4.
Oct 3 2025, 4:10 AM
gniibe committed rE413b65f34fd1: Update copyright and version string in gpg-error.m4. (authored by gniibe).
Update copyright and version string in gpg-error.m4.
Oct 3 2025, 3:59 AM

Oct 2 2025

gniibe added a comment to T7829: w32: daemon (gpg-agent/keyboxd/dirmngr) startup and connection race when there is a socket file already.

I think that modifying gnupg_remove is a bit risky because it's used in many places.
I'd rather introduce new function for Windows; gnupg_w32_delete_file for this particular purpose.
Factoring out wait_when_sharing_violation function from gnupg_rename_file.

Oct 2 2025, 9:50 AM · gpd5x (gpd-5.0.0), gnupg22 (gnupg-2.2.52), Bug Report, okular

Oct 1 2025

gniibe updated the task description for T7829: w32: daemon (gpg-agent/keyboxd/dirmngr) startup and connection race when there is a socket file already.
Oct 1 2025, 8:44 AM · gpd5x (gpd-5.0.0), gnupg22 (gnupg-2.2.52), Bug Report, okular
gniibe added a comment to T7829: w32: daemon (gpg-agent/keyboxd/dirmngr) startup and connection race when there is a socket file already.

Here is a possible fix:

Oct 1 2025, 8:16 AM · gpd5x (gpd-5.0.0), gnupg22 (gnupg-2.2.52), Bug Report, okular
gniibe triaged T7829: w32: daemon (gpg-agent/keyboxd/dirmngr) startup and connection race when there is a socket file already as Normal priority.
Oct 1 2025, 7:58 AM · gpd5x (gpd-5.0.0), gnupg22 (gnupg-2.2.52), Bug Report, okular

Sep 26 2025

gniibe added a comment to T7811: gpgsm: Use KEM interface for decryption.

This is current work of mine:

Sep 26 2025, 10:50 AM · gnupg26

Sep 25 2025

gniibe committed rT91821820e793: build: Avoid using -a for test(1). (authored by gniibe).
build: Avoid using -a for test(1).
Sep 25 2025, 9:17 AM
gniibe committed rGa4bd829aa675: w32: Fix gnupg_isatty. (authored by gniibe).
w32: Fix gnupg_isatty.
Sep 25 2025, 8:36 AM
gniibe committed rG7846a8f29ce2: Fix the previous commit. (authored by gniibe).
Fix the previous commit.
Sep 25 2025, 8:36 AM
gniibe committed rPTH59987e37a587: build: Avoid using -a for test(1). (authored by gniibe).
build: Avoid using -a for test(1).
Sep 25 2025, 8:33 AM
gniibe committed rG7b479ee9faca: Fixes for -a and -o for test(1). (authored by gniibe).
Fixes for -a and -o for test(1).
Sep 25 2025, 7:13 AM
gniibe committed rK8c552d02bb90: build: Avoid using -a for test(1). (authored by gniibe).
build: Avoid using -a for test(1).
Sep 25 2025, 5:30 AM
gniibe committed rM5517c5fe3da6: build: Avoid using -o for test(1). (authored by gniibe).
build: Avoid using -o for test(1).
Sep 25 2025, 4:44 AM
gniibe committed rA70a3ce736be7: build: Avoid using -a for test(1). (authored by gniibe).
build: Avoid using -a for test(1).
Sep 25 2025, 4:38 AM

Sep 24 2025

gniibe committed rPc5948fa9d327: m4: Fix curses.m4 for test(1). (authored by gniibe).
m4: Fix curses.m4 for test(1).
Sep 24 2025, 8:19 AM
gniibe committed rP23267aaf764d: build: Avoid using -a and -o for test(1). (authored by gniibe).
build: Avoid using -a and -o for test(1).
Sep 24 2025, 8:18 AM
gniibe added a comment to T7658: Okular: Dirmngr startup timeout on signature validation.

I can't find any causes of slowness in keyboxd initialization. I think that there is a situation where it simply takes time on Windows.

Sep 24 2025, 8:14 AM · gpd5x (gpd-5.0.0), Bug Report, okular
gniibe committed rEa51f30e92367: Also fix for test(1) operator -o. (authored by gniibe).
Also fix for test(1) operator -o.
Sep 24 2025, 3:46 AM

Sep 23 2025

gniibe committed rM52bde50b879c: gpgsm: Introduce two phase interactions to consume diag output. (authored by gniibe).
gpgsm: Introduce two phase interactions to consume diag output.
Sep 23 2025, 1:21 PM
gniibe committed rMcff9df67d34f: gpgsm: Extend gpgsm_assuan_simple_command to consule diag output. (authored by gniibe).
gpgsm: Extend gpgsm_assuan_simple_command to consule diag output.
Sep 23 2025, 1:21 PM
gniibe added a comment to T7807: Please allow building pinentry against fltk 1.4.

@ametzler1 Thank you.

Sep 23 2025, 8:21 AM · pinentry, Bug Report
gniibe committed rE0313b660f8bd: w32: Don't convert slash->backslash when it's under Wine. (authored by gniibe).
w32: Don't convert slash->backslash when it's under Wine.
Sep 23 2025, 5:28 AM
gniibe committed rE00a40c0c599f: w32:spawn: Fix thread-unfriendly internal check. (authored by gniibe).
w32:spawn: Fix thread-unfriendly internal check.
Sep 23 2025, 5:28 AM
gniibe claimed T7658: Okular: Dirmngr startup timeout on signature validation.
Sep 23 2025, 4:21 AM · gpd5x (gpd-5.0.0), Bug Report, okular

Sep 22 2025

gniibe added a comment to T7807: Please allow building pinentry against fltk 1.4.

test -a is not a POSIX construct, I intentionally avoided it.

Sep 22 2025, 2:52 AM · pinentry, Bug Report

Sep 19 2025

gniibe added a comment to T7807: Please allow building pinentry against fltk 1.4.

@ametzler1 Thank you for your report.
I modified a bit (not using && between two test but using -a for a single test command), and pushed the change:
rP121494245f49: build: Allow build with fltk 1.4.

Sep 19 2025, 8:44 AM · pinentry, Bug Report
gniibe committed rP121494245f49: build: Allow build with fltk 1.4. (authored by gniibe).
build: Allow build with fltk 1.4.
Sep 19 2025, 8:43 AM

Sep 15 2025

gniibe updated the task description for T7811: gpgsm: Use KEM interface for decryption.
Sep 15 2025, 7:21 AM · gnupg26
gniibe updated the task description for T7811: gpgsm: Use KEM interface for decryption.
Sep 15 2025, 7:20 AM · gnupg26
gniibe lowered the priority of T7811: gpgsm: Use KEM interface for decryption from High to Normal.
Sep 15 2025, 7:07 AM · gnupg26
gniibe triaged T7811: gpgsm: Use KEM interface for decryption as High priority.
Sep 15 2025, 7:07 AM · gnupg26

Sep 9 2025

gniibe claimed T7807: Please allow building pinentry against fltk 1.4.
Sep 9 2025, 3:53 AM · pinentry, Bug Report

Sep 2 2025

gniibe committed rG106d73de8685: agent:w32: Fix non-release of MAPSID. (authored by gniibe).
agent:w32: Fix non-release of MAPSID.
Sep 2 2025, 7:04 AM
gniibe added a comment to T7799: gpg-agent crashes when using putty for ssh connection.

@m.eik Could you please enable debug option for gpg-agent and get the log output for the crash?

Sep 2 2025, 6:53 AM · gpd5x (gpd-5.0.0), gpgagent, gpg4win
gniibe committed rG1b84d649eacf: dirmngr,gpg,scd,sm,tools: Minor fixes for es_free. (authored by gniibe).
dirmngr,gpg,scd,sm,tools: Minor fixes for es_free.
Sep 2 2025, 6:35 AM
gniibe committed rGaba5c8f0cc6c: agent: Minor clean-up for use of es_free. (authored by gniibe).
agent: Minor clean-up for use of es_free.
Sep 2 2025, 4:46 AM
gniibe claimed T7799: gpg-agent crashes when using putty for ssh connection.
Sep 2 2025, 2:22 AM · gpd5x (gpd-5.0.0), gpgagent, gpg4win

Sep 1 2025

gniibe added a comment to T7759: Kleopatra: Notepad encryption with S/MIME fails.

I fixed the problem (which I identified above) in gniibe/t7759 branch. There might be other causes/problems for the particular symptom, so, I don't know the fix resolves the symptom or not, though. Anyhow, I believe that this is an improvement.

Sep 1 2025, 4:16 AM · gpd5x (gpd-5.0.0), gnupg26, gpgme, kleopatra

Aug 27 2025

gniibe claimed T7791: encryption fails with "Invalid Length" error when using Kyber1024 keys.

Thank you for the report.

Aug 27 2025, 8:10 AM · PQC, gnupg26, Bug Report
gniibe added a comment to T7759: Kleopatra: Notepad encryption with S/MIME fails.

Similar situation could happen with gpgsm + gpg-agent, when gpg-agent is invoked by gpgsm.
(1) No gpg-agent.
(2) In gpgme, by engine-gpgsm, gpgsm is invoked with --logger.
(3) In gpgsm_keylist, it makes sure gpg-agent is available by GETINFO agent-check, using gpgsm_assuan_simple_command.
(4) In the server side, it tries to connect gpg-agent, invokes gpg-agent, and connect to the agent again.
(5) On Windows, it may takes time to invoke gpg-agent. And it may try to connect multiple times. Each trial may generate debug messages.
(6) When it takes too much time, the debug messages are too much. It may fill the pipe.
(7) And it blocks at log_string in my_libassuan_log_handler.
(8) ... it hangs.

Aug 27 2025, 6:53 AM · gpd5x (gpd-5.0.0), gnupg26, gpgme, kleopatra
gniibe added a comment to T7759: Kleopatra: Notepad encryption with S/MIME fails.

Hypothetical scenario (gpgsm --server + dirmngr):
(0) It may hang when much debug messages are generated by libassuan to the pipe of --logger (diag_cb).
(1) In gpgme, by engine-gpgsm, gpgsm is invoked with --logger.
(2) If it's the case of standard gpgme interactions which uses gpgsm_io_event, no problem. Because the data on diag_cb is consumed well.
(3) In case of gpgsm_encrypt (or other commands), it uses gpgsm_assuan_simple_command which does not consume the data on diag_cb pipe at all.
(4) In particular, in set_recipients, gpgsm_assuan_simple_command is called by the number of recipients times.
(5) IIUC, in the server side, to handle RECIPIENT command, dirmngr is used by the call chain of:

  • cmd_recipient
  • gpgsm_add_to_certlist
  • gpgsm_validate_chain...
  • gpgsm_dirmngr_isvalid

(6) In gpgsm_dirmngr_isvalid function, libassuan is used as client side, it generates debug messages.
(7) When there are many recipients, the debug message may be big enough to fill the pipe.
(8) When pipe is filled, it blocks at log_string in my_libassuan_log_handler, waiting the data in pipe is consumed.
(9) ... it hangs.

Aug 27 2025, 5:12 AM · gpd5x (gpd-5.0.0), gnupg26, gpgme, kleopatra