From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.bugs Subject: bug#7130: 24.0.50; EPA queries twice and doesn't cache passwords when decrypting files Date: Sat, 02 Oct 2010 09:16:43 +0200 Message-ID: <87ocbd83ok.fsf@thinkpad.tsdh.de> References: <87eicdqa1b.fsf@thinkpad.tsdh.de> <201009300824.40732.tassilo@member.fsf.org> <201010011214.38721.tassilo@member.fsf.org> <87fwwqp21z.fsf@broken.deisui.org> <878w2h7fop.fsf@thinkpad.tsdh.de> <87eic9mohn.fsf@broken.deisui.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1286005306 21297 80.91.229.12 (2 Oct 2010 07:41:46 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 2 Oct 2010 07:41:46 +0000 (UTC) Cc: 7130@debbugs.gnu.org To: Daiki Ueno Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 02 09:41:44 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1P1wj0-0001gu-EP for geb-bug-gnu-emacs@m.gmane.org; Sat, 02 Oct 2010 09:41:42 +0200 Original-Received: from localhost ([127.0.0.1]:36500 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P1wiz-0006Sq-QP for geb-bug-gnu-emacs@m.gmane.org; Sat, 02 Oct 2010 03:41:41 -0400 Original-Received: from [140.186.70.92] (port=57213 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P1wir-0006Ro-UC for bug-gnu-emacs@gnu.org; Sat, 02 Oct 2010 03:41:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P1wiq-0007Az-HL for bug-gnu-emacs@gnu.org; Sat, 02 Oct 2010 03:41:33 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53824) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P1wiq-0007Aq-E8 for bug-gnu-emacs@gnu.org; Sat, 02 Oct 2010 03:41:32 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1P1wID-0006BW-R1; Sat, 02 Oct 2010 03:14:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tassilo Horn Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 02 Oct 2010 07:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7130 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: unreproducible moreinfo Original-Received: via spool by 7130-submit@debbugs.gnu.org id=B7130.128600362923768 (code B ref 7130); Sat, 02 Oct 2010 07:14:01 +0000 Original-Received: (at 7130) by debbugs.gnu.org; 2 Oct 2010 07:13:49 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P1wI0-0006BJ-Q7 for submit@debbugs.gnu.org; Sat, 02 Oct 2010 03:13:49 -0400 Original-Received: from out5.smtp.messagingengine.com ([66.111.4.29]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P1wHy-0006BE-Pr for 7130@debbugs.gnu.org; Sat, 02 Oct 2010 03:13:47 -0400 Original-Received: from compute3.internal (compute3.nyi.mail.srv.osa [10.202.2.43]) by gateway1.messagingengine.com (Postfix) with ESMTP id C9E5E20B; Sat, 2 Oct 2010 03:16:46 -0400 (EDT) Original-Received: from frontend2.messagingengine.com ([10.202.2.161]) by compute3.internal (MEProxy); Sat, 02 Oct 2010 03:16:46 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=messagingengine.com; h=from:to:cc:subject:references:date:in-reply-to:message-id:mime-version:content-type; s=smtpout; bh=fVKx7G5vYjrBVyl2t7ME9Wao7y8=; b=e1wbEYroPA2psX2TTw4QC2hnA0GvLspcBkcI5WVmiNjJudq2VxG3yeJ3c8WLMHrAyScpYN7GwesswS54HigRZ1IpJV9LrciIS0BRbdKdhHCXgbNT/HL8WGEjgcAahHjjL2p7B1UNO8ZuPYUr8CJ0P9z8/SGo+r/uLMpOGfTqJxU= X-Sasl-enc: DALbA6Ga2Rp1/oovowi/ueX+bv6gySZG4dUL7dgHFBuM 1286003806 Original-Received: from thinkpad.tsdh.de (p54AF0045.dip0.t-ipconnect.de [84.175.0.69]) by mail.messagingengine.com (Postfix) with ESMTPA id B4A495E7CCF; Sat, 2 Oct 2010 03:16:45 -0400 (EDT) In-Reply-To: <87eic9mohn.fsf@broken.deisui.org> (Daiki Ueno's message of "Sat, 02 Oct 2010 09:23:32 +0900") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 02 Oct 2010 03:14:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:40631 Archived-At: Daiki Ueno writes: Hi Daiki, >>> If you see your password is cached, that is probably because of my >>> hack in gpg-agent: >>> >>> http://lists.gnupg.org/pipermail/gnupg-devel/2009-May/025045.html >> >> Hm, passwords aren't cached in neither with nor without symlink. So >> I guess that patch is not in my gnupg version. > > FWIW, it has been available since gnupg-2.0.13 and I confirmed it with > Debian package based on 2.0.14. You can try it with: > > $ echo aaa > test.txt > $ gpg2 --symmetric test.txt # will ask password twice > $ pkill -HUP gpg-agent # clear the password cache > $ gpg2 < test.txt.gpg # will ask password > $ gpg2 < test.txt.gpg # won't ask password Ah, I've just got you wrong. I've thought you hacked something up that allows retrieving the passwords in elisp and cache them in the usual epa variables. The caching in the agent works fine with the recipe above. > I personally think this feature safer than caching passwords in elisp. Yes, that's probably true. Bye, Tassilo