Page MenuHome GnuPG
Feed Advanced Search

Aug 6 2015

werner added a comment to T1211: gpg-agent should disable ptrace.

It does not reduce the attack surface. And yes, it complicates things
because you can't anymore debug the process without changing the code
or using other tricks (aka attack). I have not tested the SELinux
feature for quite some time but gnupg supports SELinux if configured
with --enable-selinux-support. If you want some protection better use
that.

dkg: We disable core dumps for the simple reason that we do not want
to see core files on disk. Disk sectors have a longer lifetime than a
process and a user session - thus avoiding core files is a real world
threat mitigation.

Aug 6 2015, 9:08 PM · Won't Fix, Feature Request, gnupg, gpgagent, Not A Bug

Aug 5 2015

DarkStarSword added a comment to T1211: gpg-agent should disable ptrace.

So a single syscall to demonstrably reduce the attack surface really complicates
things does it?

News to me.

Aug 5 2015, 4:31 PM · Won't Fix, Feature Request, gnupg, gpgagent, Not A Bug
dkg added a comment to T1211: gpg-agent should disable ptrace.

I agree with you that the standard UNIX model is generally insufficient here.

Perhaps the distros could weigh in with mechanisms to facilitate
secondary-account creation for agents and the like. I've opened
https://bugs.debian.org/794667 about this.

However, i don't think the weak UNIX permissions model is a reason to avoid a
small piece of code like that offered by DarkStarSword below. Closing off one
avenue of attack is still worthwhile, even if other avenues remain. As werner
said, gpg-agent won't create a coredump (even though other avenues of attack are
possible).

Is there something about the complexity of prctl(PR_SET_DUMPABLE, 0); that makes
it undesirable?

Aug 5 2015, 4:28 PM · Won't Fix, Feature Request, gnupg, gpgagent, Not A Bug
neal added a comment to T1211: gpg-agent should disable ptrace.

dkg: The problem is that the underlying architecture is broken. Unix's stock
permission model is about protecting users from other users, not protecting
processes from other processes. Thus, I don't think it makes any sense to
complicate the code by implementing these effectively useless protections.

FWIW, a widely used practical system that does a much better job at this is
Android. Android runs every program under its own uid. We could do the same
thing with gpg-agent. In fact, this is currently possible with a little help
from ssh. Unfortunately, this requires a fair amount of work by the user to set
up. In particular, the user needs to create a secondary account. It would be
nice if distributions provided a simply way for an unprivileged user to allocate
additional uids, but this is probably a lot of work.

Aug 5 2015, 3:31 PM · Won't Fix, Feature Request, gnupg, gpgagent, Not A Bug

Aug 4 2015

werner renamed T1211: gpg-agent should disable ptrace from gpg-agent allows ptrace to gpg-agent should disable ptrace.
Aug 4 2015, 12:43 PM · Won't Fix, Feature Request, gnupg, gpgagent, Not A Bug
werner added a project to T1211: gpg-agent should disable ptrace: Feature Request.
Aug 4 2015, 12:42 PM · Won't Fix, Feature Request, gnupg, gpgagent, Not A Bug
werner removed a project from T1211: gpg-agent should disable ptrace: Bug Report.
Aug 4 2015, 12:42 PM · Won't Fix, Feature Request, gnupg, gpgagent, Not A Bug
dkg added a comment to T1211: gpg-agent should disable ptrace.

fwiw, i'd be fine with enabling protection against ptrace for gpg-agent, even if
that doesn't fix all the other ways a process can be attacked from another process.

if there are multiple holes, we should plug the ones we can plug, to increase
the pressure to make the other ones fixable.

Aug 4 2015, 12:59 AM · Won't Fix, Feature Request, gnupg, gpgagent, Not A Bug
dkg reopened T1211: gpg-agent should disable ptrace as "Open".
Aug 4 2015, 12:59 AM · Won't Fix, Feature Request, gnupg, gpgagent, Not A Bug

Jul 21 2015

