Page MenuHome GnuPG
Feed Advanced Search

Mar 5 2019

werner claimed T4391: GnuPG: Failure to import public key.
Mar 5 2019, 6:22 PM · Not A Bug, gnupg
aheinecke created T4391: GnuPG: Failure to import public key.
Mar 5 2019, 11:43 AM · Not A Bug, gnupg

Feb 22 2019

werner triaged T4370: Generate revocation certificates for subkey(s) as Normal priority.
Feb 22 2019, 8:47 AM · OpenPGP, gnupg, Feature Request

Feb 11 2019

werner created T4362: Replace the exec funtions for photoids in gpg by our standard exec functions..
Feb 11 2019, 1:56 PM · gnupg, Feature Request
werner edited projects for T3655: Suggest possible choices instead to error out on a typo, added: gnupg; removed gnupg (gpg22).
Feb 11 2019, 1:50 PM · gnupg, Bug Report

Jan 29 2019

werner created T4353: Make gnupg's openpgp_oid_to_str faster.
Jan 29 2019, 5:50 PM · OpenPGP, gnupg
werner triaged T4351: gpg --edit-key should improve selection of subkeys or user IDs as Normal priority.

Good idea.

Jan 29 2019, 11:02 AM · gnupg, Feature Request

Jan 28 2019

dkg added a comment to T4351: gpg --edit-key should improve selection of subkeys or user IDs.

for user ID selection, you could also potentially match on substring, so uid dkg could select/deselect all user IDs that contain "dkg".

Jan 28 2019, 10:12 PM · gnupg, Feature Request
dkg created T4351: gpg --edit-key should improve selection of subkeys or user IDs.
Jan 28 2019, 10:10 PM · gnupg, Feature Request

Jan 25 2019

werner created T4344: Periodic check of own keys with the WKD.
Jan 25 2019, 4:05 PM · wkd, gnupg, Feature Request

Jan 23 2019

rcs added a comment to T169: Add a way to generate keypairs from a passphrase.

Mnemonics can be made language independent by implementing wordlists for every language. In bip39, each word represents a number, 0 through 2047 (their index in the wordlist).

Jan 23 2019, 2:16 PM · gnupg, Feature Request

Jan 21 2019

aheinecke merged T4325: Kleopatra erstellt keine Schlüssel into T4159: Kleopatra fails to create new Key Pair.
Jan 21 2019, 9:04 AM · gnupg, Bug Report, gpg4win
aheinecke added a comment to T4159: Kleopatra fails to create new Key Pair.

I don't think the cause of the corruptions is user interference. Users which report that don't even know about the GnuPG home directory in advance. I think we have some kind of rare bug which causes the keyring to break.

Jan 21 2019, 9:01 AM · gnupg, Bug Report, gpg4win

Dec 20 2018

gniibe added a subtask for T2291: Smartcard interaction improvement (was: Shadowed private key design (for smartcard)): T4273: agent: Request insertion of smartcard when no card present.
Dec 20 2018, 12:59 AM · Restricted Project, gnupg, Feature Request

Dec 18 2018

werner lowered the priority of T4200: Evaluate sub-addresses in gpg and wkd from High to Normal.
Dec 18 2018, 9:30 AM · gnupg, Feature Request

Dec 17 2018

gniibe added a comment to T4280: gnupg doc doesn't build due to ImageMagick default policy.

It seems it's Ubuntu specific: https://bugs.launchpad.net/ubuntu/+source/imagemagick/+bug/1796563

Dec 17 2018, 10:57 AM · gnupg, Documentation, Info Needed, Bug Report
gniibe added a comment to T4255: gpg-agent: "<gcrypt> Cannot allocate memory" with 10 threads decrypting OpenPGP.

It became common, because many people now use larger keys.
For RSA-4096, three simultaneous connections for decryption may cause the failure.
In the experimental patch of D472: Limit active connections for gpg-agent, I limit gpg-agent to accept two connections only.

Dec 17 2018, 5:08 AM · gnupg, gpgagent

Dec 16 2018

andy added a comment to T4255: gpg-agent: "<gcrypt> Cannot allocate memory" with 10 threads decrypting OpenPGP.

