From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.devel Subject: Re: secure plist store Date: Wed, 29 Jun 2011 09:34:49 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87fwmsr9iu.fsf@lifelogs.com> References: <87pqmxvfoh.fsf@lifelogs.com> <87sjrttwh8.fsf@lifelogs.com> <87wrh4b9h9.fsf@lifelogs.com> <87aae05l8p.fsf-ueno@unixuser.org> <87k4d4b66p.fsf@lifelogs.com> <87wrh0fh4g.fsf_-_@lifelogs.com> <87y60ncma8.fsf_-_@lifelogs.com> <87vcvrne02.fsf-ueno@unixuser.org> <87r56ep3sm.fsf@lifelogs.com> <874o39n171.fsf-ueno@unixuser.org> <87mxh0sy9o.fsf@lifelogs.com> <87pqlwkfw1.fsf-ueno@unixuser.org> Reply-To: emacs-devel@gnu.org NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1309363618 25384 80.91.229.12 (29 Jun 2011 16:06:58 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 29 Jun 2011 16:06:58 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 29 18:06:54 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QbxHx-0000P6-Rn for ged-emacs-devel@m.gmane.org; Wed, 29 Jun 2011 18:06:53 +0200 Original-Received: from localhost ([::1]:46447 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QbxHw-0005Yr-JY for ged-emacs-devel@m.gmane.org; Wed, 29 Jun 2011 12:06:52 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:41565) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QbvrF-0004tM-3s for emacs-devel@gnu.org; Wed, 29 Jun 2011 10:35:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QbvrC-0006kA-Gw for emacs-devel@gnu.org; Wed, 29 Jun 2011 10:35:12 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:58074) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QbvrB-0006jY-QS for emacs-devel@gnu.org; Wed, 29 Jun 2011 10:35:10 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QbvrA-0008RU-1d for emacs-devel@gnu.org; Wed, 29 Jun 2011 16:35:08 +0200 Original-Received: from 38.98.147.133 ([38.98.147.133]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 29 Jun 2011 16:35:08 +0200 Original-Received: from tzz by 38.98.147.133 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 29 Jun 2011 16:35:08 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 38 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 38.98.147.133 X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Mail-Copies-To: never User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:R9zraR7iOBqxRDuc4eGpJ9yNZA8= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:141178 Archived-At: On Wed, 29 Jun 2011 20:59:10 +0900 Daiki Ueno wrote: DU> Ted Zlatanov writes: >> I would appreciate it if you were more specific about "does not work" by >> either filing a bug or explaining. Obviously it works for me and Lars, >> who tested it. Similarly, since you wrote EPA/EPG, your advice on >> reducing complexity when we use it is greatly appreciated but you don't >> give us any here. DU> I have too many minor comments to list here, but at least duplicate code DU> regarding stashfile should be simplified by supplying a custom DU> passphrase-callback and calling epg-{encrypt,decrypt}-string. Currently DU> it's really hard to understand what the code does. I am attaching an auth-source.el patch based on the plstore.el code. It simplifies things greatly. I have one suggestion, that `epa-passphrase-callback-function' should take an extra detail string, as shown in my patch: (defun auth-source-passphrase-callback-function (context key-id handback &optional sym-detail) "Exactly like `epa-passphrase-callback-function' but takes an extra SYM-DETAIL parameter which will be printed at the end of the symmetric passphrase prompt." ... That makes it possible to prompt for "passphrase for file xyz tokens:" instead of just "passphrase for file xyz:" (I think the latter is confusing to the user). Obviously that's not strictly needed since I can write my own function as you see. If you could review the new code, I would appreciate any comments you may have. Ted