werner added a project to T2051: is_file_compressed (filename, &rc2)) doesn`t CloseHandle files in windows: Not A Bug.
Jul 21 2015, 10:22 AM · Not A Bug, Bug Report, gnupg
werner added a comment to T2051: is_file_compressed (filename, &rc2)) doesn`t CloseHandle files in windows.

That is not a bug. gpg keeps keeps files open and only closes them as needed.
For example before renaming a file under Windows. This is actually the same
uner Windows and Unix but under Unix we have the inode concept and thus we can
rename open files.

Jul 21 2015, 10:22 AM · Not A Bug, Bug Report, gnupg

Jun 25 2015

werner added projects to T1998: Can't use extended characters in passphrase: Not A Bug, pinentry.
Jun 25 2015, 2:59 PM · pinentry, Not A Bug, Bug Report, gnupg

Jun 8 2015

werner added a comment to T1795: gpgme-1.5.3 and gnupg-2 (gpgsm) incompatible?.

Thanks for the log. This reveals a bug which has been with us since the support
for gpgsm: If there is no status line handler but a status line is received
anyway the command handling loop terminates and thus the command/answer order
gets out of sync. In this concrete case this is triggered by sending an option
which starts the agent and that starting emits a "PROGRESS" status line.

My solution is not to stop reading after a status line but record a possible
error code and return that only after OK or ERR.

This will go into 1.5.5 which I am already preparing.

Jun 8 2015, 12:28 PM · gnupg (gpg20), gpgme, Bug Report
werner added a project to T1795: gpgme-1.5.3 and gnupg-2 (gpgsm) incompatible?: Restricted Project.
Jun 8 2015, 12:28 PM · gnupg (gpg20), gpgme, Bug Report

Jun 5 2015

alonbl reopened T1795: gpgme-1.5.3 and gnupg-2 (gpgsm) incompatible? as "Open".
Jun 5 2015, 7:00 PM · gnupg (gpg20), gpgme, Bug Report
alonbl added a comment to T1795: gpgme-1.5.3 and gnupg-2 (gpgsm) incompatible?.

I am unsure I understand, this causes gpgme to fail.

GPGME 2014-12-26 01:12:58 <0x5f44> _gpgme_run_io_cb: call: item=0xd2e804f5b00,
handler (0xd2e804f5970, 13)
GPGME 2014-12-26 01:12:58 <0x5f44> chan_12 <- ERR 50331822 Unknown option <GpgSM>

GPGME 2014-12-26 01:12:58 <0x5f44> gpgme:status_handler: call:
gpgsm=0xd2e804f5970, fd 0xd: ERR line - mapped to: Unknown option

Jun 5 2015, 7:00 PM · gnupg (gpg20), gpgme, Bug Report
werner added a project to T1795: gpgme-1.5.3 and gnupg-2 (gpgsm) incompatible?: Not A Bug.
Jun 5 2015, 2:39 PM · gnupg (gpg20), gpgme, Bug Report

May 22 2015

werner removed Version on T1991: pinentry-w32 needs to adjust button sizes.
May 22 2015, 3:01 PM · pinentry, Won't Fix, Feature Request, Not A Bug
werner renamed T1991: pinentry-w32 needs to adjust button sizes from Password insecure warning dialog has buttons too small for text to pinentry-w32 needs to adjust button sizes.
May 22 2015, 3:01 PM · pinentry, Won't Fix, Feature Request, Not A Bug
werner added a comment to T1991: pinentry-w32 needs to adjust button sizes.

Oh well, resizing the buttons to a new fixed size would be a job in the source
of 10 minutes or so. However, this makes an very ugly Pinentry for every day's
use (i.e. entering a passphrase for an existing key). So, sorry, I won't take
that patch.

With native Windows code I mean native Windows code for GUIs instead of relying
on MFC or whatever is the latest GUI framework MS uses. This is similar to xlib
programm vs. GTK+ programming

Anyway, thanks for looking into this. I will retitle the bug to keep it open.
Maybe eventually someone starts to hack on it.

