Page MenuHome GnuPG
Feed All Stories

Nov 25 2020

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

Laurent Montel <montel@kde.org> committed rLIBKLEO9bdc45d2d38c: Fix compile on msvc (authored by Laurent Montel <montel@kde.org>).
Fix compile on msvc
Nov 24 2020, 9:08 PM
werner added a comment to T5100: OpenPGP app overwrites Yubikey serial number.

Okay, I now got such a patch:

Nov 24 2020, 6:04 PM · Restricted Project, gnupg, scd, yubikey, kleopatra
werner added a comment to T5100: OpenPGP app overwrites Yubikey serial number.

I found a good enough solution: I changed the code to compute the OpenPGP s/n from the Yubikey s/n right after a Yubikey has been detected. Later, and if OpenPGP enabled on the YK, the S/N is already there but we use the S/N from the 0x4f DO. That is needed because we can't compute the OpenPGP version number ahead and use 0.0 in the S/N.

Nov 24 2020, 4:24 PM · Restricted Project, gnupg, scd, yubikey, kleopatra
aheinecke committed rW74be1543843e: Fix scute build with current gpgrt-config (authored by aheinecke).
Fix scute build with current gpgrt-config
Nov 24 2020, 11:18 AM
aheinecke committed rSd7ec61b1b6b0: w32: Add ws2_32 linkage (authored by aheinecke).
w32: Add ws2_32 linkage
Nov 24 2020, 11:17 AM
aheinecke committed rS669e1cc1baf9: w32: Fix build by ifdefing a dbg statement (authored by aheinecke).
w32: Fix build by ifdefing a dbg statement
Nov 24 2020, 11:17 AM
aheinecke committed rW8234b80c0294: Update gnupg to 2.2.25 (authored by aheinecke).
Update gnupg to 2.2.25
Nov 24 2020, 11:11 AM
nmset added a comment to T5151: GPGME++ : bad passphrase problems.

when passphrase is wrong, the passphrase callback is called more than one time (one for primary key, and another for a subkey, more if there are more subkeys).

Nov 24 2020, 9:30 AM · segv, gpgme, Bug Report
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
turkja added a comment to T5065: scdaemon doesn't detect card removal after boot/resume (Identiv SPR332v2).

Stable now and works as expected. Thank you!

Nov 24 2020, 1:27 AM · Restricted Project, gnupg (gpg22), scd, Bug Report

Nov 23 2020

goeran added a comment to T5080: Gpg-agent gets confused when a homedir is moved.

Killing the daemon using gpgconf is fine if you are aware you need to do it. We weren't, and I suspect few other users would be either.

Nov 23 2020, 9:27 PM · gnupg (gpg22), Bug Report
werner closed T5039: 2.2.22 regression: Nitrokey Pro 2 is no longer recognized automatically, requires --card-status as Resolved.
Nov 23 2020, 7:59 PM · Restricted Project, gnupg (gpg22), Bug Report
werner closed T5140: Release GnuPG 2.2.25 as Resolved.
Nov 23 2020, 7:59 PM · gnupg (gpg22), Release Info
werner closed T5065: scdaemon doesn't detect card removal after boot/resume (Identiv SPR332v2) as Resolved.
Nov 23 2020, 7:59 PM · Restricted Project, gnupg (gpg22), scd, Bug Report
werner closed T5143: YubiKey 5 Nano GPG --card-edit verify command causes a segfault as Resolved.
Nov 23 2020, 7:59 PM · gnupg (gpg22), Bug Report
werner committed rD07745dddbd4d: swdb: GnuPG 2.2.25 (authored by werner).
swdb: GnuPG 2.2.25
Nov 23 2020, 6:54 PM
werner committed rGabd9aeecfb57: Post release updates (authored by werner).
Post release updates
Nov 23 2020, 6:41 PM
werner committed rG40f75823d255: Release 2.2.25 (authored by werner).
Release 2.2.25
Nov 23 2020, 6:41 PM
werner created T5153: Release GnuPG 2.2.26.
Nov 23 2020, 6:40 PM · Release Info, gnupg (gpg22)
carlosnewmusic reopened T1954: Password too long as "Open".


Password too long error to import p12