Agreed this looks like it should be made default behavior. This has affected many people I work with, and even with searching, this ticket never came up. I only found out about it by making a ticket myself. This issue looks like it has generated at least 3 tickets in this bug tracker, and the agent is raising memory errors during normal usage, which still smells like a bug to me.

Dec 16 2018, 8:18 PM · gnupg, gpgagent

Dec 14 2018

werner added a comment to T4159: Kleopatra fails to create new Key Pair.

The usual reasons for corruptions of binary data are FTP transfers in text mode; or opening a file with a Windows editor.

Dec 14 2018, 2:56 PM · gnupg, Bug Report, gpg4win
aheinecke added a comment to T4159: Kleopatra fails to create new Key Pair.

Got another reliable report in the Wald Forum about this. https://wald.intevation.org/forum/message.php?msg_id=6371&group_id=11

Dec 14 2018, 1:36 PM · gnupg, Bug Report, gpg4win

Dec 12 2018

aheinecke added a comment to T4255: gpg-agent: "<gcrypt> Cannot allocate memory" with 10 threads decrypting OpenPGP.

Uhm, if this option is useful why isn't it default behavior?

Dec 12 2018, 10:34 AM · gnupg, gpgagent
werner triaged T4105: Inconsistent output for revocation keys in --list-keys --with-colons as Normal priority.
Dec 12 2018, 9:17 AM · Documentation, gnupg, Bug Report
werner triaged T4280: gnupg doc doesn't build due to ImageMagick default policy as Normal priority.
Dec 12 2018, 9:16 AM · gnupg, Documentation, Info Needed, Bug Report
werner closed T4255: gpg-agent: "<gcrypt> Cannot allocate memory" with 10 threads decrypting OpenPGP as Resolved.
Dec 12 2018, 8:30 AM · gnupg, gpgagent
werner closed T3606: failed to build S-Exp (off=0): Cannot allocate memory, a subtask of T4255: gpg-agent: "<gcrypt> Cannot allocate memory" with 10 threads decrypting OpenPGP, as Resolved.
Dec 12 2018, 8:30 AM · gnupg, gpgagent
werner closed T4146: GPG Agent fails in parallel: "gpg: decryption failed: No secret key", a subtask of T4255: gpg-agent: "<gcrypt> Cannot allocate memory" with 10 threads decrypting OpenPGP, as Resolved.
Dec 12 2018, 8:28 AM · gnupg, gpgagent
werner closed T3530: Option to auto-increase secmem in gpg-agent, a subtask of T4255: gpg-agent: "<gcrypt> Cannot allocate memory" with 10 threads decrypting OpenPGP, as Resolved.
Dec 12 2018, 8:28 AM · gnupg, gpgagent
werner added a comment to T4255: gpg-agent: "<gcrypt> Cannot allocate memory" with 10 threads decrypting OpenPGP.

Not a bug :-). I should have read my own docs before starting a long debug session. The things is that the auto expanding of the secmem area is only done for xmalloc_secure and the internal MPI allocation functions. It is not dne for any memory which is allocated with xtrymalloc becuase those properly return an error to the caller. The idea is that if the caller wants to get an error back he has also the assurance that them memory is allocated in the non-swappable memory (i.e. not in the expanded parts of the secmem).

Dec 12 2018, 8:24 AM · gnupg, gpgagent
gniibe added a subtask for T4255: gpg-agent: "<gcrypt> Cannot allocate memory" with 10 threads decrypting OpenPGP: T4146: GPG Agent fails in parallel: "gpg: decryption failed: No secret key".
Dec 12 2018, 7:26 AM · gnupg, gpgagent
gniibe added a subtask for T4255: gpg-agent: "<gcrypt> Cannot allocate memory" with 10 threads decrypting OpenPGP: T3606: failed to build S-Exp (off=0): Cannot allocate memory.
Dec 12 2018, 7:23 AM · gnupg, gpgagent
gniibe added a subtask for T4255: gpg-agent: "<gcrypt> Cannot allocate memory" with 10 threads decrypting OpenPGP: T3530: Option to auto-increase secmem in gpg-agent.
Dec 12 2018, 7:22 AM · gnupg, gpgagent
gniibe merged T3529: Connection limit for gpg-agent into T4255: gpg-agent: "<gcrypt> Cannot allocate memory" with 10 threads decrypting OpenPGP.
Dec 12 2018, 7:16 AM · gnupg, gpgagent
gniibe added a comment to T4255: gpg-agent: "<gcrypt> Cannot allocate memory" with 10 threads decrypting OpenPGP.

