Page MenuHome GnuPG
Feed Advanced Search

Nov 25 2020

gniibe added a comment to T5150: scd: For NetKey cards READKEY with keygrip fails.

For the first issue, I pushed the change in rGc3a20c88fb30: scd: Fix an error return for READKEY..

Nov 25 2020, 3:48 AM · backport, gnupg (gpg23), scd
gniibe committed rGc3a20c88fb30: scd: Fix an error return for READKEY. (authored by gniibe).
scd: Fix an error return for READKEY.
Nov 25 2020, 3:45 AM
gniibe committed rG006944b856ee: scd,nks: Fix SEGV for learn for older card. (authored by gniibe).
scd,nks: Fix SEGV for learn for older card.
Nov 25 2020, 2:38 AM
gniibe changed the status of T5144: scd: Fails/crashes on SCD LEARN --keypairinfo for NetKey cards, a subtask of T5128: Kleopatra: Generate OpenPGP public key for NetKey card key, from Open to Testing.
Nov 25 2020, 2:37 AM · kleopatra
gniibe changed the status of T5144: scd: Fails/crashes on SCD LEARN --keypairinfo for NetKey cards from Open to Testing.
Nov 25 2020, 2:37 AM · Restricted Project, gnupg (gpg23), scd
gniibe claimed T5144: scd: Fails/crashes on SCD LEARN --keypairinfo for NetKey cards.

Fixed in rG006944b856ee: scd,nks: Fix SEGV for learn for older card..

Nov 25 2020, 2:37 AM · Restricted Project, gnupg (gpg23), scd
gniibe added a comment to T5100: OpenPGP app overwrites Yubikey serial number.

Great. Please apply the patch.

Nov 25 2020, 1:42 AM · Restricted Project, gnupg, scd, yubikey, kleopatra
gniibe added a comment to T5151: GPGME++ : bad passphrase problems.

More specifically, in the situation of multiple calls, ->getPassphrase is called multiple times, and it should return newly allocated "char *" object each time, because it is released each time (in lower layer).

Nov 25 2020, 1:22 AM · segv, gpgme, Bug Report
gniibe added a comment to T5151: GPGME++ : bad passphrase problems.

My excuse: Please note that the support of exporting secret keys by GPGME are relatively new feature (see {T5046) and the fix rM3382ecb17eb5: core: Support exporting secret keys.). The fix of rM53ac732bae46: core: Call _gpgme_passphrase_status_handler when exporting keys. is a part of the support.
I think that we need more fixes for gpg/gpgme to be fully working well.

Nov 25 2020, 12:51 AM · segv, gpgme, Bug Report

Nov 24 2020

gniibe added a comment to T1954: Password too long.

Please use shorter password.
For gpgsm, maximum is 31 chars.

Nov 24 2020, 8:54 AM · Info Needed, gnupg (gpg20), Bug Report, gnupg
gniibe added a comment to T5151: GPGME++ : bad passphrase problems.

Currently, gpg doesn't report any errors to status line for exporting secret keys. If needed, a patch like this is needed:

Nov 24 2020, 8:12 AM · segv, gpgme, Bug Report
gniibe committed rM53ac732bae46: core: Call _gpgme_passphrase_status_handler when exporting keys. (authored by gniibe).
core: Call _gpgme_passphrase_status_handler when exporting keys.
Nov 24 2020, 7:09 AM
gniibe added a comment to T5151: GPGME++ : bad passphrase problems.

Chasing this bug, I pushed a change: rM53ac732bae46: core: Call _gpgme_passphrase_status_handler when exporting keys.

Nov 24 2020, 7:08 AM · segv, gpgme, Bug Report

Nov 20 2020

gniibe added a comment to rG0a265d6498e8: gpg,agent: Fix comments for KEYPAIRINFO status report..

Thanks, I was wrong.

Nov 20 2020, 9:25 AM
gniibe committed rG777019faf0b8: gpg: Change API of agent_scd_serialno. (authored by gniibe).
gpg: Change API of agent_scd_serialno.
Nov 20 2020, 9:20 AM
gniibe committed rGcc8b99d18e26: Fix the previous comment changes help doc string. (authored by gniibe).
Fix the previous comment changes help doc string.
Nov 20 2020, 9:20 AM
gniibe added a comment to T5100: OpenPGP app overwrites Yubikey serial number.