Nov 23 2020, 6:04 PM · Info Needed, gnupg (gpg20), Bug Report, gnupg
werner closed T5146: Release Libksba 1.5.0 as Resolved.

Released on 2020-11-18

Nov 23 2020, 2:17 PM · Release Info, libksba
werner set Version to 2.2.25 on T5140: Release GnuPG 2.2.25.
Nov 23 2020, 2:16 PM · gnupg (gpg22), Release Info
werner lowered the priority of T5120: Incompatible Ed25519 secret key (no-encryption) from High to Normal.
Nov 23 2020, 1:54 PM · gnupg (gpg22), Bug Report
werner closed T5052: Release GnuPG 2.2.24 as Resolved.

Note that if you run into problems with a smartcard you should run "gpg --card-status" once. GUI frontends usually do that and this is the reason why this regression was not detected. Will be fixed in 2.2.25 (T5140).

Nov 23 2020, 1:52 PM · Release Info, gnupg (gpg22)
werner moved T5140: Release GnuPG 2.2.25 from Backlog to Ready for release on the gnupg (gpg22) board.
Nov 23 2020, 1:49 PM · gnupg (gpg22), Release Info
werner added a project to T5069: Concurrent auto-start of gpg-agent by multiple gpg instances.: Info Needed.
Nov 23 2020, 1:48 PM · Not A Bug, No Response, Info Needed, gnupg (gpg22), Windows, Bug Report
werner closed T5080: Gpg-agent gets confused when a homedir is moved as Wontfix.
Nov 23 2020, 1:46 PM · gnupg (gpg22), Bug Report
werner moved T5039: 2.2.22 regression: Nitrokey Pro 2 is no longer recognized automatically, requires --card-status from Backlog to Ready for release on the gnupg (gpg22) board.
Nov 23 2020, 1:46 PM · Restricted Project, gnupg (gpg22), Bug Report
werner moved T5065: scdaemon doesn't detect card removal after boot/resume (Identiv SPR332v2) from Backlog to Ready for release on the gnupg (gpg22) board.
Nov 23 2020, 1:45 PM · Restricted Project, gnupg (gpg22), scd, Bug Report
werner edited projects for T5084: Using GPGWin 3.1.13, Putty fails to load the private key from a YubiKey, added: gnupg; removed gnupg (gpg22).

Removing 2.2 tag because it has been fixed in one of the last releases.

Nov 23 2020, 1:44 PM · gnupg, ssh, Bug Report, gpg4win
werner edited projects for T5114: GnuPG fails to import back generated and exported EdDSA secret key., added: gnupg; removed gnupg (gpg22).

Its done for 2.2 thus changing the tag.

Nov 23 2020, 1:43 PM · gnupg, Restricted Project, gpgagent, Bug Report
werner moved T5143: YubiKey 5 Nano GPG --card-edit verify command causes a segfault from Backlog to Ready for release on the gnupg (gpg22) board.
Nov 23 2020, 1:41 PM · gnupg (gpg22), Bug Report
werner triaged T5076: [solved] gpg-agent respawn another process randomly and causes cached passphrase check failed / expired as Low priority.
Nov 23 2020, 1:39 PM · gnupg (gpg22), Bug Report
ikloecker added a comment to T5151: GPGME++ : bad passphrase problems.
In T5151#139353, @nmset wrote:

Using Context::setExpire(), expiry time of keys and subkeys can be changed in a predictable way, with good and bad passphrase (fails with error of course).

Nov 23 2020, 12:30 PM · segv, gpgme, Bug Report
werner committed rG572bcacc287d: doc: Fix typos (authored by glr).
doc: Fix typos
Nov 23 2020, 12:21 PM
werner committed rG563db31467b2: doc: Fix typos (authored by glr).
doc: Fix typos
Nov 23 2020, 12:21 PM
werner closed T3972: 100% CPU usage endles loop of gpg --list-keys as Resolved.

As @dkg noted T4592 is a duplicate of this and given that we have a mitigation in place we can also close this (older) bug.

Nov 23 2020, 12:21 PM · gnupg (gpg22)
werner closed T5071: Doc fix: simple typos as Resolved.

Thanks.

