Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 43904 - gpg-agent fails to get passphrase from pinentry-qt
Summary: gpg-agent fails to get passphrase from pinentry-qt
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-06 12:02 UTC by Benjamin Greiner
Modified: 2005-02-21 12:44 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
stderr of `gpg-agent --server --debug-all --pinentry-program /usr/bin/pinentry-qt` and passphrase query (gpg-agentdebug.log,14.63 KB, text/plain)
2004-03-06 12:06 UTC, Benjamin Greiner
Details
List of QT/KDE GUI styles that (don't) work with pinentry-qt (workingstyles,336 bytes, text/plain)
2004-03-22 04:27 UTC, theboywho
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin Greiner 2004-03-06 12:02:04 UTC
When gpg-agent (package newpg) asks pinentry-qt for the passphrase of a gpgkey, for example when using cryptplug with kmail, it fails either on start of pinentry-qt, or on the third letter when entering the phrase.

Reproducible: Always
Steps to Reproduce:
Possibility 1 (general use):
1. be sure to have pinentry-qt (not -gtk) in ~/.gnupg/gpg-agent.conf, gpg-agent running and available for kmail
2. open encrypted pgp/mime message in kmail using cryptplug
3. if window appears try to enter passphrase

Possibility 2 (debug):
1. run `gpg-agent --server --pinentry-program /usr/bin/pinentry-qt --debug-all --verbose`
(or specify these options in gpg-agent.conf)
2. enter passphrase query like 
GET_PASSPHRASE 0A0362A27C73C736C398B22E5DCD494CF357DB02 X X You+need+a+passphrase+to+unlock+the+secret+key+for+user:%0A"Benjamin+Greiner+<Benjamin.Greiner@gmx.de>"%0A1024-bit+ELG-E+key,+ID+F357DB02,+created+2002-07-16+(main+key+ID+9CC0B479)%0A
Actual Results:  
A: Get error message about invalid password / can't decrypt email
B: Get error output (see attachment)


Expected Results:  
accepting passphrase and decrypting mail

Current workaround is to use pinentry-gtk instead of pinentry-qt

used package versions:

qt-3.3.0-r1
pinentry-0.6.9
newpg-0.9.4-r1


ben@ben ~ $ emerge info
Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.22-gentoo-r3)
=================================================================
System uname: 2.4.22-gentoo-r3 i686 AMD Athlon(tm) XP 2000+
Gentoo Base System version 1.4.3.13
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.7.7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config 
/usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/tex/generic/config/ 
/usr/share/texmf/tex/platex/config/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo ftp://sunsite.informatik.rwth-aachen.
de/pub/Linux/gentoo http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X aalib alsa apm arts avi berkdb cdr crypt cups directfb dvd encode esd foomaticdb gdbm gif 
gphoto2 gpm gtk gtk2 imlib irda java jpeg kde libg++ libwww mad mikmod motif mozilla mpeg ncurses 
nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl slang spell ssl svga tcpd 
tetex truetype x86 xml2 xmms xv zlib"
Comment 1 Benjamin Greiner 2004-03-06 12:06:51 UTC
Created attachment 26948 [details]
stderr of `gpg-agent --server --debug-all --pinentry-program /usr/bin/pinentry-qt` and passphrase query
Comment 2 theboywho 2004-03-22 04:13:59 UTC
It appears to be a problem with KDE gui styles. From what i have been able to test, pinentry-qt works with QTs base style but not with some of KDEs own.
Comment 3 theboywho 2004-03-22 04:27:47 UTC
Created attachment 27798 [details]
List of QT/KDE GUI styles that (don't) work with pinentry-qt
Comment 4 Dan Margolis (RETIRED) gentoo-dev 2004-07-08 08:48:45 UTC
Appears to be a KDE issue. Reassigning. 
Comment 5 Gregorio Guidi (RETIRED) gentoo-dev 2005-01-11 11:25:53 UTC
Is this still happening with pinentry-0.7.x?
Comment 6 Gregorio Guidi (RETIRED) gentoo-dev 2005-02-17 03:06:14 UTC
No reply from reporter.
Comment 7 Benjamin Greiner 2005-02-21 12:44:07 UTC
Sorry for not replying. Indeed it does work with current version. Thanks.