How about distinguishing CARDNO and application specific SERIALNO?

Nov 20 2020, 8:38 AM · Restricted Project, gnupg, scd, yubikey, kleopatra
gniibe committed rGPAb40ff3b1f20d: build: Update to newer autoconf constructs. (authored by gniibe).
build: Update to newer autoconf constructs.
Nov 20 2020, 8:26 AM
gniibe committed rSbd471ef56c08: build: Update to newer autoconf constructs. (authored by gniibe).
build: Update to newer autoconf constructs.
Nov 20 2020, 6:37 AM
gniibe committed rM4c6fd361593e: m4: Update with newer autoconf constructs. (authored by gniibe).
m4: Update with newer autoconf constructs.
Nov 20 2020, 4:12 AM
gniibe committed rG0a265d6498e8: gpg,agent: Fix comments for KEYPAIRINFO status report. (authored by gniibe).
gpg,agent: Fix comments for KEYPAIRINFO status report.
Nov 20 2020, 1:58 AM
gniibe added a comment to T5039: 2.2.22 regression: Nitrokey Pro 2 is no longer recognized automatically, requires --card-status.

Yes, it is due to a backport from master: rG1049f06c6d2e: scd:openpgp: Allow keygrip to be used to reference a key
Fixed in rG84020385be19: scd:openpgp: Public keys should be available for check_keyidstr..

Nov 20 2020, 1:42 AM · Restricted Project, gnupg (gpg22), Bug Report

Nov 19 2020

gniibe added a comment to T5143: YubiKey 5 Nano GPG --card-edit verify command causes a segfault.

I looked the gpg-agent.log, it indeed suggested the problem fixed in rG61aea64b3c17: scd: Fix the use case of verify_chv2 by CHECKPIN., which is included in 2.2.24.

Nov 19 2020, 11:54 AM · gnupg (gpg22), Bug Report
gniibe claimed T5143: YubiKey 5 Nano GPG --card-edit verify command causes a segfault.

You have multiple readers and using PC/SC by specifying reader-port.
We fixed in master by T4998: scdaemon: PC/SC "No such device" without reader-port, and I didn't know similar fixes should be backported.
I will soon.

Nov 19 2020, 9:24 AM · gnupg (gpg22), Bug Report
gniibe committed rG8ddadbbdbbe2: agent: Fix creating shadow key on card key generation. (authored by gniibe).
agent: Fix creating shadow key on card key generation.
Nov 19 2020, 7:52 AM
gniibe reopened T5065: scdaemon doesn't detect card removal after boot/resume (Identiv SPR332v2) as "Testing".
Nov 19 2020, 5:58 AM · Restricted Project, gnupg (gpg22), scd, Bug Report
gniibe added a comment to T5065: scdaemon doesn't detect card removal after boot/resume (Identiv SPR332v2).

Thanks again for your report.

Nov 19 2020, 5:57 AM · Restricted Project, gnupg (gpg22), scd, Bug Report
gniibe committed rG84020385be19: scd:openpgp: Public keys should be available for check_keyidstr. (authored by gniibe).
scd:openpgp: Public keys should be available for check_keyidstr.
Nov 19 2020, 5:56 AM
gniibe committed rGe45455d3020c: gpg: Fix --card-edit command. (authored by gniibe).
gpg: Fix --card-edit command.
Nov 19 2020, 5:13 AM
gniibe added a comment to T5137: gpg-agent 2.x poor performance / futex errors.

Thanks. I understand the situation. Basically, gpg-agent's computation is done by a single thread (in current implementation), although it accepts many requests simultaneously.

Nov 19 2020, 3:21 AM · Feature Request, gpgagent

Nov 18 2020