May 22 2015, 3:01 PM · pinentry, Won't Fix, Feature Request, Not A Bug
werner added projects to T1991: pinentry-w32 needs to adjust button sizes: Feature Request, pinentry.
May 22 2015, 3:01 PM · pinentry, Won't Fix, Feature Request, Not A Bug
werner removed projects from T1991: pinentry-w32 needs to adjust button sizes: Bug Report, gpg4win.
May 22 2015, 3:01 PM · pinentry, Won't Fix, Feature Request, Not A Bug
Animedude5555 added a comment to T1991: pinentry-w32 needs to adjust button sizes.

May 22 2015, 11:29 AM · pinentry, Won't Fix, Feature Request, Not A Bug
Animedude5555 added a comment to T1991: pinentry-w32 needs to adjust button sizes.

May 22 2015, 11:29 AM · pinentry, Won't Fix, Feature Request, Not A Bug
Animedude5555 added a comment to T1991: pinentry-w32 needs to adjust button sizes.

Well, here's my fix. Using this neat little program I downloaded called
Resource Hacker, I edited the buttons on the dialog box so that they would
be big enough to display the messages needed. Realizing that pinentry.exe
and pinentry-w32.exe were identical files (checking them in a hex editor
with file comparison function showed them to be exactly the same), I just
copied my edited version of pinentry.exe and renamed the copy as
pinentry-w32.exe. I have put both of them in a zip file called
pinentry.zip, and have attached this zip file to this email. Feel free to
distribute this on the official GPG4Win website. Note that the file name of
the attachment is "piz" not "zip", so before you extract its contents (for
use, or posting on your website) you will need to rename it from "piz" back
to "zip". I had to rename it from "zip" to "piz" because otherwise Gmail's
mail server scans inside the zip file and then for blocks it because it
detects exe files (and exe files are a format that can potentially harbor
malware). Even though this has no malware (as you can see by scanning it
with a virus scanner), Google's mail server takes extra precautions by
refusing to allow sending of executable files or even archive files that
contain executable files.

May 22 2015, 11:29 AM · pinentry, Won't Fix, Feature Request, Not A Bug
Animedude5555 added a comment to T1991: pinentry-w32 needs to adjust button sizes.

May 22 2015, 11:04 AM · pinentry, Won't Fix, Feature Request, Not A Bug
Animedude5555 reopened T1991: pinentry-w32 needs to adjust button sizes as "Open".
May 22 2015, 11:04 AM · pinentry, Won't Fix, Feature Request, Not A Bug
Animedude5555 added a comment to T1991: pinentry-w32 needs to adjust button sizes.

As far as I know, GPG4Win is a compiling/linking of GPG to be Windows
compatible, which means that the code was already altered to work with
Windows. Therefore native Windows code is already in use in the GPG4Win
variant of GPG. Therefore it should work correctly in every respect in
Windows (including correctly sized buttons).

May 22 2015, 11:04 AM · pinentry, Won't Fix, Feature Request, Not A Bug
werner closed T1991: pinentry-w32 needs to adjust button sizes as Resolved.
May 22 2015, 9:48 AM · pinentry, Won't Fix, Feature Request, Not A Bug
werner added a project to T1991: pinentry-w32 needs to adjust button sizes: Won't Fix.
May 22 2015, 9:48 AM · pinentry, Won't Fix, Feature Request, Not A Bug
werner added a comment to T1991: pinentry-w32 needs to adjust button sizes.

This requires native Windows code to resize a button in a dialog. This is to
much work for something which is basically a debug tool. I have called several
years for help on building a good native Windows tool (without MFC and such) to
no avail.

Feel free to send a working patch to gnupg-devel@

May 22 2015, 9:48 AM · pinentry, Won't Fix, Feature Request, Not A Bug
Animedude5555 added a comment to T1991: pinentry-w32 needs to adjust button sizes.

Even so, this is a bug. As such, it should be fixed.

May 22 2015, 6:56 AM · pinentry, Won't Fix, Feature Request, Not A Bug
Animedude5555 added a comment to T1991: pinentry-w32 needs to adjust button sizes.