For my case, with $GNUPGHOME/gpg-agent.conf having debug-all, I observed that rsa_decrypt failes with 'Cannot allocate memory', after debug output of 'res'.
Reading libgcrypt/cipher/rsa.c, it is line 1439, where it calls sexp_build (MPI of PLAIN into SEXP of R_PLAIN).
I think that it does indeed memory failure here.
Having "auto-expand-secmem" in gpg-agent.conf, it goes well.

Dec 12 2018, 3:47 AM · gnupg, gpgagent

Dec 11 2018

werner added a comment to T4255: gpg-agent: "<gcrypt> Cannot allocate memory" with 10 threads decrypting OpenPGP.

I can easily replicate this; it is a problem somewhere in the secure memory code of Libgcrypt.

Dec 11 2018, 9:08 PM · gnupg, gpgagent
werner closed T4134: GnuPG: Changing the trust model once changes the default trust model as Resolved.

Fix was released with 2.2.11

Dec 11 2018, 3:51 PM · gpg4win, gpgol, Bug Report, gnupg
werner closed T1166: Connecting once-per-key for keys with keyserver preference vs server violate reconnection limit as Wontfix.
Dec 11 2018, 12:39 PM · Ubuntu, gnupg, Feature Request
werner closed T3830: Dirmngr: Bad error message (regression) when no key is found on the keyserver as Resolved.

Thanks.

Dec 11 2018, 12:34 PM · gnupg, dirmngr

Dec 3 2018

werner claimed T4255: gpg-agent: "<gcrypt> Cannot allocate memory" with 10 threads decrypting OpenPGP.
Dec 3 2018, 3:05 PM · gnupg, gpgagent

Nov 19 2018

aheinecke closed T4227: Gpg4win 3.1.5, a subtask of T3967: dirmngr: "flush" does not flush in memory CRL's, as Resolved.
Nov 19 2018, 10:28 AM · kleopatra, S/MIME, gnupg

Nov 16 2018

werner closed T4259: Invalid version check as Resolved.

Pretty obvious. Thanks.

Nov 16 2018, 9:19 AM · gnupg, Bug Report

Nov 15 2018

stm created T4259: Invalid version check.
Nov 15 2018, 7:04 PM · gnupg, Bug Report
werner triaged T4255: gpg-agent: "<gcrypt> Cannot allocate memory" with 10 threads decrypting OpenPGP as High priority.
Nov 15 2018, 4:07 PM · gnupg, gpgagent
werner added a comment to T4255: gpg-agent: "<gcrypt> Cannot allocate memory" with 10 threads decrypting OpenPGP.

Hmmm

Nov 15 2018, 4:06 PM · gnupg, gpgagent
aheinecke assigned T4256: gpg-agent: Spurious pinentries for an already unlocked key when decryption OpenPGP in 10 threads to werner.

You seem to accept it. So Normal Prio and assigned to you :-p

Nov 15 2018, 3:24 PM · gnupg, gpgagent
aheinecke added a comment to T4256: gpg-agent: Spurious pinentries for an already unlocked key when decryption OpenPGP in 10 threads.

Just as a note: I think the main selling point of GnuPG is that its stable. We care about backwards compatibility and we (are || want to be) rock solid. Even if there is a rare race. With millions of installations, that race will happen regularly. So I really would like us to get all this fixed without losing to much performance by locking to much.

Nov 15 2018, 3:23 PM · gnupg, gpgagent
aheinecke added a comment to T4256: gpg-agent: Spurious pinentries for an already unlocked key when decryption OpenPGP in 10 threads.

Happens though. With the test invocation above there is only one key in the keyring.

Nov 15 2018, 3:12 PM · gnupg, gpgagent
aheinecke added a comment to T4255: gpg-agent: "<gcrypt> Cannot allocate memory" with 10 threads decrypting OpenPGP.

1.9.0-beta68

Nov 15 2018, 3:11 PM · gnupg, gpgagent
werner added a comment to T4256: gpg-agent: Spurious pinentries for an already unlocked key when decryption OpenPGP in 10 threads.