gniibe committed rTe0a807eec263: m4: Update with newer autoconf constructs. (authored by gniibe).
m4: Update with newer autoconf constructs.
Nov 18 2020, 8:27 AM
gniibe committed rT35d7429480b0: build: Update to newer autoconf constructs. (authored by gniibe).
build: Update to newer autoconf constructs.
Nov 18 2020, 8:27 AM
gniibe committed rK1ef7f310d8bb: m4: Update with newer autoconf constructs. (authored by gniibe).
m4: Update with newer autoconf constructs.
Nov 18 2020, 7:50 AM
gniibe committed rK0d46f2c000c4: build: Update to newer autoconf constructs. (authored by gniibe).
build: Update to newer autoconf constructs.
Nov 18 2020, 7:50 AM
gniibe committed rK60b32609ae7f: build: Use modern Autoconf check for type. (authored by gniibe).
build: Use modern Autoconf check for type.
Nov 18 2020, 7:50 AM
gniibe closed T5065: scdaemon doesn't detect card removal after boot/resume (Identiv SPR332v2) as Resolved.
Nov 18 2020, 7:03 AM · Restricted Project, gnupg (gpg22), scd, Bug Report
gniibe closed T5086: GnuPG fails to generate keys on-card in versions 2.2.22 and 2.2.23 as Resolved.
Nov 18 2020, 7:03 AM · Restricted Project, gnupg, Bug Report
gniibe closed T5121: a race condition between intr_cb call back and libusb_free_transfer in do_close_reader, a subtask of T5065: scdaemon doesn't detect card removal after boot/resume (Identiv SPR332v2), as Resolved.
Nov 18 2020, 7:02 AM · Restricted Project, gnupg (gpg22), scd, Bug Report
gniibe closed T5121: a race condition between intr_cb call back and libusb_free_transfer in do_close_reader as Resolved.
Nov 18 2020, 7:02 AM · gnupg (gpg22), Restricted Project, scd
gniibe committed rM223779dfdeb7: build: Update with newer autoconf constructs. (authored by gniibe).
build: Update with newer autoconf constructs.
Nov 18 2020, 7:02 AM
gniibe committed rP5c83f6314e3f: build: Update to newer autoconf constructs. (authored by gniibe).
build: Update to newer autoconf constructs.
Nov 18 2020, 6:55 AM
gniibe committed rGd66fb3aa53a6: build: Update to newer autoconf constructs. (authored by gniibe).
build: Update to newer autoconf constructs.
Nov 18 2020, 6:19 AM
gniibe committed rGaeeb8e975dc7: build: Use modern Autoconf check for types. (authored by gniibe).
build: Use modern Autoconf check for types.
Nov 18 2020, 6:19 AM
gniibe committed rC9485ca7b5bf1: build: Update to newer autoconf constructs. (authored by gniibe).
build: Update to newer autoconf constructs.
Nov 18 2020, 4:04 AM
gniibe committed rC425bf499185d: build: Use modern Autoconf check for type. (authored by gniibe).
build: Use modern Autoconf check for type.
Nov 18 2020, 4:04 AM
gniibe committed rC908e347fb68b: m4: Update with newer autoconf constructs. (authored by gniibe).
m4: Update with newer autoconf constructs.
Nov 18 2020, 2:03 AM

Nov 17 2020

gniibe committed rPTH7e45b50a4034: m4: Update with newer autoconf constructs. (authored by gniibe).
m4: Update with newer autoconf constructs.
Nov 17 2020, 7:50 AM
gniibe committed rPTHf73f94228652: build: Update to newer autoconf constructs. (authored by gniibe).
build: Update to newer autoconf constructs.
Nov 17 2020, 7:50 AM
gniibe committed rA12fd96a61033: build: Update to newer autoconf constructs. (authored by gniibe).
build: Update to newer autoconf constructs.
Nov 17 2020, 6:37 AM
gniibe committed rA05535d9863cf: m4: Update with newer autoconf constructs. (authored by gniibe).
m4: Update with newer autoconf constructs.
Nov 17 2020, 6:37 AM
gniibe committed rE8047ca99858a: m4: Update with newer autoconf constructs. (authored by gniibe).
m4: Update with newer autoconf constructs.
Nov 17 2020, 5:30 AM
gniibe committed rE41d753e21eaa: build: Update to new autoconf constructs. (authored by gniibe).
build: Update to new autoconf constructs.
Nov 17 2020, 5:30 AM
gniibe added a comment to T5137: gpg-agent 2.x poor performance / futex errors.