May 22 2015, 6:56 AM · pinentry, Won't Fix, Feature Request, Not A Bug

May 21 2015

werner added a project to T1991: pinentry-w32 needs to adjust button sizes: Not A Bug.
May 21 2015, 8:50 AM · pinentry, Won't Fix, Feature Request, Not A Bug

May 11 2015

werner added a project to T1860: Can't verify signatures from command line using signer's public key block: Not A Bug.
May 11 2015, 8:45 PM · Not A Bug, gnupg
werner added a project to T1693: Spurious "Enter new filename" prompt: Not A Bug.
May 11 2015, 8:44 PM · Not A Bug, gnupg
werner removed a project from T1596: GnuPG does not work correctly with OSX MS-DOS/FAT implementation.: Stalled.
May 11 2015, 8:31 PM · Not A Bug, Bug Report, gnupg, MacOS
werner added a project to T1596: GnuPG does not work correctly with OSX MS-DOS/FAT implementation.: Not A Bug.
May 11 2015, 8:31 PM · Not A Bug, Bug Report, gnupg, MacOS

May 7 2015

gniibe claimed T1099: gnupg2 fails to handle multiple card readers.
May 7 2015, 4:59 AM · gnupg, Not A Bug, Bug Report
gniibe closed T1099: gnupg2 fails to handle multiple card readers as Resolved.
May 7 2015, 4:59 AM · gnupg, Not A Bug, Bug Report
gniibe added a project to T1099: gnupg2 fails to handle multiple card readers: gnupg.
May 7 2015, 4:59 AM · gnupg, Not A Bug, Bug Report
gniibe added a comment to T1099: gnupg2 fails to handle multiple card readers.

It can be specified by scdaemon's option. Now in 2.0.x and 2.1.x, it does
partial match for PC/SC.
So, this issue is now closed.

May 7 2015, 4:59 AM · gnupg, Not A Bug, Bug Report

Apr 26 2015

werner added a project to T1960: key 00000000 occurs more than once in the trustdb: Not A Bug.
Apr 26 2015, 11:52 AM · Duplicate, Not A Bug, Bug Report, gnupg

Apr 10 2015

werner closed T1656: Warning message when using gpg (The GNOME keyring manager hijacked the GnuPG agent) as Resolved.
Apr 10 2015, 3:24 PM · Not A Bug, Bug Report
neal reopened T1656: Warning message when using gpg (The GNOME keyring manager hijacked the GnuPG agent) as "Open".
Apr 10 2015, 2:27 PM · Not A Bug, Bug Report
neal added a comment to T1656: Warning message when using gpg (The GNOME keyring manager hijacked the GnuPG agent).

Note: for more information about this issue, please refer to:

  T1945

  https://wiki.gnupg.org/GnomeKeyring

(I've added this here, since this page is one of the top hits on ddg and google
when searching for the warning message.)

Apr 10 2015, 2:27 PM · Not A Bug, Bug Report

Apr 7 2015

werner closed T1941: Punycode domain handling as Resolved.
Apr 7 2015, 9:29 AM · Bug Report, gnupg, Not A Bug

Apr 6 2015

bartdergrosse added a comment to T1941: Punycode domain handling.

Thanks for the information.
I think the complete IDNA and co are an big mining field until to day.

Apr 6 2015, 9:43 PM · Bug Report, gnupg, Not A Bug
werner added a project to T1941: Punycode domain handling: Not A Bug.
Apr 6 2015, 9:26 PM · Bug Report, gnupg, Not A Bug

Mar 16 2015

werner closed T1781: "gpg --list-keys" fails when $GNUPGHOME is not writable as Resolved.
Mar 16 2015, 3:13 PM · Not A Bug, Debian, Bug Report, gnupg
werner closed T1912: iobuf.c: potential buffer overflows as Resolved.
Mar 16 2015, 3:10 PM · Not A Bug, Bug Report, gnupg
werner added a project to T1914: http.c: potential buffer overflow: Not A Bug.
Mar 16 2015, 3:09 PM · Not A Bug, Bug Report, gnupg