Nov 23 2020, 12:14 PM · Documentation, Bug Report
werner added a comment to T5080: Gpg-agent gets confused when a homedir is moved.

Before step 2.d you should stop gpg-agent and other daemon

Nov 23 2020, 12:04 PM · gnupg (gpg22), Bug Report
nmset added a comment to T5151: GPGME++ : bad passphrase problems.

I highly recommend to use the new ChangeExpiryJob instead of the fragile (and apparently buggy) edit interactor.

Nov 23 2020, 11:56 AM · segv, gpgme, Bug Report
werner closed T5115: OpenPGP card factory-reset and Kleopatra as Resolved.

This was fixed in 2.2.24 with commit rG7f765a98fd662

Nov 23 2020, 11:56 AM · kleopatra, gnupg (gpg22), scd
werner added a comment to T5076: [solved] gpg-agent respawn another process randomly and causes cached passphrase check failed / expired.

If you want to debug this, I suggest to use a logging socket. Put into all gpg-agent.conf files these lines:

Nov 23 2020, 11:54 AM · gnupg (gpg22), Bug Report
ikloecker added a parent task for T5100: OpenPGP app overwrites Yubikey serial number: T5130: Kleopatra: Generating OpenPGP keys on Yubikey (with PIV enabled) fails with "General error".
Nov 23 2020, 11:12 AM · Restricted Project, gnupg, scd, yubikey, kleopatra
ikloecker added a subtask for T5130: Kleopatra: Generating OpenPGP keys on Yubikey (with PIV enabled) fails with "General error": T5100: OpenPGP app overwrites Yubikey serial number.
Nov 23 2020, 11:12 AM · kleopatra, Bug Report
nmset added a comment to T5151: GPGME++ : bad passphrase problems.

Can you try if using the overload

Nov 23 2020, 11:06 AM · segv, gpgme, Bug Report
ikloecker added a comment to T5138: Change Reset Code not working in Kleopatra.

As for renaming "Change Reset Code" to "Set Reset Code", what about "Change PIN" and "Change Admin PIN"? Should they also be renamed? If not, why not? Is there no default reset code? Is there a way to find out whether the reset code has already been set (in which case "change" would be more appropriate than "set")?

Nov 23 2020, 11:00 AM · Restricted Project, Feature Request, Bug Report, kleopatra
ikloecker added a comment to T5138: Change Reset Code not working in Kleopatra.

You write

This does not work.

Can you be more specific? What doesn't work? Which OS, which version of Kleopatra, what smartcard are you using?

Nov 23 2020, 10:52 AM · Restricted Project, Feature Request, Bug Report, kleopatra
torra created T5152: PGP/MIME e-mails are not decrypted.
Nov 23 2020, 10:50 AM · Support, gpgol, Bug Report
ikloecker added a comment to T5151: GPGME++ : bad passphrase problems.

Can you try if using the overload

Error Context::exportPublicKeys(const char *patterns[], Data &keyData, unsigned int flags)

which takes an array of patterns instead of a single pattern also crashes?

Nov 23 2020, 10:15 AM · segv, gpgme, Bug Report
ikloecker added a comment to T5151: GPGME++ : bad passphrase problems.

Unless you need some special features of GpgSetExpiryTimeEditInteractor or you have to support gpgme <1.15, I highly recommend to use the new ChangeExpiryJob instead of the fragile (and apparently buggy) edit interactor.

Nov 23 2020, 10:06 AM · segv, gpgme, Bug Report
werner added a comment to T5137: gpg-agent 2.x poor performance / futex errors.

I though about this too but we need to take care about the logging functions of Libgcrypt which are intertwined with nPth (clamp function of libgpg-error).

Nov 23 2020, 9:01 AM · Feature Request, gpgagent

Nov 22 2020

werner triaged T5151: GPGME++ : bad passphrase problems as High priority.
Nov 22 2020, 10:22 AM · segv, gpgme, Bug Report
werner set the color for !assert to Orange.
Nov 22 2020, 10:22 AM
werner edited Description on segv.
Nov 22 2020, 10:20 AM
werner set the color for segv to Red.
Nov 22 2020, 10:18 AM

Nov 21 2020