I think that it is not gpg-agent but pinentry which causes millions of futex syscall errors.
For interactive use case, pinentry may be the point of contention.
I might be wrong if your key is not protected by passphrase.

Nov 17 2020, 2:10 AM · Feature Request, gpgagent

Nov 16 2020

gniibe renamed T4956: agent: Discrepancy of handling MPI for the interpretation of signed and unsigned from agent: Disrepancy of handling MPI for the interpretation of signed and unsigned to agent: Discrepancy of handling MPI for the interpretation of signed and unsigned.
Nov 16 2020, 8:09 AM · gpgagent, gnupg
gniibe renamed T4964: ecc: Discrepancy of handling MPI for the interpretation of signed and unsigned from ecc: Disrepancy of handling MPI for the interpretation of signed and unsigned to ecc: Discrepancy of handling MPI for the interpretation of signed and unsigned.
Nov 16 2020, 8:09 AM · libgcrypt
gniibe closed T4712: Keygrip broken in master for cv25519 as Resolved.
Nov 16 2020, 8:08 AM · Restricted Project, Bug Report, libgcrypt
gniibe closed T4104: gpgsm/ksba removes leading zeros from signature byte array as Resolved.
Nov 16 2020, 7:33 AM · Restricted Project, libksba, S/MIME, Bug Report
gniibe closed T4624: libassuan-config and libassuan.pc both put -lws2_32 before -lgpg-error, which fails during static linking as Resolved.
Nov 16 2020, 7:29 AM · Restricted Project, Windows, libassuan, Bug Report
gniibe closed T4994: Windows: assuan_sock_init or WSAStartup by main/_init_common_subsystem as Resolved.
Nov 16 2020, 7:29 AM · Restricted Project, gnupg, Windows
gniibe closed T4641: Libassuan: enable the environment to set compiler and linker flags for helper tools as Resolved.
Nov 16 2020, 7:28 AM · Restricted Project, libassuan, Feature Request
gniibe closed T4678: libassuan.pc missing include dir directive in cflags as Resolved.
Nov 16 2020, 7:27 AM · Restricted Project, libassuan
gniibe claimed T5134: GPG - will not sign nor verify the pin when using a contactless reader.

I don't see any problems in your PC/SC log, at all. If it is the failure of vendor's driver, we actually have no way to fix.

Nov 16 2020, 3:42 AM · Not A Bug, scd, Bug Report

Nov 13 2020

gniibe closed T5074: Leaking fd as Resolved.
Nov 13 2020, 7:17 AM · Restricted Project, gpgme, Bug Report
gniibe closed T4688: `make distcheck` fails trying to make `rst/gpgme-python-howto.rst` as Resolved.
Nov 13 2020, 7:17 AM · Restricted Project, gpgme, Bug Report

Nov 12 2020