Well, it should not happen if you always use the same key.

Nov 15 2018, 3:06 PM · gnupg, gpgagent
werner added a comment to T4256: gpg-agent: Spurious pinentries for an already unlocked key when decryption OpenPGP in 10 threads.

There is indeed a race condition between the passphrase cache and the pinentry invocation. There is even a comment on this somewhere in the code. The problem is that we would need to lock almost everything to avoid this rare condition.

Nov 15 2018, 3:05 PM · gnupg, gpgagent
werner added a comment to T4255: gpg-agent: "<gcrypt> Cannot allocate memory" with 10 threads decrypting OpenPGP.

Which Libgcrypt version?

Nov 15 2018, 3:02 PM · gnupg, gpgagent
aheinecke added a comment to T4255: gpg-agent: "<gcrypt> Cannot allocate memory" with 10 threads decrypting OpenPGP.

Forgot to mention. run-threaded is a new test tool in GPGME.

Nov 15 2018, 12:15 PM · gnupg, gpgagent
aheinecke created T4256: gpg-agent: Spurious pinentries for an already unlocked key when decryption OpenPGP in 10 threads.
Nov 15 2018, 12:14 PM · gnupg, gpgagent
aheinecke created T4255: gpg-agent: "<gcrypt> Cannot allocate memory" with 10 threads decrypting OpenPGP.
Nov 15 2018, 12:13 PM · gnupg, gpgagent

Nov 12 2018

aheinecke closed T3967: dirmngr: "flush" does not flush in memory CRL's as Resolved.
Nov 12 2018, 1:18 PM · kleopatra, S/MIME, gnupg
aheinecke added a subtask for T3967: dirmngr: "flush" does not flush in memory CRL's: T4227: Gpg4win 3.1.5.
Nov 12 2018, 1:18 PM · kleopatra, S/MIME, gnupg
aheinecke assigned T4249: No connection to Keyserver possible to werner.

I can reproduce it if I enter your or an unknown IP address.

Nov 12 2018, 10:25 AM · gnupg, dirmngr, Bug Report, gpg4win

Nov 9 2018

aheinecke closed T3945: Kleopatra: Loading certificates hangs after first start as Resolved.
Nov 9 2018, 1:43 PM · Bug Report, gnupg, gpg4win
aheinecke added a comment to T3945: Kleopatra: Loading certificates hangs after first start.

I think this is resolved by kleopatra's watchdog. There is a bug that the agent becomes unresponsive somehow then the loading also hangs but this is unrelated to kleopatra.

Nov 9 2018, 1:26 PM · Bug Report, gnupg, gpg4win
aheinecke added a comment to T4200: Evaluate sub-addresses in gpg and wkd.

Sorry I did not see your first comment.

Nov 9 2018, 12:09 PM · gnupg, Feature Request
aheinecke added a comment to T4200: Evaluate sub-addresses in gpg and wkd.

I would change gpgme_addrspec_from_uid and the gnupg equivalent to strip out the subaddress.

Nov 9 2018, 12:07 PM · gnupg, Feature Request
werner added a comment to T4200: Evaluate sub-addresses in gpg and wkd.

It does not make sense to handle this in the protocol. The client should always ask for joe@example.org and thus keep the whole thing mostly out of gpg. This requires that keys are not created with sub-addresses. However, if someone has a need for this, this strategy should work:

Nov 9 2018, 12:07 PM · gnupg, Feature Request

Nov 8 2018

Valodim added a comment to T4235: GnuPG doesn't respect key flags when decrypting.

Fair enough. Let's wait and see what others think.

Nov 8 2018, 1:24 PM · Not A Bug, OpenPGP, gnupg
werner closed T4235: GnuPG doesn't respect key flags when decrypting as Resolved.

Also consider that it is possible to change the key usage flags. Thus it will never be clear whether one has a fixed or unfixed public key. I'd like to close this bug because it is currently also discussed in the IETF WG.

Nov 8 2018, 1:10 PM · Not A Bug, OpenPGP, gnupg

Nov 7 2018

gniibe created T4244: Better enum_secret_keys by asking gpg-agent KEYINFO --list.
Nov 7 2018, 9:21 AM · Restricted Project, gnupg