Mar 11 2015

werner added a project to T1922: gpg 2.1 ignoring GPG_AGENT_INFO breaks gnome-keyring compatibility: Not A Bug.
Mar 11 2015, 5:57 PM · Not A Bug, Bug Report, gnupg
werner added a project to T1923: gpg-agent does not stop on logout: Not A Bug.
Mar 11 2015, 5:54 PM · Bug Report, gnupg, Not A Bug

Mar 10 2015

werner added a comment to T1899: primegen.c: uses is_locked, which appears to suffer a race.

Sure it used and thus read! You only need to look at the code for 5 seconds!
And no, it is not a lock. Read the comment at the var definition.

Mar 10 2015, 10:07 AM · Not A Bug, libgcrypt
werner added a project to T1899: primegen.c: uses is_locked, which appears to suffer a race: Not A Bug.
Mar 10 2015, 10:07 AM · Not A Bug, libgcrypt
werner added a project to T1912: iobuf.c: potential buffer overflows: Not A Bug.
Mar 10 2015, 10:03 AM · Not A Bug, Bug Report, gnupg
werner closed T1869: Case value not in enumerated type as Resolved.
Mar 10 2015, 10:00 AM · Not A Bug, libgcrypt, Feature Request
werner added a comment to T1869: Case value not in enumerated type.

Yes it is not for a reason - checkout the comments to see why.

Mar 10 2015, 10:00 AM · Not A Bug, libgcrypt, Feature Request
werner added a project to T1869: Case value not in enumerated type: Not A Bug.
Mar 10 2015, 10:00 AM · Not A Bug, libgcrypt, Feature Request
werner closed T1871: Adding 'int' to a string does not append to the string as Resolved.
Mar 10 2015, 9:57 AM · Not A Bug, libgcrypt, Feature Request
werner added a project to T1871: Adding 'int' to a string does not append to the string: Not A Bug.
Mar 10 2015, 9:57 AM · Not A Bug, libgcrypt, Feature Request
werner added a comment to T1880: warning: implicit declaration of function.

No c+p of warnings please! Use gnupg-devel instead.

Mar 10 2015, 9:48 AM · Not A Bug, Bug Report, libksba
werner added a project to T1880: warning: implicit declaration of function: Not A Bug.
Mar 10 2015, 9:48 AM · Not A Bug, Bug Report, libksba
werner closed T1880: warning: implicit declaration of function as Resolved.
Mar 10 2015, 9:48 AM · Not A Bug, Bug Report, libksba
werner added a project to T1884: malloc for 0 bytes: Not A Bug.
Mar 10 2015, 9:39 AM · Not A Bug, Bug Report, gpgrt

Mar 3 2015

werner closed T1859: libgpg-error-1.18: e: WARNING: 'missing' script is too old or missing as Resolved.
Mar 3 2015, 10:10 AM · Bug Report, gpgrt, Not A Bug
werner added a project to T1859: libgpg-error-1.18: e: WARNING: 'missing' script is too old or missing: Not A Bug.
Mar 3 2015, 10:10 AM · Bug Report, gpgrt, Not A Bug
werner added a comment to T1859: libgpg-error-1.18: e: WARNING: 'missing' script is too old or missing.

It is just warning which does not matter if you are using a released tarball.
The next release will support newer autotools and has updated helper files.

Mar 3 2015, 10:10 AM · Bug Report, gpgrt, Not A Bug

Jan 21 2015

werner closed T1812: gpg2 --gen-key does not accept valid email address as Resolved.
Jan 21 2015, 3:28 PM · Bug Report, Not A Bug, gnupg
jgjl added a comment to T1812: gpg2 --gen-key does not accept valid email address.

Ok, thanks for the feedback.

Jan 21 2015, 1:08 AM · Bug Report, Not A Bug, gnupg

Jan 12 2015