nmset created T5151: GPGME++ : bad passphrase problems.
Nov 21 2020, 8:42 PM · segv, gpgme, Bug Report

Nov 20 2020

Laurent Montel <montel@kde.org> committed rLIBKLEO2918e31fce25: GIT_SILENT: pedantic (authored by Laurent Montel <montel@kde.org>).
GIT_SILENT: pedantic
Nov 20 2020, 10:35 PM
lovetox updated the task description for T5149: Incorrect error handling in export_key_minimal().
Nov 20 2020, 9:29 PM · Python, gpgme, Bug Report
werner added a project to T5144: scd: Fails/crashes on SCD LEARN --keypairinfo for NetKey cards: gnupg (gpg23).
Nov 20 2020, 6:31 PM · Restricted Project, gnupg (gpg23), scd
werner added a project to T5150: scd: For NetKey cards READKEY with keygrip fails: gnupg (gpg23).
Nov 20 2020, 6:31 PM · backport, gnupg (gpg23), scd
aheinecke committed rW5d4ce16e3a94: Update pinentry, kleopatra, libkleo and gpgol (authored by aheinecke).
Update pinentry, kleopatra, libkleo and gpgol
Nov 20 2020, 3:40 PM
aheinecke committed rW1317f2b80373: MSI: Install into GnuPG VS-Desktop folder (authored by aheinecke).
MSI: Install into GnuPG VS-Desktop folder
Nov 20 2020, 3:40 PM
aheinecke committed rW201a8d5f9e0e: Package icons for notepad and list mode (authored by aheinecke).
Package icons for notepad and list mode
Nov 20 2020, 3:40 PM
ikloecker created T5150: scd: For NetKey cards READKEY with keygrip fails.
Nov 20 2020, 3:36 PM · backport, gnupg (gpg23), scd
aheinecke committed rO429620b33426: Add option to disable the S/MIME efail security (authored by aheinecke).
Add option to disable the S/MIME efail security
Nov 20 2020, 3:15 PM
aheinecke committed rP52c78386fd54: Merge branch 'master' of git://git.gnupg.org/pinentry (authored by aheinecke).
Merge branch 'master' of git://git.gnupg.org/pinentry
Nov 20 2020, 1:33 PM
aheinecke committed rP749529cac2b0: qt: Disable generate button for now (authored by aheinecke).
qt: Disable generate button for now
Nov 20 2020, 1:33 PM
Laurent Montel <montel@kde.org> committed rLIBKLEOdb7d92ecc8ef: GIT_SILENT: time to increase version (authored by Laurent Montel <montel@kde.org>).
GIT_SILENT: time to increase version
Nov 20 2020, 1:26 PM
Laurent Montel <montel@kde.org> committed rKLEOPATRA81b9ea4a1383: GIT_SILENT: time to increase version (authored by Laurent Montel <montel@kde.org>).
GIT_SILENT: time to increase version
Nov 20 2020, 1:21 PM
aheinecke committed rLIBKLEOc750b47a4f86: Add --utf8-strings to gpgtar calls on w32 (authored by aheinecke).
Add --utf8-strings to gpgtar calls on w32
Nov 20 2020, 1:04 PM
aheinecke committed rLIBKLEOe19acd83d46f: Fix windows build (authored by aheinecke).
Fix windows build
Nov 20 2020, 1:04 PM
aheinecke committed rDe5bef09b816e: swdb: Update gpgol (authored by aheinecke).
swdb: Update gpgol
Nov 20 2020, 12:58 PM
aheinecke committed rObe92cfe04466: Post release bump (authored by aheinecke).
Post release bump
Nov 20 2020, 12:56 PM
aheinecke committed rO82c0abedc54a: Fix configure.ac version number (authored by aheinecke).
Fix configure.ac version number
Nov 20 2020, 12:55 PM
aheinecke committed rO6597d081efcb: Auto: Update PO files (authored by aheinecke).
Auto: Update PO files
Nov 20 2020, 12:55 PM
aheinecke committed rOb6ccf36769ea: Update NEWS for todays release (authored by aheinecke).
Update NEWS for todays release
Nov 20 2020, 12:55 PM
aheinecke committed rO001bc4c64f83: Fix parser unit test build (authored by aheinecke).
Fix parser unit test build
Nov 20 2020, 12:40 PM
aheinecke committed rOddc1e48eb3a7: Fix doubled attachment warning because preview (authored by aheinecke).
Fix doubled attachment warning because preview
Nov 20 2020, 12:40 PM
aheinecke committed rO6ab4017a2cfa: po: Add it to linguas (authored by aheinecke).
po: Add it to linguas
Nov 20 2020, 12:40 PM
ikloecker added a comment to T5141: GnuPG: Make quick-gen-key work for keys on PIV cards.