Nov 5 2018

werner edited projects for T3118: gpg --sign --local-user ... fails with smartcard, added: gnupg; removed gnupg (gpg22).
Nov 5 2018, 9:39 AM · gnupg, Documentation, FAQ
werner closed T4230: Port parsing is broken in misc.c host_and_port_from_url as Resolved.

Fixed in master and 2.2.

Nov 5 2018, 9:27 AM · LDAP, dirmngr, gnupg

Oct 30 2018

stm added a comment to T4235: GnuPG doesn't respect key flags when decrypting.

There is another argument for respecting the usage flags: it trims the admissible key space, if key ID in the PKESK packet is zero ('wild card') and thus all private keys have to be considered for decryption.

Oct 30 2018, 9:48 PM · Not A Bug, OpenPGP, gnupg

Oct 29 2018

aheinecke added a comment to T4235: GnuPG doesn't respect key flags when decrypting.

I disagree, and you don't have to try to convince me, the decision is with werner. I just want to give my opinion:
Bug compatibility is nothing esoteric or bad especially for a general purpose backend tool like gnupg. Being open to accepting broken input is a good thing because it will mean that we can get people out of a "broken tool vendor lock in".

Oct 29 2018, 8:29 PM · Not A Bug, OpenPGP, gnupg
dkg added a comment to T4235: GnuPG doesn't respect key flags when decrypting.

i agree with @Valodim that it would be better to not have a warning at all for an attempt to decrypt from secret key whose public key has never been marked as valid for encryption. A strict failure there (as with a strict failure for lack of mdc) is a better scenario than a warning. If the user controls the secret key and they decide they want to be able to decrypt with it, they should be able to mark it as decryption-capable (if that's really what they want) and retry. But this is an action only for experts.

Oct 29 2018, 8:04 PM · Not A Bug, OpenPGP, gnupg
Valodim added a comment to T4235: GnuPG doesn't respect key flags when decrypting.

The same *cannot* be said for a subkey that is marked specifically for certification or signing, and not for decryption.

Oct 29 2018, 7:57 PM · Not A Bug, OpenPGP, gnupg
dkg added a comment to T4235: GnuPG doesn't respect key flags when decrypting.

I understand the real world requirement for decrypting messages that have been encrypted to a revoked or expired key.

Oct 29 2018, 7:43 PM · Not A Bug, OpenPGP, gnupg
werner triaged T4235: GnuPG doesn't respect key flags when decrypting as Low priority.

I don't see a problem. If you have the private key you can and will use it. I guess your concern is an oracle?

Oct 29 2018, 8:47 AM · Not A Bug, OpenPGP, gnupg

Oct 26 2018

werner closed T3894: re-evaluate default randomness choices during key generation on GNU/Linux platforms as Resolved.

Fixed in master and 1.8.
@dkg: Thanks for the comments and your patience to convince me.

Oct 26 2018, 1:54 PM · libgcrypt, gnupg
werner added a comment to T3894: re-evaluate default randomness choices during key generation on GNU/Linux platforms.

The next step is to release libgcrypt 1.8.4 :-)

Oct 26 2018, 1:51 PM · libgcrypt, gnupg
werner closed T4229: array variable leaks out of scope via the assignment of pointer in ks-engine-ldap.c extract_attributes as Resolved.

Fixed in master and 2.2

Oct 26 2018, 12:24 PM · gnupg

Oct 25 2018

werner triaged T4230: Port parsing is broken in misc.c host_and_port_from_url as High priority.

Oh, that is really old code dating back to dirmngr-1. There is only one user I will see whether I can replace it with the generic parser we have in http.c

Oct 25 2018, 5:46 PM · LDAP, dirmngr, gnupg
werner added a comment to T4229: array variable leaks out of scope via the assignment of pointer in ks-engine-ldap.c extract_attributes.

Now that is funny c+p code. I vaporized it to just a few lines.

Oct 25 2018, 5:23 PM · gnupg
werner triaged T4228: Leaked FILE from tmpfile() in dns.c dns_trace_open as Low priority.

