Page MenuHome GnuPG
Feed Advanced Search

May 11 2015

werner added a project to T1372: pinentry-qt4 passphrase text field too small (Oxygen Style): Info Needed.
May 11 2015, 1:19 PM · Bug Report, pinentry
werner added a comment to T1372: pinentry-qt4 passphrase text field too small (Oxygen Style).

Ludwig: Is that still an issue with a decent pinentry (0.9.1)?

May 11 2015, 1:19 PM · Bug Report, pinentry
werner closed T1262: pinentry does not appear, windows vista, thunderbird, enigmail as Resolved.
May 11 2015, 1:17 PM · gpg4win, Info Needed, Bug Report, pinentry
werner removed a project from T1494: pinentry to support 'ncurses --with-termlib': Bug Report.
May 11 2015, 1:16 PM · Feature Request, Gentoo, pinentry
werner added a project to T1494: pinentry to support 'ncurses --with-termlib': Feature Request.
May 11 2015, 1:16 PM · Feature Request, Gentoo, pinentry
werner added a project to T1463: pinentry-curses crashes with SIGSEGV if can't find terminfo: Restricted Project.
May 11 2015, 1:15 PM · Gentoo, Bug Report, pinentry
werner added a comment to T1463: pinentry-curses crashes with SIGSEGV if can't find terminfo.

Fixed with commit 726c005 for 0.9.2.

You will now get an gpg-error codes like ENOENT, ENOTTY and GPG_ERR_TOO_SHORT
and not always GPG_ERR_CANCELED. I was not able to replicate a crash but that
might have been fixed in an earlier version.