werner added a project to T1812: gpg2 --gen-key does not accept valid email address: Not A Bug.
Jan 12 2015, 8:18 AM · Bug Report, Not A Bug, gnupg
werner added a comment to T1812: gpg2 --gen-key does not accept valid email address.

I noticed your address elsewhere and wondered whether my script can handle it.
They do. However, gpg has not a complete parser but tries to make sure that the
user id looks like a valid address.

Use --allow-freeform-uid and enter what ever you like.

Jan 12 2015, 8:18 AM · Bug Report, Not A Bug, gnupg

Jan 5 2015

werner added a project to T1804: HKPS scheme support for Windows Installer: Not A Bug.
Jan 5 2015, 6:24 PM · Bug Report, gnupg, dirmngr

Dec 11 2014

werner added a project to T1781: "gpg --list-keys" fails when $GNUPGHOME is not writable: Not A Bug.
Dec 11 2014, 3:46 PM · Not A Bug, Debian, Bug Report, gnupg

Oct 3 2014

werner closed T1732: Don't break existing keys larger than 4k as Resolved.
Oct 3 2014, 6:20 PM · Not A Bug, Debian, Bug Report, gnupg
werner set External Link to https://bugs.debian.org/739424 on T1732: Don't break existing keys larger than 4k.
Oct 3 2014, 6:19 PM · Not A Bug, Debian, Bug Report, gnupg
werner reopened T1732: Don't break existing keys larger than 4k as "Open".
Oct 3 2014, 6:19 PM · Not A Bug, Debian, Bug Report, gnupg
werner added a comment to T1732: Don't break existing keys larger than 4k.

dkg developed a reasonsable patch which will be included in the next 1.4 version.

Oct 3 2014, 6:19 PM · Not A Bug, Debian, Bug Report, gnupg

Oct 2 2014

werner closed T1732: Don't break existing keys larger than 4k as Resolved.
Oct 2 2014, 7:11 PM · Not A Bug, Debian, Bug Report, gnupg
werner added a comment to T1732: Don't break existing keys larger than 4k.

No bug and I already set this bug to resolved.

Oct 2 2014, 7:11 PM · Not A Bug, Debian, Bug Report, gnupg

Oct 1 2014

ciaby added a comment to T1732: Don't break existing keys larger than 4k.

Judging by the lack of reply, I assume that this bug won't be fixed, correct?

Oct 1 2014, 3:41 AM · Not A Bug, Debian, Bug Report, gnupg

Sep 26 2014

ciaby reopened T1732: Don't break existing keys larger than 4k as "Open".
Sep 26 2014, 6:23 PM · Not A Bug, Debian, Bug Report, gnupg
ciaby added a comment to T1732: Don't break existing keys larger than 4k.

I read that. It says that RSA-2048 keys are going to be safe until 2030. Doesn't
sound like a lot to me... Considering the average human lifespan, I could be
around until 2070. So, nope, not enough.
If all the emails I sent till now have been intercepted and stored (which seems
to be the case according to Snowden), using a RSA-2048 key simply means that all
my private correspondence is going to be public (or at least accessible) in 16
years time. Now, the only thing I'm asking is to raise the amount of secure
memory allocated by GnuPG to 128k to let people use key sizes up to 16384,
something that was even allowed by the keygen itself.

Sep 26 2014, 6:23 PM · Not A Bug, Debian, Bug Report, gnupg
werner closed T1727: add a parameter to GOT_IT to communicate any errors as Resolved.
Sep 26 2014, 2:18 PM · Feature Request, Not A Bug, gnupg
werner added a comment to T1727: add a parameter to GOT_IT to communicate any errors.

GOT_IT merely tells that a line was received. There is and can't be any more
semantics.

Sep 26 2014, 2:18 PM · Feature Request, Not A Bug, gnupg
werner lowered the priority of T1730: gpg should avoid a gpg-agent with a different homedir from Normal to Wishlist.
Sep 26 2014, 2:10 PM · Feature Request, gnupg
werner added a comment to T1730: gpg should avoid a gpg-agent with a different homedir.