It seems that this part of the code was not finished. Unfortunately upstream of the dns code is unresponsive and thus we started to maintain the code base by ourselves. There is still an open question whether we should do that to the full extend, in which case we would integrate the code closer into the GnuPG framework with its own logging subsystems.

Oct 25 2018, 5:06 PM · dns, gnupg
t8m created T4230: Port parsing is broken in misc.c host_and_port_from_url in the S1 Public space.
Oct 25 2018, 3:00 PM · LDAP, dirmngr, gnupg
t8m created T4229: array variable leaks out of scope via the assignment of pointer in ks-engine-ldap.c extract_attributes in the S1 Public space.
Oct 25 2018, 2:50 PM · gnupg
t8m created T4228: Leaked FILE from tmpfile() in dns.c dns_trace_open in the S1 Public space.
Oct 25 2018, 2:29 PM · dns, gnupg

Oct 24 2018

werner closed T4223: Uninitialized use of ctx variable in simple-pwquery.c as Resolved.

Thanks.

Oct 24 2018, 8:34 PM · gnupg
werner closed T4222: Uninitialized use of value variable in command.c cmd_genkey as Resolved.

Thanks.

Oct 24 2018, 8:33 PM · gnupg
werner removed a project from T4221: Suspicious read error handling in command-ssh.c ssh_handler_add_identity: backport.
Oct 24 2018, 8:33 PM · gnupg
werner closed T4221: Suspicious read error handling in command-ssh.c ssh_handler_add_identity as Resolved.

Thanks.

Oct 24 2018, 8:33 PM · gnupg
werner closed T4220: Leak of FILE memory in gpg-connect-agent.c:do_open as Resolved.

Thanks.

Oct 24 2018, 8:33 PM · gnupg
werner closed T4219: Copy & paste error in gpgsm.c as Resolved.

Thanks

Oct 24 2018, 8:32 PM · gnupg
werner added a project to T4223: Uninitialized use of ctx variable in simple-pwquery.c: backport.

Thanks.

Oct 24 2018, 8:22 PM · gnupg
werner added a project to T4222: Uninitialized use of value variable in command.c cmd_genkey: backport.

Thanks. May also happen if the first print_assuan_status fails.

Oct 24 2018, 8:15 PM · gnupg
werner added a project to T4221: Suspicious read error handling in command-ssh.c ssh_handler_add_identity: backport.
Oct 24 2018, 8:11 PM · gnupg
t8m created T4223: Uninitialized use of ctx variable in simple-pwquery.c in the S1 Public space.
Oct 24 2018, 5:41 PM · gnupg
t8m created T4222: Uninitialized use of value variable in command.c cmd_genkey in the S1 Public space.
Oct 24 2018, 5:13 PM · gnupg
t8m created T4221: Suspicious read error handling in command-ssh.c ssh_handler_add_identity in the S1 Public space.
Oct 24 2018, 5:08 PM · gnupg
t8m created T4220: Leak of FILE memory in gpg-connect-agent.c:do_open in the S1 Public space.
Oct 24 2018, 4:57 PM · gnupg
t8m created T4219: Copy & paste error in gpgsm.c in the S1 Public space.
Oct 24 2018, 4:47 PM · gnupg
aheinecke added a revision to T3967: dirmngr: "flush" does not flush in memory CRL's: D469: dirmngr: Add FLUSHCRLs command.
Oct 24 2018, 10:45 AM · kleopatra, S/MIME, gnupg

Oct 22 2018

werner closed T4014: when verifying signatures, gpg and gpgv should ensure signing capabilities as Resolved.
Oct 22 2018, 7:32 PM · gpgv, gnupg, Bug Report

Oct 21 2018

werner created T4200: Evaluate sub-addresses in gpg and wkd.
Oct 21 2018, 2:46 PM · gnupg, Feature Request

Oct 18 2018

adam added a comment to T4189: GngOL cannot decrypt title nor sender; How to disable certificate selection dialog?.

Dear aheinecke,

Oct 18 2018, 1:04 PM · kleopatra, gnupg, Enigmail, OpenPGP, gpgol
aheinecke closed T4189: GngOL cannot decrypt title nor sender; How to disable certificate selection dialog? as Invalid.

Hi Adam,

Oct 18 2018, 12:26 PM · kleopatra, gnupg, Enigmail, OpenPGP, gpgol