The same problem occurs for NKS (v3) cards where the keys also do not have a keytime.

Nov 20 2020, 11:44 AM · gnupg (gpg23)
ikloecker added a subtask for T5128: Kleopatra: Generate OpenPGP public key for NetKey card key: T5141: GnuPG: Make quick-gen-key work for keys on PIV cards.
Nov 20 2020, 11:42 AM · kleopatra
ikloecker added a parent task for T5141: GnuPG: Make quick-gen-key work for keys on PIV cards: T5128: Kleopatra: Generate OpenPGP public key for NetKey card key.
Nov 20 2020, 11:42 AM · gnupg (gpg23)
ikloecker added a comment to T5144: scd: Fails/crashes on SCD LEARN --keypairinfo for NetKey cards.

The above workaround may not be necessary because another code path sets the algorithm string as seen in

$ gpg-connect-agent "SCD READKEY --info -- NKS-NKS3.4531" /bye
S KEYPAIRINFO 39400430E38BB96F105B740A7119FE113578B59D NKS-NKS3.4531 - - rsa2048
Nov 20 2020, 11:39 AM · Restricted Project, gnupg (gpg23), scd
ikloecker added a comment to T5144: scd: Fails/crashes on SCD LEARN --keypairinfo for NetKey cards.

The following patch fixes the crash:

diff --git a/scd/app-nks.c b/scd/app-nks.c
index 47be7cd85..4d925dccd 100644
--- a/scd/app-nks.c
+++ b/scd/app-nks.c
@@ -871,7 +871,7 @@ do_learn_status_core (app_t app, ctrl_t ctrl, unsigned int flags,
                                 id_buf, strlen (id_buf),
                                 usagebuf, strlen (usagebuf),
                                 "-", (size_t)1,
-                                algostr, strlen (algostr),
+                                algostr, algostr ? strlen (algostr) : (size_t)0,
                                 NULL, (size_t)0);
             }
           xfree (algostr);
Nov 20 2020, 11:21 AM · Restricted Project, gnupg (gpg23), scd
aheinecke committed rMa5c4b0302587: Revert "cpp: Use portable off_t size_t" (authored by aheinecke).
Revert "cpp: Use portable off_t size_t"
Nov 20 2020, 10:11 AM
aheinecke added a reverting change for rM88294023c196: cpp: Use portable off_t size_t: rMa5c4b0302587: Revert "cpp: Use portable off_t size_t".
Nov 20 2020, 10:11 AM
werner claimed T5141: GnuPG: Make quick-gen-key work for keys on PIV cards.
Nov 20 2020, 9:27 AM · gnupg (gpg23)
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
werner triaged T5149: Incorrect error handling in export_key_minimal() as Normal priority.
Nov 20 2020, 9:19 AM · Python, gpgme, Bug Report
werner triaged T5148: gnupg.org mail server doesn't encrypt outgoing mail as Normal priority.

Right, our installation really needs an update. It is not gnupg.org mail but just the mails from phabricator - which unfortunately does not use our standard mail system

Nov 20 2020, 9:17 AM · dev.gnupg.org
werner edited projects for T5148: gnupg.org mail server doesn't encrypt outgoing mail, added: dev.gnupg.org; removed Bug Report.
Nov 20 2020, 9:16 AM · dev.gnupg.org
ikloecker added a comment to rG0a265d6498e8: gpg,agent: Fix comments for KEYPAIRINFO status report..

Adding [algostr] in g10/call-agent.c is correct, but there is no [fprtime] (resp. it's already listed in the format as [keytime]).

Nov 20 2020, 9:04 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