I am not yet sure whether to keep GPG_AGENT_INFO.

Sep 26 2014, 2:10 PM · Feature Request, gnupg
infinity0 reopened T1726: no status-fd message indicating current flags as "Open".
Sep 26 2014, 1:11 PM · Feature Request, gnupg
infinity0 added a comment to T1726: no status-fd message indicating current flags.

I have not asked a single question in this thread; this is a bug report, not a
question. You have not explained adequately why this is not a bug.

Sep 26 2014, 1:11 PM · Feature Request, gnupg
werner closed T1726: no status-fd message indicating current flags as Resolved.
Sep 26 2014, 1:04 PM · Feature Request, gnupg
werner added a comment to T1726: no status-fd message indicating current flags.

Please discuss coding questions at gnupg-deel and not in the BTS.

Sep 26 2014, 1:04 PM · Feature Request, gnupg
werner added a comment to T1732: Don't break existing keys larger than 4k.

Please read the FAQ starting with
https://gnupg.org/faq/gnupg-faq.html#default_rsa2048

Sep 26 2014, 12:54 PM · Not A Bug, Debian, Bug Report, gnupg
werner closed T1732: Don't break existing keys larger than 4k as Resolved.
Sep 26 2014, 12:54 PM · Not A Bug, Debian, Bug Report, gnupg
ciaby added a comment to T1732: Don't break existing keys larger than 4k.

By the way, is this all bullshit?
AES-256 == RSA-15360 / DSA-15360 (NIST)
http://csrc.nist.gov/groups/SMA/ispab/documents/minutes/2006-03/E_Barker-
March2006-ISPAB.pdf

AES=256 == RSA-15424 / DSA-15424 (ECRYPT2)
http://www.ecrypt.eu.org/documents/D.SPA.20.pdf

Sep 26 2014, 4:36 AM · Not A Bug, Debian, Bug Report, gnupg
infinity0 added a project to T1727: add a parameter to GOT_IT to communicate any errors: Feature Request.
Sep 26 2014, 12:45 AM · Feature Request, Not A Bug, gnupg
infinity0 removed a project from T1727: add a parameter to GOT_IT to communicate any errors: Bug Report.
Sep 26 2014, 12:45 AM · Feature Request, Not A Bug, gnupg
infinity0 added a comment to T1727: add a parameter to GOT_IT to communicate any errors.

I could not easily figure out what I was supposed to infer from the source code
of gpa or gpgme, but after playing about with it, I suppose I can detect the
error by noticing that the next GET_LINE issues a keyedit.prompt rather than
continuing with the workflow. This means I will have to write some state-keeping
logic instead of merely switching on the GET_LINE, and all users of this
interface will need to implement a similar thing.

To reduce the complexity for scripters here, might I suggest adding an extra
parameter to GOT_IT to explicitly communicate to the client script about any
errors? At least from the gpa/gpgme code it seems there is a generic parser that
can cope with extra parameters to any status line.

If anyone is affected by this (I don't know of others using this interface),
they can easily rewrite their parsing code to cope with both the old and new
GOT_IT lines (with or without a parameter).

BTW, this is the sort of thing that documentation would be helpful for.

Sep 26 2014, 12:45 AM · Feature Request, Not A Bug, gnupg
infinity0 renamed T1727: add a parameter to GOT_IT to communicate any errors from addkey claims success (GOT_IT) even when no secret key to add a parameter to GOT_IT to communicate any errors.
Sep 26 2014, 12:45 AM · Feature Request, Not A Bug, gnupg
infinity0 added a comment to T1726: no status-fd message indicating current flags.

The starting value is Certify+Sign for some options and Certify+Sign+Encrypt for
other options. This should be output in the status file descriptor so that a
script knows what it is doing.

Alternatively, the defaults should be committed to in public API documentation
that is guaranteed to not change, rather than source code. As you said yourself
in ML, one should not rely on the CLI to remain static.

Sep 26 2014, 12:23 AM · Feature Request, gnupg