May 11 2015, 1:15 PM · Gentoo, Bug Report, pinentry
werner lowered the priority of T1391: pinentry-curses does not work when caller does not own the tty (for example, when su'ed) from Normal to Low.
May 11 2015, 12:26 PM · Too Old, Info Needed, Bug Report, pinentry
werner added a comment to T1383: pinentry-curses exits without cleanup.

Fixed with commit d7f2081 for 0.9.2.

May 11 2015, 12:24 PM · Bug Report, pinentry
werner closed T1383: pinentry-curses exits without cleanup as Resolved.
May 11 2015, 12:24 PM · Bug Report, pinentry
werner added a project to T1325: Misbehaving Solaris g_utf8_validate() commands causes pinentry-gtk-2 to hang and segfault: Too Old.
May 11 2015, 12:04 PM · Too Old, Bug Report, pinentry
werner closed T1325: Misbehaving Solaris g_utf8_validate() commands causes pinentry-gtk-2 to hang and segfault as Resolved.
May 11 2015, 12:04 PM · Too Old, Bug Report, pinentry
werner added a comment to T1325: Misbehaving Solaris g_utf8_validate() commands causes pinentry-gtk-2 to hang and segfault.

The report is quite old.
Let's assume that has been fixed by newer gtk versions.

May 11 2015, 12:04 PM · Too Old, Bug Report, pinentry
werner added a comment to T1239: pinentry-gtk2 hangs when GNOME a11y is enable.

Is that still a problem with the latest Pinentry (0.9.1 or 0.9.2)?

May 11 2015, 12:02 PM · Bug Report, pinentry
werner added a project to T1239: pinentry-gtk2 hangs when GNOME a11y is enable: Info Needed.
May 11 2015, 12:02 PM · Bug Report, pinentry
werner added a project to T1199: pinentry hangs in read(): Too Old.
May 11 2015, 11:58 AM · Too Old, Bug Report, pinentry
werner removed a project from T1199: pinentry hangs in read(): Stalled.
May 11 2015, 11:58 AM · Too Old, Bug Report, pinentry
werner closed T1199: pinentry hangs in read() as Resolved.
May 11 2015, 11:58 AM · Too Old, Bug Report, pinentry
werner closed T1185: General error GPGME as Resolved.
May 11 2015, 11:57 AM · Bug Report, pinentry, Info Needed
werner added a project to T1248: pinentry does not allow entry: Too Old.
May 11 2015, 11:56 AM · Too Old, Bug Report, pinentry
werner closed T1248: pinentry does not allow entry as Resolved.
May 11 2015, 11:56 AM · Too Old, Bug Report, pinentry

May 4 2015

werner assigned T1957: pinentry-curses: no escape codes? to neal.
May 4 2015, 8:28 AM · Bug Report, pinentry
werner added a comment to T1957: pinentry-curses: no escape codes?.

dkg and Neal fixed a couple of things recently. @neal: I think supporting C-W
in curses would a good idea.

May 4 2015, 8:28 AM · Bug Report, pinentry
werner updated subscribers of T1957: pinentry-curses: no escape codes?.
May 4 2015, 8:28 AM · Bug Report, pinentry
werner added a comment to T1966: pinentry-tty not internationalized.

That would require to send this string to all pinentries.

May 4 2015, 8:27 AM · Bug Report, pinentry

May 2 2015

neal added a comment to T1965: Can't correct password using pinentry tty.

Fixed in:

commit 189ab07e94dc2d4103c1edf00e15e0156df89297
Author: Neal H. Walfield <neal@gnu.org>
Date: Fri May 1 20:35:59 2015 +0200

When reading the pin, correctly handle backspace.

* tty/pinentry-tty.c (read_password): Handle backspace.

--
May 2 2015, 9:47 PM · Bug Report, pinentry
neal closed T1965: Can't correct password using pinentry tty as Resolved.
May 2 2015, 9:47 PM · Bug Report, pinentry

May 1 2015

neal added a comment to T1966: pinentry-tty not internationalized.

I think this needs to be a bit clearer:

In pinentry-tty.c:confirm, only the "ok" button's text is shown and it is
suffixed by a fixed string: "[y/N]", which should be internationalized.

May 1 2015, 8:30 PM · Bug Report, pinentry
neal added projects to T1966: pinentry-tty not internationalized: pinentry, Bug Report.
May 1 2015, 4:53 PM · Bug Report, pinentry
neal added projects to T1965: Can't correct password using pinentry tty: pinentry, Bug Report.
May 1 2015, 4:34 PM · Bug Report, pinentry

Apr 28 2015

heirecka added projects to T1961: pinentry-qt4 needs -std=c++11 to compile with gcc-5.1: pinentry, Bug Report.
Apr 28 2015, 7:02 PM · Bug Report, pinentry

Apr 24 2015

Joanmarie added projects to T1959: pinentry-gtk-2's secure entry is inaccessible in GNU/Linux: pinentry, Bug Report.
Apr 24 2015, 5:06 PM · Bug Report, pinentry
Joanmarie added a comment to T1959: pinentry-gtk-2's secure entry is inaccessible in GNU/Linux.

Apr 24 2015, 5:06 PM · Bug Report, pinentry

Apr 22 2015

ilf added projects to T1957: pinentry-curses: no escape codes?: pinentry, Bug Report.
Apr 22 2015, 11:59 PM · Bug Report, pinentry

Apr 20 2015

werner added a comment to T1953: pinentry doesn't compile.

Well, it is only a warning and we should not remove the -Wstrict-prototypes
because it is in general very helpful. I suggest to use something similar to

#if JNLIB_GCC_HAVE_PUSH_PRAGMA

  1. pragma GCC push_options
  2. pragma GCC optimize ("no-strict-overflow")

#endif
....
pragma pop... but with the diagnostics pragmas.

Apr 20 2015, 9:53 AM · Bug Report, pinentry
werner assigned T1953: pinentry doesn't compile to neal.
Apr 20 2015, 9:53 AM · Bug Report, pinentry
werner lowered the priority of T1953: pinentry doesn't compile from Normal to Low.
Apr 20 2015, 9:53 AM · Bug Report, pinentry

Apr 18 2015

neal set Version to 9d2d8b6bfaf2d5b07e7fb5be7188516e4158ed98 on T1953: pinentry doesn't compile.
Apr 18 2015, 12:56 PM · Bug Report, pinentry
neal added projects to T1953: pinentry doesn't compile: pinentry, Bug Report.
Apr 18 2015, 12:56 PM · Bug Report, pinentry

Apr 16 2015

werner added a comment to T1453: pinentry-gtk2: ESC not handled.

Just pushed commit 9d2d8b6 which is the patch with some modification to avoid
gcc warnings. Will go into 0.9.2

Thanks.

Apr 16 2015, 11:39 AM · Bug Report, pinentry
werner added a project to T1453: pinentry-gtk2: ESC not handled: Restricted Project.
Apr 16 2015, 11:39 AM · Bug Report, pinentry

Apr 14 2015

dkg set Version to 0.9.1 on T1777: pinentry-gtk-2 refuses input when GTK_IM_MODULE=scim.
Apr 14 2015, 3:36 PM · Bug Report, pinentry
dkg added a comment to T1777: pinentry-gtk-2 refuses input when GTK_IM_MODULE=scim.

This is still an issue with pinentry 0.9.1

Apr 14 2015, 3:36 PM · Bug Report, pinentry

Mar 19 2015

werner closed T1918: Pinentry requires an emulation for getopt_long as Resolved.
Mar 19 2015, 6:10 PM · Bug Report, pinentry
werner added a comment to T1918: Pinentry requires an emulation for getopt_long.

Fixed with pinentry 0.9.1.

Mar 19 2015, 6:10 PM · Bug Report, pinentry

Mar 6 2015

werner added projects to T1918: Pinentry requires an emulation for getopt_long: pinentry, Bug Report.
Mar 6 2015, 7:01 PM · Bug Report, pinentry

Feb 20 2015

werner added a comment to T1806: Pinentry-qt should have support for Qt5.

How much time would it take to migrate to QT5?

Feb 20 2015, 9:07 AM · pinentry, Feature Request

Feb 11 2015

werner added a project to T1836: gpg-agent --no-detach breaks pinentry-curses, pinentry-tty: pinentry.
Feb 11 2015, 11:38 AM · Too Old, Info Needed, pinentry, Bug Report

Jan 5 2015

aheinecke added projects to T1806: Pinentry-qt should have support for Qt5: Feature Request, pinentry.
Jan 5 2015, 10:27 AM · pinentry, Feature Request

Dec 15 2014

aheinecke closed T1784: pinentry-0.9.0: wrong #include paths in .moc files as Resolved.
Dec 15 2014, 6:16 PM · Bug Report, pinentry
aheinecke added a comment to T1784: pinentry-0.9.0: wrong #include paths in .moc files.

Should be fixed now.

The next version will no longer include the generated moc files.
It's not really a patch to backport (as you requested this in your mailing list).

In quilt you can just do something like:
quilt new remove-broken-moc-files.patch
quilt add qt4/*.moc
rm qt4/*.moc
quilt refresh

Dec 15 2014, 6:16 PM · Bug Report, pinentry
aheinecke added a comment to T1784: pinentry-0.9.0: wrong #include paths in .moc files.

I also ran into this problem with our (intevation's) debian packaging.

Just removing the .moc files worked as they were correctly generated
automatically (as they should be).

I'll commit a fix not to include them in the dist package anymore.

Dec 15 2014, 12:54 PM · Bug Report, pinentry

Dec 9 2014

aheinecke added a comment to T1785: pinentry-qt4: make the accessibility part optional.

Thanks!

Applied:
http://git.gnupg.org/cgi-bin/gitweb.cgi?p=pinentry.git;a=commit;h=484465338ea6f5f12eb1341ca0ef84aa79224ed4

Dec 9 2014, 9:38 PM · Bug Report, pinentry
aheinecke closed T1785: pinentry-qt4: make the accessibility part optional as Resolved.
Dec 9 2014, 9:38 PM · Bug Report, pinentry

Dec 8 2014

vincent set External Link to http://lists.gnupg.org/pipermail/gnupg-devel/2014-December/029182.html on T1785: pinentry-qt4: make the accessibility part optional.
Dec 8 2014, 5:47 PM · Bug Report, pinentry
vincent added projects to T1785: pinentry-qt4: make the accessibility part optional: pinentry, Bug Report.
Dec 8 2014, 5:47 PM · Bug Report, pinentry
vincent added a comment to T1785: pinentry-qt4: make the accessibility part optional.

D274: 536_0001-pinentry-qt4-make-the-accessibility-part-optional.patch

Dec 8 2014, 5:47 PM · Bug Report, pinentry
aheinecke added a comment to T1784: pinentry-0.9.0: wrong #include paths in .moc files.

Werner: I think the source tarball you distribute should be changed not to
include the .moc files as they depend on the qt version used when you generate
the tarballs.

MOC should be detected during configure (and otherwise pinentry-qt should be
disabled) and MOC should be used to generate the moc files. If this does not
work as expected this might have been caused by my limited Make and autotools
skills ;-)

Dec 8 2014, 5:35 PM · Bug Report, pinentry
vincent added projects to T1784: pinentry-0.9.0: wrong #include paths in .moc files: pinentry, Bug Report.
Dec 8 2014, 2:39 PM · Bug Report, pinentry

Dec 3 2014

wavexx added a comment to T1453: pinentry-gtk2: ESC not handled.

On 12/02/2014 10:14 PM, Daniel Kahn Gillmor via BTS wrote:

Daniel Kahn Gillmor <dkg@fifthhorseman.net> added the comment:

Any word on this? It would be nice to see something like this merged.

Dec 3 2014, 1:57 PM · Bug Report, pinentry

Dec 2 2014

dkg added projects to T1777: pinentry-gtk-2 refuses input when GTK_IM_MODULE=scim: pinentry, Bug Report.
Dec 2 2014, 10:47 PM · Bug Report, pinentry
dkg added a comment to T1453: pinentry-gtk2: ESC not handled.

Any word on this? It would be nice to see something like this merged.

Dec 2 2014, 10:14 PM · Bug Report, pinentry

Nov 28 2014

troyengel added a comment to T1772: Using '--passphrase-fd 0' forces pinentry (STDIN ignored).

Thanks werner -- I've filed an upstream issue to bring awareness of the change
to the software I use that was affected (duply/duplicity), I'm sure this is
going to pop up for others as 2.1 becomes more widely adopted. Maybe add
something to the release notes or docs for '--passphrase-fd 0' so folks know a
config change is needed in their apps and gpg-agent? Regardless, I appreciate
your help.

(marking as resolved)

Nov 28 2014, 5:42 PM · gnupg, pinentry, gpgagent, gnupg (gpg21)
werner added a comment to T1772: Using '--passphrase-fd 0' forces pinentry (STDIN ignored).

If you add it to gpg.conf the Pinentry won't be used and there are fir sure
cases where things won't work. In an unattended use I can't see a problem right
now.

We can't change the behaviour of --passpharse-fd; it is widely used and:

  if ( !opt.batch && opt.pinentry_mode != PINENTRY_MODE_LOOPBACK)
    { /* Not used but we have to do a dummy read, so that it won't end
         up at the begin of the message if the quite usual trick to
         prepend the passphtrase to the message is used. */

think would break or - worse - may insert the passphrase into the message.

The passphrase is still used for symmetric only encryption in batch mode.

Nov 28 2014, 10:41 AM · gnupg, pinentry, gpgagent, gnupg (gpg21)

Nov 27 2014

troyengel added a comment to T1772: Using '--passphrase-fd 0' forces pinentry (STDIN ignored).

Roger that, thanks - I've tested it on a VM with my keys and things seem "like
they used to be" for scripting an automated passphrase entry. I specified them
in my ~/.gnupg/pgp.conf and ~/.gnupg/gpg-agent.conf since editing many
individual softwares is not possible at this time, it needs to be backwards
compatible.

What side affects (breaking things?) does having these options permanently
enabled in configs are there? Having the allow in gpg-agent.conf is harmless,
but what about the client side gpg.conf?

If client gpg '--passphrase-fd 0' is useless without '--pinentry-mode loopback',
why not make this an automatic added option (internally) if '--passphrase-fd 0'
is specified? Of what use with gnupg-2.1.x is '--passphrase-fd 0' without
'--pinentry-mode loopback'?

I double-checked the official docs, there's no mention of needing these new
loopback settings in the section for --passphrase-fd 0:

https://www.gnupg.org/documentation/manuals/gnupg/GPG-Esoteric-Options.html#GPG-Esoteric-Options

"If you use 0 for n, the passphrase will be read from STDIN." (but as we know
here, it's not unless the new loopback options are added)

Nov 27 2014, 6:02 PM · gnupg, pinentry, gpgagent, gnupg (gpg21)
werner closed T1772: Using '--passphrase-fd 0' forces pinentry (STDIN ignored) as Invalid.
Nov 27 2014, 12:23 PM · gnupg, pinentry, gpgagent, gnupg (gpg21)
werner lowered the priority of T1772: Using '--passphrase-fd 0' forces pinentry (STDIN ignored) from High to Normal.
Nov 27 2014, 12:23 PM · gnupg, pinentry, gpgagent, gnupg (gpg21)
werner removed a project from T1772: Using '--passphrase-fd 0' forces pinentry (STDIN ignored): Bug Report.
Nov 27 2014, 12:23 PM · gnupg, pinentry, gpgagent, gnupg (gpg21)
werner added a comment to T1772: Using '--passphrase-fd 0' forces pinentry (STDIN ignored).

Like gpgsm has done from its very beginnong, gpg now also does not pknow
anything about the secret keys. This is all delagted to gpg-agent. This means
that telling gpg a passphrase is useless.

But wait. There is a workaround: gpg has the new option

   --pinentry-mode mode
          Set the pinentry mode to mode.  Allowed values for mode are:

          default
                 Use the default of the agent, which is ask.

          ask    Force the use of the Pinentry.

          cancel Emulate use of Pinentry's cancel button.

          error  Return a Pinentry error (``No Pinentry'').

          loopback

                 Redirect Pinentry queries to the caller.  Note that
                 in contrast to Pinentry the user is not prompted
                 again if he enters a bad pass- word.

Thus by using

  gpg --pinentry-mode=loopback

you can do basically the same as with 1.4. It is well tested and
slighly different than in 1.4. Uou also need to configure gpg-agent
with

  --allow-loopback-pinentry

       Allow clients to use the loopback pinentry features; see the
       option pinentry-mode for details.
Nov 27 2014, 12:23 PM · gnupg, pinentry, gpgagent, gnupg (gpg21)

Nov 25 2014

troyengel added a comment to T1772: Using '--passphrase-fd 0' forces pinentry (STDIN ignored).

A few Arch users are reporting the same regression/breakage, thread here:

https://bbs.archlinux.org/viewtopic.php?pid=1479136

Nov 25 2014, 8:02 PM · gnupg, pinentry, gpgagent, gnupg (gpg21)
troyengel set Version to 2.1.1-beta44 (git) on T1772: Using '--passphrase-fd 0' forces pinentry (STDIN ignored).
Nov 25 2014, 7:57 PM · gnupg, pinentry, gpgagent, gnupg (gpg21)
troyengel added projects to T1772: Using '--passphrase-fd 0' forces pinentry (STDIN ignored): gnupg (gpg21), gpgagent, pinentry, gnupg, Bug Report.
Nov 25 2014, 7:57 PM · gnupg, pinentry, gpgagent, gnupg (gpg21)

Nov 19 2014

aheinecke added a comment to T1370: Cannot paste into Pinentry.

With pinentry 0.9 this works in pinentry-gtk under GNU/Linux.

With pinentry 0.8.4 This works in pinentry-qt4 under Windows.

Gpg4win includes a version with paste support since 2.1.0 (I think)

Nov 19 2014, 5:03 PM · pinentry, Feature Request
aheinecke closed T1370: Cannot paste into Pinentry as Resolved.
Nov 19 2014, 5:03 PM · pinentry, Feature Request

Nov 17 2014

werner added a comment to T1760: Port pinentry-ncurses for windows.

Feel free to send a patch ;-). You may want to publish this feature request on
some mailing list and ask for help.

Nov 17 2014, 3:13 PM · pinentry, Feature Request

Nov 15 2014

dma_k added projects to T1760: Port pinentry-ncurses for windows: Feature Request, pinentry.
Nov 15 2014, 10:05 PM · pinentry, Feature Request

Nov 12 2014

Ionic set Version to 0.9.0 on T1758: pinentry Qt4 frontend broken with libc++.
Nov 12 2014, 8:46 PM · Bug Report, pinentry
Ionic added projects to T1758: pinentry Qt4 frontend broken with libc++: pinentry, Bug Report.
Nov 12 2014, 8:46 PM · Bug Report, pinentry
cdbunch set Version to 0.9.0 on T1757: pinentry requires getopt_long but no implementation provided.
Nov 12 2014, 8:02 PM · Bug Report, pinentry
cdbunch added projects to T1757: pinentry requires getopt_long but no implementation provided: pinentry, Bug Report.
Nov 12 2014, 8:02 PM · Bug Report, pinentry

Sep 17 2014

werner added a project to T1243: gpgsm: export secret key p12 failed.: Too Old.
Sep 17 2014, 7:16 PM · Too Old, Bug Report, gnupg, pinentry, S/MIME
werner closed T1243: gpgsm: export secret key p12 failed. as Resolved.
Sep 17 2014, 7:16 PM · Too Old, Bug Report, gnupg, pinentry, S/MIME

Aug 21 2014

aheinecke changed Version from 0.8.1 to 0.8.4 on T1372: pinentry-qt4 passphrase text field too small (Oxygen Style).
Aug 21 2014, 7:43 PM · Bug Report, pinentry
aheinecke claimed T1372: pinentry-qt4 passphrase text field too small (Oxygen Style).
Aug 21 2014, 7:43 PM · Bug Report, pinentry

Aug 18 2014

aheinecke removed a project from T1678: Pinentry-qt4 opens confirm dialog in the background: Restricted Project.
Aug 18 2014, 4:50 PM · Bug Report, Windows 32, pinentry, Windows
aheinecke closed T1678: Pinentry-qt4 opens confirm dialog in the background as Resolved.
Aug 18 2014, 4:50 PM · Bug Report, Windows 32, pinentry, Windows

Aug 12 2014

aheinecke claimed T1262: pinentry does not appear, windows vista, thunderbird, enigmail.
Aug 12 2014, 8:50 PM · gpg4win, Info Needed, Bug Report, pinentry
aheinecke added projects to T1262: pinentry does not appear, windows vista, thunderbird, enigmail: Info Needed, gpg4win.
Aug 12 2014, 8:50 PM · gpg4win, Info Needed, Bug Report, pinentry
aheinecke added a comment to T1262: pinentry does not appear, windows vista, thunderbird, enigmail.

pinentry-qt should have only been the default if you install a gpg4win version
that includes qt.

Could you execute pinetry-qt directly and enter "getpin" in the command line
window that opens?
What happens then?

Aug 12 2014, 8:50 PM · gpg4win, Info Needed, Bug Report, pinentry
aheinecke lowered the priority of T1262: pinentry does not appear, windows vista, thunderbird, enigmail from Unbreak Now! to Normal.
Aug 12 2014, 8:50 PM · gpg4win, Info Needed, Bug Report, pinentry

Aug 6 2014

aheinecke added a project to T1678: Pinentry-qt4 opens confirm dialog in the background: Restricted Project.
Aug 6 2014, 3:33 PM · Bug Report, Windows 32, pinentry, Windows
aheinecke added a comment to T1678: Pinentry-qt4 opens confirm dialog in the background.

Thanks for the explanations.

Further analysis showed that the second call to AllowSetForeground window was
blocked by the ForegroundWindowLockTimeout. If you set this timeout to zero
everything worked as expected.

There is a discussion on this under:
http://social.msdn.microsoft.com/Forums/vstudio/en-US/09fa16ba-c6ef-410d-bec2-a99a9b9a98d9/issue-with-foregroundlocktimeout-setforegroundwindow

Which suggests a solution of setting the foregroundlocktimeout to zero before
attempting to set the foreground window. I've found this solution not applicable
for our case as we run into the lock on "AllowSetForegroundWindow" and not when
actually setting the foreground Window.

Another workaround is to call AttachThreadInput on the current foreground thread
call SetForegroundWindow and then detach again. There might be problems with
this approach so it is just used as fallback. But it should resolve this problem
for now.

Aug 6 2014, 3:33 PM · Bug Report, Windows 32, pinentry, Windows
werner added a comment to T1678: Pinentry-qt4 opens confirm dialog in the background.

What I described is done for all pinentries.

Aug 6 2014, 10:32 AM · Bug Report, Windows 32, pinentry, Windows

Aug 5 2014

aheinecke added a comment to T1678: Pinentry-qt4 opens confirm dialog in the background.

Ok, thanks I'll check what happens if

  1. The agent thinks that the passphrase entered is too weak
  2. The agent starts another pinentry
  3. The agent sends "getinfo pid" to the pinentry (this i can see)
  4. ?
Aug 5 2014, 3:19 PM · Bug Report, Windows 32, pinentry, Windows
werner added a comment to T1678: Pinentry-qt4 opens confirm dialog in the background.
  1. The agent starts pinentry.
  2. The agent sends "getinfo pid" to the pinentry"
  3. The agents sends an "INQUIRE PINENTRY_LAUNCHED <pid>" to the caller.

4a. If the caller is gpg, gpg calls AllowSetForegroundWindow for the received
pid; gpg has been started via gpgme and gpgme has called ASFW for gpg.
4b. If the caller is gpgsm, it proxies the PINENTRY_LAUNCHED to gpgme which then
calls ASFG for the pid.

The different methods are required because gpg is a one-off process while gpgsm
may be used several times.

Aug 5 2014, 3:11 PM · Bug Report, Windows 32, pinentry, Windows
aheinecke added a comment to T1678: Pinentry-qt4 opens confirm dialog in the background.

Yes Kleopatra uses gpgme for key generation. Still I don't see how gpgme figures
into this sorry. Should gpgme start gpg-agent and ensure that it has the
setforeground window access right?

  1. The gpg-agent asks for a passphrase with pinentry -> set foreground window is

allowed.

  1. If that passphrase is weak it launches a new pinentry with a confirm dialog

-> set foreground window is not allowed.

And the agent does not have the right to call allowsetforegroundwindow. In the
first case I think this might be because another component gets the PID of the
pinentry and calls allowsetforeground window (have to do further debugging to
check this)

In the second case afaik only gpg-agent is involved and no one sets
allowsetforeground window on the pid of the second pinentry.

Aug 5 2014, 9:36 AM · Bug Report, Windows 32, pinentry, Windows

Aug 4 2014

werner added a comment to T1678: Pinentry-qt4 opens confirm dialog in the background.

BTW, gpgme 1.5.1 has a spawn interface which is better than to code your own in Qt.

Aug 4 2014, 3:36 PM · Bug Report, Windows 32, pinentry, Windows
werner added a comment to T1678: Pinentry-qt4 opens confirm dialog in the background.

It goes all the way back to GPGME via the assuan interface. grep for
_gpgme_allow_set_foreground_window. For GPG the assuan interface is not used.
We do it by passing our internal IOSPAWN_FLAG_ALLOW_SET_FG flag to the
gpgme-w32spawn.c helper which then uses this to call set foreground API.

Does Kleopatra always use gpgme?

Aug 4 2014, 3:34 PM · Bug Report, Windows 32, pinentry, Windows
aheinecke added projects to T1678: Pinentry-qt4 opens confirm dialog in the background: Windows, pinentry, Windows 32, Bug Report.
Aug 4 2014, 12:36 PM · Bug Report, Windows 32, pinentry, Windows

Feb 17 2014

werner closed T1592: Pinentry's max password length is too short as Resolved.
Feb 17 2014, 6:08 PM · Not A Bug, gpg4win, Bug Report, Windows 64, pinentry, OpenPGP, Windows