Page MenuHome GnuPG
Feed All Stories

May 7 2021

werner committed rG987b81686022: scd,pcsc: Use a single context. (authored by gniibe).
scd,pcsc: Use a single context.
May 7 2021, 9:55 AM
werner committed rG26de9c400ee6: build: Silence a cimpiler warning also in non-maintainer mode. (authored by werner).
build: Silence a cimpiler warning also in non-maintainer mode.
May 7 2021, 9:55 AM
pnirschl added a comment to T5422: gnupg 2.3.1 breaks gpgme_op_createkey().

run-genkey is working fine in my test environment as well.

May 7 2021, 9:41 AM · gpgme, Bug Report
werner requested changes to D531: Keep holding READER_LOCK_TABLE and make clear distinction among close/releasing_PCSC_context/nullify_rdrname.

Keeping the lock over the call to the function does not look very robust to me. This is why I removed it. And since then PC/SC worked on Windows for me. Modulo this:
All these changes don't tackle the real problem that windows gets struck in a removed-card state.

May 7 2021, 8:36 AM · gnupg (gpg23), scd
colemickens added a comment to T5416: [windows] Smartcards are less reliable under 2.3.1 (requires restarting gpg-agent.exe).

Technical commentary on smartcard operation and/or Windows is going to be over my head, so I can't help (just in case you're looking for anything from me). But always happy to drive-test another build. (I've still had no issues, personally, with the build above.) I'll assume you don't need me unless you link another binary build to test or tag me. Thanks again, all.

May 7 2021, 7:22 AM · yubikey, scd, gnupg (gpg23), Bug Report
gniibe added a comment to T5416: [windows] Smartcards are less reliable under 2.3.1 (requires restarting gpg-agent.exe).

The problem is accesses to reader_table by
(1) scanning reader(s) to open new one
(2) closing reader

May 7 2021, 6:59 AM · yubikey, scd, gnupg (gpg23), Bug Report
gniibe added a comment to T5416: [windows] Smartcards are less reliable under 2.3.1 (requires restarting gpg-agent.exe).

I'm testing D531: Keep holding READER_LOCK_TABLE and make clear distinction among close/releasing_PCSC_context/nullify_rdrname, but I'm not sure about the impact on Windows.

May 7 2021, 6:54 AM · yubikey, scd, gnupg (gpg23), Bug Report
gniibe requested review of D531: Keep holding READER_LOCK_TABLE and make clear distinction among close/releasing_PCSC_context/nullify_rdrname.
May 7 2021, 6:51 AM · gnupg (gpg23), scd
gniibe reopened T5416: [windows] Smartcards are less reliable under 2.3.1 (requires restarting gpg-agent.exe) as "Open".

The commit rGbb8e3996e44f: scd: Fix problem with reader list becoming empty. removed READER_TABLE_LOCK holding between apdu_dev_list_start and apdu_dev_list_finish, that opens possible stale resource access for CCID driver: reader_table[slot].ccid.handle

May 7 2021, 6:34 AM · yubikey, scd, gnupg (gpg23), Bug Report
gniibe added projects to T5425: scdaemon.conf reader-port setting broken in 2.3: scd, Restricted Project, gnupg.
May 7 2021, 6:05 AM · gnupg, Restricted Project, scd, Bug Report
gniibe claimed T5425: scdaemon.conf reader-port setting broken in 2.3.

Thank you for your report.

May 7 2021, 6:04 AM · gnupg, Restricted Project, scd, Bug Report
gniibe committed rG0498ea8fbd57: scd: Increment PCSC.COUNT correctly. (authored by gniibe).
scd: Increment PCSC.COUNT correctly.
May 7 2021, 4:27 AM
gniibe committed rG5d1b41310682: scd: Fix memory leak for RDRNAME and serialize access. (authored by gniibe).
scd: Fix memory leak for RDRNAME and serialize access.
May 7 2021, 4:27 AM
gniibe committed rG039aed9d401f: scd: Fix declarations for PC/SC access. (authored by gniibe).
scd: Fix declarations for PC/SC access.
May 7 2021, 12:13 AM

May 6 2021

brianacton added a comment to T5409: scdaemon: 'Operation not supported by device' error under macOS after upgrading to 2.3.1.

I am also a MacOS Big Sur user who recently upgraded to 2.3.1 and had problems after upgrading. In my use case, I use the yubikey as the authentication for pass password manager which uses gpg under the hood.

May 6 2021, 10:15 PM · MacOS, Support, scd
dain created T5425: scdaemon.conf reader-port setting broken in 2.3.
May 6 2021, 8:57 PM · gnupg, Restricted Project, scd, Bug Report
ikloecker closed T5420: gpgme++: Add read-only support for trust signatures as Resolved.
May 6 2021, 3:16 PM · kleopatra, Restricted Project
ikloecker closed T5420: gpgme++: Add read-only support for trust signatures, a subtask of T5245: Kleopatra: Add support for trust signatures / trusted introducer, as Resolved.
May 6 2021, 3:16 PM · kleopatra, Restricted Project
ikloecker moved T5420: gpgme++: Add read-only support for trust signatures from Restricted Project Column to Restricted Project Column on the Restricted Project board.
May 6 2021, 3:16 PM · kleopatra, Restricted Project
ikloecker closed T5419: gpgme: Add support for trust signatures to key list result, a subtask of T5245: Kleopatra: Add support for trust signatures / trusted introducer, as Resolved.
May 6 2021, 3:15 PM · kleopatra, Restricted Project
ikloecker closed T5419: gpgme: Add support for trust signatures to key list result as Resolved.
May 6 2021, 3:15 PM · kleopatra, gpgme, Restricted Project
ikloecker moved T5419: gpgme: Add support for trust signatures to key list result from Restricted Project Column to Restricted Project Column on the Restricted Project board.
May 6 2021, 3:15 PM · kleopatra, gpgme, Restricted Project
ikloecker abandoned D530: gpgme: Add support for trust signatures to key list result.

This revision was committed with rM276187f6b62a: core: Extend gpgme_key_sig_t with trust signature members.

May 6 2021, 3:15 PM · gpgme
ikloecker set the repository for D530: gpgme: Add support for trust signatures to key list result to rM GPGME.
May 6 2021, 3:13 PM · gpgme
ikloecker moved T5421: gpgme++, qgpgme: Add support for creating trust signatures from Restricted Project Column to Restricted Project Column on the Restricted Project board.
May 6 2021, 3:06 PM · kleopatra, Restricted Project
ikloecker moved T5420: gpgme++: Add read-only support for trust signatures from Restricted Project Column to Restricted Project Column on the Restricted Project board.
May 6 2021, 3:06 PM · kleopatra, Restricted Project
ikloecker moved T5419: gpgme: Add support for trust signatures to key list result from Restricted Project Column to Restricted Project Column on the Restricted Project board.
May 6 2021, 3:06 PM · kleopatra, gpgme, Restricted Project
ikloecker committed rMf0858e45b0be: qt: Extend SignKeyJob to create trust signatures (authored by ikloecker).
qt: Extend SignKeyJob to create trust signatures
May 6 2021, 2:28 PM
ikloecker committed rM58a217b108e4: cpp: Do not close stdout/stderr when destroying EditInteractor (authored by ikloecker).
cpp: Do not close stdout/stderr when destroying EditInteractor
May 6 2021, 2:28 PM
ikloecker committed rMa8d7b9d16796: cpp: Add support for trust signatures to sign key edit interactor (authored by ikloecker).
cpp: Add support for trust signatures to sign key edit interactor
May 6 2021, 2:28 PM
ikloecker committed rMdae01f8185e0: qt: Pimpl QGpgMESignKeyJob (authored by ikloecker).
qt: Pimpl QGpgMESignKeyJob
May 6 2021, 2:28 PM
ikloecker committed rM276187f6b62a: core: Extend gpgme_key_sig_t with trust signature members. (authored by ikloecker).
core: Extend gpgme_key_sig_t with trust signature members.
May 6 2021, 2:28 PM
ikloecker committed rMe391a08c6f96: cpp: Add getters for the attributes of a trust signature (authored by ikloecker).
cpp: Add getters for the attributes of a trust signature
May 6 2021, 2:28 PM
gniibe committed rG53bdc6288f9b: scd: Recover the partial match for PORTSTR for PC/SC. (authored by gniibe).
scd: Recover the partial match for PORTSTR for PC/SC.
May 6 2021, 12:26 PM
gniibe committed rGd6fe82d3d169: scd: When reader is specified, make sure only open once. (authored by gniibe).
scd: When reader is specified, make sure only open once.
May 6 2021, 12:26 PM
aheinecke edited projects for T5424: GnuPG w32: Expand environment variables when reading registry paths, added: gnupg; removed gpgagent.
May 6 2021, 12:15 PM · gnupg (gpg22), Restricted Project
aheinecke triaged T5424: GnuPG w32: Expand environment variables when reading registry paths as Normal priority.
May 6 2021, 12:03 PM · gnupg (gpg22), Restricted Project
werner added a comment to D530: gpgme: Add support for trust signatures to key list result.

This is better name. My point was that if we ever use that to create such a field the developer should not assume that arbitrary REs can be used here. We need to have some practical value here and I would prefer to see only the domain name. However, OpenPGP allows for arbitrary REs and thus we may see them here. This is problematic but we can't do much about it.

May 6 2021, 10:01 AM · gpgme
ikloecker added a comment to T5422: gnupg 2.3.1 breaks gpgme_op_createkey().

Well, all I can say is that
./run-genkey --loopback "elektra testkey (gen-gpg-testkey)"
creates a key without any problems and without asking for a passphrase. Even, if I add the GPGME_CREATE_NOEXPIRE flag to the call of gpgme_op_createkey. At least, from a terminal.

May 6 2021, 9:19 AM · gpgme, Bug Report
werner added a comment to T5415: YubiKey no longer recognized in GnuPG 2.3.1 on macOS 10.15.7.

That would required that we also add an option --enable-ccid-driver - better tell the macOS folks to put diable-ccid-driver into /etc/gnupg/scdaemon.conf

May 6 2021, 9:06 AM · MacOS, yubikey, Bug Report
werner added a project to T5423: libgcrypt 1.8 ECDH: Debian.

FWIW, I think that it is a Bad Thing to use unreleased stuff from 1.8 for Debian packages. Only released versions sshould be used or patches we explicitly made to fix a bug. At the very least Andreas should have asked upstream whether this commit should be used for Sid.

May 6 2021, 9:00 AM · Debian, libgcrypt
gniibe added a comment to T5423: libgcrypt 1.8 ECDH.

Also fixed in version 1.8: rCbd662c090bd4: ecc: Fix the previous commit.

May 6 2021, 7:16 AM · Debian, libgcrypt
gniibe committed rC5f814e8a4968: ecc: Fix the input length check for Montgomery curve. (authored by gniibe).
ecc: Fix the input length check for Montgomery curve.
May 6 2021, 6:13 AM
gniibe added a comment to T5423: libgcrypt 1.8 ECDH.

Note that the handling e part uses standard MPI in 1.8 (while it is done by opaque MPI in 1.9).

May 6 2021, 5:31 AM · Debian, libgcrypt
gniibe triaged T5423: libgcrypt 1.8 ECDH as High priority.
May 6 2021, 5:23 AM · Debian, libgcrypt
gniibe added a comment to T5415: YubiKey no longer recognized in GnuPG 2.3.1 on macOS 10.15.7.

Or... we could add --disable-ccid-driver as default for macOS.

May 6 2021, 3:56 AM · MacOS, yubikey, Bug Report
gniibe claimed T5415: YubiKey no longer recognized in GnuPG 2.3.1 on macOS 10.15.7.
May 6 2021, 3:55 AM · MacOS, yubikey, Bug Report
gniibe added a comment to T5415: YubiKey no longer recognized in GnuPG 2.3.1 on macOS 10.15.7.

If it is built with LIBUSB enabled, please try adding the following to your scdaemon.conf:

disable-ccid
May 6 2021, 3:54 AM · MacOS, yubikey, Bug Report

May 5 2021

pnirschl added a comment to T5422: gnupg 2.3.1 breaks gpgme_op_createkey().

Thank you for your response! I tried out all variants of gpgme_pinentry_mode_t and implemented a passphrase callback (using gpgme_set_passphrase_cb as suggested). It turns out that the callback is not invoked at all. However, if I switch back to gnupg 2.2.27, the callback is being invoked and the key is being generated (using the passphrase specified by the callback, as expected).

May 5 2021, 9:17 PM · gpgme, Bug Report
ikloecker added a comment to T5422: gnupg 2.3.1 breaks gpgme_op_createkey().

The problem might be that gpg tries to ask for a passphrase which fails on the CI. Try setting a passphrase callback and setting the pinentry mode to loopback. See https://dev.gnupg.org/source/gpgme/browse/master/tests/run-genkey.c$435.

May 5 2021, 10:01 AM · gpgme, Bug Report
ikloecker committed rKLEOPATRAf9a921135b37: Create shadow key also for the smartcard's encryption key. (authored by werner).
Create shadow key also for the smartcard's encryption key.
May 5 2021, 9:45 AM
pnirschl created T5422: gnupg 2.3.1 breaks gpgme_op_createkey().
May 5 2021, 8:33 AM · gpgme, Bug Report
werner closed T5416: [windows] Smartcards are less reliable under 2.3.1 (requires restarting gpg-agent.exe) as Resolved.

Thanks for testing. I hope to get 2.3.2 out in two weeks.

May 5 2021, 8:13 AM · yubikey, scd, gnupg (gpg23), Bug Report

May 4 2021

colemickens added a comment to T5416: [windows] Smartcards are less reliable under 2.3.1 (requires restarting gpg-agent.exe).

After upgrade:

May 4 2021, 8:08 PM · yubikey, scd, gnupg (gpg23), Bug Report
Laurent Montel <montel@kde.org> committed rKLEOPATRAab36849ebdb3: GIT_SILENT Add auto generated files to .gitignore (authored by Laurent Montel <montel@kde.org>).
GIT_SILENT Add auto generated files to .gitignore
May 4 2021, 8:04 PM
Laurent Montel <montel@kde.org> committed rLIBKLEO85c593a89a81: GIT_SILENT Add auto generated files to .gitignore (authored by Laurent Montel <montel@kde.org>).
GIT_SILENT Add auto generated files to .gitignore
May 4 2021, 8:03 PM
ikloecker triaged T5421: gpgme++, qgpgme: Add support for creating trust signatures as High priority.
May 4 2021, 6:25 PM · kleopatra, Restricted Project
ikloecker updated the diff for D530: gpgme: Add support for trust signatures to key list result.

Added documentation for the new fields.

May 4 2021, 3:27 PM · gpgme
ikloecker updated the diff for D530: gpgme: Add support for trust signatures to key list result.
  • Renamed trust_regexp to trust_scope.
  • Use part of _unused for storing trust_depth and trust_value.
May 4 2021, 3:11 PM · gpgme
ikloecker added inline comments to D530: gpgme: Add support for trust signatures to key list result.
May 4 2021, 3:10 PM · gpgme
aheinecke awarded T5419: gpgme: Add support for trust signatures to key list result a Like token.
May 4 2021, 12:49 PM · kleopatra, gpgme, Restricted Project
werner added inline comments to D530: gpgme: Add support for trust signatures to key list result.
May 4 2021, 12:29 PM · gpgme
ikloecker added a task to D530: gpgme: Add support for trust signatures to key list result: T5419: gpgme: Add support for trust signatures to key list result.
May 4 2021, 12:13 PM · gpgme
ikloecker added a revision to T5419: gpgme: Add support for trust signatures to key list result: D530: gpgme: Add support for trust signatures to key list result.
May 4 2021, 12:13 PM · kleopatra, gpgme, Restricted Project
ikloecker requested review of D530: gpgme: Add support for trust signatures to key list result.
May 4 2021, 12:13 PM · gpgme
ikloecker triaged T5420: gpgme++: Add read-only support for trust signatures as High priority.
May 4 2021, 11:59 AM · kleopatra, Restricted Project
ikloecker triaged T5419: gpgme: Add support for trust signatures to key list result as Normal priority.
May 4 2021, 11:55 AM · kleopatra, gpgme, Restricted Project
werner committed rGb410c95fe953: build: Silence two compiler warnings. (authored by werner).
build: Silence two compiler warnings.
May 4 2021, 11:54 AM
werner committed rGb203325ce112: gpg: Allow ECDH with a smartcard returning just the x-coordinate. (authored by werner).
gpg: Allow ECDH with a smartcard returning just the x-coordinate.
May 4 2021, 11:54 AM
werner committed rG9d83bfb63968: scd: Fix possible PC/SC removed card problem (authored by werner).
scd: Fix possible PC/SC removed card problem
May 4 2021, 11:54 AM
werner committed rG22fe23f46d31: gpg: Fix mailbox based search via AKL keyserver method. (authored by werner).
gpg: Fix mailbox based search via AKL keyserver method.
May 4 2021, 11:54 AM
werner committed rGa475bb725be7: scd: Add string for another PC/SC error code. (authored by werner).
scd: Add string for another PC/SC error code.
May 4 2021, 11:54 AM
werner committed rG569fa67277a4: build: Allow running sign-release target from the dist dir. (authored by werner).
build: Allow running sign-release target from the dist dir.
May 4 2021, 11:54 AM
werner committed rG6c4216094ef4: scd: Fix unblock PIN by a Reset Code with KDF. (authored by kirelagin).
scd: Fix unblock PIN by a Reset Code with KDF.
May 4 2021, 11:54 AM
werner committed rGe7251be84c79: gpg: Auto import keys specified with --trusted-keys. (authored by werner).
gpg: Auto import keys specified with --trusted-keys.
May 4 2021, 11:54 AM
werner committed rGe53f6037283e: gpg: Allow decryption w/o public key but with correct card inserted. (authored by werner).
gpg: Allow decryption w/o public key but with correct card inserted.
May 4 2021, 11:54 AM
werner committed rG79e8ea100df9: speedo: Automatically select Authenticode signing cert. (authored by werner).
speedo: Automatically select Authenticode signing cert.
May 4 2021, 11:54 AM
werner committed rGaa612d752ebb: agent: Silence error messages for READKEY --card (authored by werner).
agent: Silence error messages for READKEY --card
May 4 2021, 11:54 AM

May 3 2021

werner committed rGc2ba6bea4ce8: common: Fix gnupg_wait_processes, by skipping invalid PID. (authored by gniibe).
common: Fix gnupg_wait_processes, by skipping invalid PID.
May 3 2021, 9:01 PM
werner committed rG2af217ecd7e4: gpg: Allow fingerprint based lookup with --locate-external-key. (authored by werner).
gpg: Allow fingerprint based lookup with --locate-external-key.
May 3 2021, 9:01 PM
werner committed rGb59af0e2a05a: gpg: Lookup a missing public key of the current card via LDAP. (authored by werner).
gpg: Lookup a missing public key of the current card via LDAP.
May 3 2021, 9:01 PM
werner committed rGb8df8321e1ef: scd: Add option --info to emit KEYPAIRINFO by readkey command. (authored by werner).
scd: Add option --info to emit KEYPAIRINFO by readkey command.
May 3 2021, 9:01 PM
werner committed rG79f5ffb1add9: gpg: Minor restructuring of a function. (authored by werner).
gpg: Minor restructuring of a function.
May 3 2021, 9:01 PM
werner committed rGa456303ae306: gpgconf: Do not i18n an empty string to the PO files meta data. (authored by werner).
gpgconf: Do not i18n an empty string to the PO files meta data.
May 3 2021, 9:01 PM
werner committed rGbbf4bd3bfcb5: agent: Skip unknown unknown ssh curves seen on cards. (authored by werner).
agent: Skip unknown unknown ssh curves seen on cards.
May 3 2021, 9:01 PM
werner committed rGf9198189e35e: doc: Fix option name. (authored by werner).
doc: Fix option name.
May 3 2021, 9:01 PM
werner committed rG26a024057dc6: gpg: No warning in quiet mode for S2K mode 0. (authored by werner).
gpg: No warning in quiet mode for S2K mode 0.
May 3 2021, 9:01 PM
werner committed rG5eec40f3d827: scd: New option --pcsc-shared. (authored by werner).
scd: New option --pcsc-shared.
May 3 2021, 9:01 PM
werner committed rG8bc808a98f3a: w32: Silence a compiler warning in dirmngr.c (authored by werner).
w32: Silence a compiler warning in dirmngr.c
May 3 2021, 9:01 PM
werner closed T1333: GPGSM rejects OCSP responder cert without keyUsage as Resolved.
May 3 2021, 3:52 PM · Bug Report, gnupg
Jakuje added a comment to T1333: GPGSM rejects OCSP responder cert without keyUsage.

Thank you for taking time to look into that. There are couple of issues in the CAcert bug tracker talking about the same issue but if, (I see right), the certs still miss the usage flags:

May 3 2021, 3:07 PM · Bug Report, gnupg
werner added a comment to T1333: GPGSM rejects OCSP responder cert without keyUsage.

RFC-5280 states in 4.2.1.3 for Key Usage:

May 3 2021, 2:30 PM · Bug Report, gnupg
werner added a comment to T5359: Kleopatra: Loop in DeviceInfoWatcher with GnuPG 2.3 on Windows.

The error code is: No Readers Available. With the latest version you should have seen that string.

May 3 2021, 2:04 PM · Restricted Project, scd, Restricted Project, kleopatra
werner added projects to T5416: [windows] Smartcards are less reliable under 2.3.1 (requires restarting gpg-agent.exe): gnupg (gpg23), scd, yubikey.

Meanwhile we did some more tests on Windows and so you many want to try our betas at

May 3 2021, 2:00 PM · yubikey, scd, gnupg (gpg23), Bug Report
hansoli added a comment to T4149: Kleopatra OpenPGP and GpgSM self test fail after installation on Windows 7.

I had a similar issue in Windows 10 too. In my case, the issue occurs only when my home path has non-ASCII characters. After I changed home path it works well.

May 3 2021, 12:45 PM · kleopatra, Bug Report, gpg4win
Jakuje updated subscribers of T1333: GPGSM rejects OCSP responder cert without keyUsage.

Any chance looking into this @werner?

May 3 2021, 10:29 AM · Bug Report, gnupg
ikloecker added a comment to T5359: Kleopatra: Loop in DeviceInfoWatcher with GnuPG 2.3 on Windows.

Can you please clarify this point: If you run on Unix with --disable-ccid-driver, do you get the same behavior as on Windows?

May 3 2021, 9:36 AM · Restricted Project, scd, Restricted Project, kleopatra
werner added a comment to T5359: Kleopatra: Loop in DeviceInfoWatcher with GnuPG 2.3 on Windows.

Can you please clarify this point: If you run on Unix with --disable-ccid-driver, do you get the same behavior as on Windows?

May 3 2021, 8:37 AM · Restricted Project, scd, Restricted Project, kleopatra
Laurent Montel <montel@kde.org> committed rLIBKLEO35776a01dafc: GIT_SILENT: Port away from ECMSetupVersion's deprecated *_VERSION_STRING CMake… (authored by Laurent Montel <montel@kde.org>).
GIT_SILENT: Port away from ECMSetupVersion's deprecated *_VERSION_STRING CMake…
May 3 2021, 7:20 AM
colemickens added a comment to T5409: scdaemon: 'Operation not supported by device' error under macOS after upgrading to 2.3.1.

I'm referring to this: https://www.gnupg.org/howtos/card-howto/en/ch02s03.html

May 3 2021, 6:56 AM · MacOS, Support, scd