gniibe added a comment to T4800: python-gpgme signature revokation assertion error: `gpg->cmd.code' failed.

Thanks for your report, but your excerpt is irrelevant.

Nov 12 2020, 9:11 AM · gpgme, Bug Report
gniibe closed T5046: Exporting secret keys via gpgme as Resolved.

Push the change.

Nov 12 2020, 5:15 AM · gpgme, Bug Report
gniibe committed rM3382ecb17eb5: core: Support exporting secret keys. (authored by gniibe).
core: Support exporting secret keys.
Nov 12 2020, 5:14 AM
gniibe claimed T5046: Exporting secret keys via gpgme.

Thank you.

Nov 12 2020, 5:10 AM · gpgme, Bug Report
gniibe committed rG2b2f21445c91: po: Update Japanese Translations. (authored by gniibe).
po: Update Japanese Translations.
Nov 12 2020, 5:02 AM
gniibe committed rM7139afc5cdc0: python: Fix a test for newer GnuPG (>= 2.3). (authored by gniibe).
python: Fix a test for newer GnuPG (>= 2.3).
Nov 12 2020, 3:17 AM
gniibe added a comment to T5100: OpenPGP app overwrites Yubikey serial number.

Let me describe current situation.

Nov 12 2020, 12:56 AM · Restricted Project, gnupg, scd, yubikey, kleopatra

Nov 11 2020

gniibe committed rM276f3390e18b: qt: Allow build with older GnuPG (< 2.2.18). (authored by gniibe).
qt: Allow build with older GnuPG (< 2.2.18).
Nov 11 2020, 4:01 AM
gniibe committed rGdd2703096f3e: gpg: Fix the previous commit. (authored by gniibe).
gpg: Fix the previous commit.
Nov 11 2020, 1:14 AM
gniibe added a comment to rGf9bbc751633f: gpg: In batch mode, delete-secret-key is not okay without --yes..

Thanks.
I didn't consider well about the test environment which uses special pinentry program.
I'll fix the line 155.

Nov 11 2020, 1:11 AM

Nov 10 2020

gniibe closed T3950: gnupg-2.2.6 fails to find correct library config programs when cross-compiling for ARM as Wontfix.

The feature (better cross compiling) was done in master.
We close this bug report as "Won't fix" since it will never been applied to 2.2.

Nov 10 2020, 6:48 AM · Feature Request
gniibe added a comment to T3950: gnupg-2.2.6 fails to find correct library config programs when cross-compiling for ARM.

In newer releases of libgpg-error, libksba, libassuan, libgcrypt, npth and ntbtls, we updated corresponding *.m4, so that we can use new gpgrt-config program only. And gpgrt-config command supports cross compiling and multiarch libraries.

Nov 10 2020, 6:45 AM · Feature Request
gniibe changed the status of T5086: GnuPG fails to generate keys on-card in versions 2.2.22 and 2.2.23 from Open to Testing.

For 2.2, rG61aea64b3c17: scd: Fix the use case of verify_chv2 by CHECKPIN. fixed this problem.

Nov 10 2020, 6:15 AM · Restricted Project, gnupg, Bug Report
gniibe added a comment to T4667: "gpg: deleting secret key failed: No pinentry" when in --batch mode with --pinentry=loopback.

Fixed in master.
(confirmation interaction is also fixed.)

Nov 10 2020, 6:11 AM · gnupg24, gnupg (gpg23), Bug Report
gniibe committed rGf9bbc751633f: gpg: In batch mode, delete-secret-key is not okay without --yes. (authored by gniibe).
gpg: In batch mode, delete-secret-key is not okay without --yes.
Nov 10 2020, 6:10 AM
gniibe changed the status of T4998: scdaemon: PC/SC "No such device" without reader-port from Open to Testing.
Nov 10 2020, 4:00 AM · Restricted Project, scd, Bug Report
gniibe changed the status of T4998: scdaemon: PC/SC "No such device" without reader-port, a subtask of T3300: scd: Support multiple readers by PC/SC driver, from Open to Testing.
Nov 10 2020, 4:00 AM · Restricted Project, gnupg (gpg23), scd
gniibe added a comment to T5120: Incompatible Ed25519 secret key (no-encryption).

Need another patch to export it:

diff --git a/g10/export.c b/g10/export.c
index 8dd0b07d7..339424e19 100644
--- a/g10/export.c
+++ b/g10/export.c
@@ -627,6 +627,57 @@ canon_pk_algo (enum gcry_pk_algos algo)
 }
Nov 10 2020, 3:41 AM · gnupg (gpg22), Bug Report
gniibe merged T3366: Secret keys won't delete into T3465: --pinentry-mode loopback with --delete-secret-keys.
Nov 10 2020, 2:39 AM · gnupg, Bug Report
gniibe merged task T3366: Secret keys won't delete into T3465: --pinentry-mode loopback with --delete-secret-keys.
Nov 10 2020, 2:39 AM · gnupg, Windows 32, gpg4win, Bug Report
gniibe added a comment to T3366: Secret keys won't delete.

It's fixed in master by T3465: --pinentry-mode loopback with --delete-secret-keys, with new confirmation interaction.
For 2.2, you can use --batch and --yes, see T4667: "gpg: deleting secret key failed: No pinentry" when in --batch mode with --pinentry=loopback.

Nov 10 2020, 2:39 AM · gnupg, Windows 32, gpg4win, Bug Report
gniibe committed rG9854369a729b: gpg: Fix agent_delete_key interaction. (authored by gniibe).
gpg: Fix agent_delete_key interaction.
Nov 10 2020, 2:31 AM
gniibe raised the priority of T5018: Export keys to secure card failure: gpg: KEYTOCARD failed: Unusable secret key from Low to Normal.
Nov 10 2020, 1:42 AM · Info Needed, Bug Report
gniibe claimed T5018: Export keys to secure card failure: gpg: KEYTOCARD failed: Unusable secret key.
Nov 10 2020, 1:42 AM · Info Needed, Bug Report
gniibe triaged T5018: Export keys to secure card failure: gpg: KEYTOCARD failed: Unusable secret key as Low priority.

Did you remove .gnupg entirely? Secret keys are stored in .gnupg/private-keys-v1.d. If it remained, you didn't import your secret keys.
If it was the case, I'd like to merge this report to T3391: cannot import subkey that was once marked to be on a card.

Nov 10 2020, 1:42 AM · Info Needed, Bug Report

Nov 9 2020

gniibe created T5122: Importing secret key with wrong passphrase may result GPG_ERR_MISSING_VALUE (should be able to be tried 3 times).
Nov 9 2020, 4:09 AM · gnupg
gniibe committed rGbf3a9377d147: gpg: Fix SOS handling when exporting SSH key with libgcrypt 1.8. (authored by gniibe).
gpg: Fix SOS handling when exporting SSH key with libgcrypt 1.8.
Nov 9 2020, 3:42 AM
gniibe committed rGba4f68416742: agent: Fix SOS handling with libgcrypt 1.8. (authored by gniibe).
agent: Fix SOS handling with libgcrypt 1.8.
Nov 9 2020, 3:42 AM
gniibe added a comment to T5055: APPCRASH with libKF5ConfigWidgets.dll.

The "Reliability History" says (in Chinese):

异常代码: c0000005
异常偏移: 0002b6c0

The error code c0000005 is something like SEGV on POSIX, I guess.
It occurred at the address 0002b6c0.

Nov 9 2020, 2:57 AM · Bug Report, gpg4win

Nov 5 2020

gniibe added a comment to T5121: a race condition between intr_cb call back and libusb_free_transfer in do_close_reader.

For SPR532, we need following.

Nov 5 2020, 8:47 AM · gnupg (gpg22), Restricted Project, scd
gniibe edited projects for T5121: a race condition between intr_cb call back and libusb_free_transfer in do_close_reader, added: Restricted Project, gnupg (gpg22); removed gnupg.
Nov 5 2020, 8:24 AM · gnupg (gpg22), Restricted Project, scd
gniibe changed the status of T5121: a race condition between intr_cb call back and libusb_free_transfer in do_close_reader, a subtask of T5065: scdaemon doesn't detect card removal after boot/resume (Identiv SPR332v2), from Open to Testing.
Nov 5 2020, 8:24 AM · Restricted Project, gnupg (gpg22), scd, Bug Report
gniibe changed the status of T5121: a race condition between intr_cb call back and libusb_free_transfer in do_close_reader from Open to Testing.
Nov 5 2020, 8:24 AM · gnupg (gpg22), Restricted Project, scd
gniibe added a parent task for T5121: a race condition between intr_cb call back and libusb_free_transfer in do_close_reader: T5065: scdaemon doesn't detect card removal after boot/resume (Identiv SPR332v2).
Nov 5 2020, 8:22 AM · gnupg (gpg22), Restricted Project, scd
gniibe added a subtask for T5065: scdaemon doesn't detect card removal after boot/resume (Identiv SPR332v2): T5121: a race condition between intr_cb call back and libusb_free_transfer in do_close_reader.
Nov 5 2020, 8:22 AM · Restricted Project, gnupg (gpg22), scd, Bug Report
gniibe committed rGf808012ac2cf: scd: Use lock_slot for apdu_send_direct. (authored by gniibe).
scd: Use lock_slot for apdu_send_direct.
Nov 5 2020, 8:19 AM