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: can emacs use the mac os x keychain? Date: Wed, 28 Jul 2010 09:53:03 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <871vanu08g.fsf@lifelogs.com> References: <370a1897-25aa-418f-9631-1570dfa99de3@z7g2000yqb.googlegroups.com> <87633kaess.fsf@lifelogs.com> <8d7c78ee-6ba8-448a-8f86-3d585e1af77f@u32g2000vbc.googlegroups.com> <87vd8z2myy.fsf@lifelogs.com> <01ea3506-d715-491d-b360-3abf34e98013@i31g2000yqm.googlegroups.com> <87r5iq1hjk.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1280328799 6735 80.91.229.12 (28 Jul 2010 14:53:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 28 Jul 2010 14:53:19 +0000 (UTC) To: Emacs Development , Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 28 16:53:17 2010 Return-path: Envelope-to: ged-emacs-devel@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 1Oe80S-0004Dq-Pu for ged-emacs-devel@m.gmane.org; Wed, 28 Jul 2010 16:53:17 +0200 Original-Received: from localhost ([127.0.0.1]:48660 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oe80S-0003zN-F4 for ged-emacs-devel@m.gmane.org; Wed, 28 Jul 2010 10:53:16 -0400 Original-Received: from [140.186.70.92] (port=58103 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oe80L-0003yL-Ex for emacs-devel@gnu.org; Wed, 28 Jul 2010 10:53:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oe80J-0002CX-UE for emacs-devel@gnu.org; Wed, 28 Jul 2010 10:53:09 -0400 Original-Received: from chirelay1o.jumptrading.com ([38.98.147.153]:48934 helo=chirelay1.jumptrading.com) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oe80J-0002C9-Qw for emacs-devel@gnu.org; Wed, 28 Jul 2010 10:53:07 -0400 Original-Received: from chirelay1.jumptrading.com (unknown [127.0.0.1]) by chirelay1.jumptrading.com (Symantec Mail Security) with ESMTP id 8B470320049 for ; Wed, 28 Jul 2010 09:53:05 -0500 (CDT) X-AuditID: 26629395-a6e2bbb00000048c-37-4c504451979e Original-Received: from chiexchange02.w2k.jumptrading.com (unknown [38.98.147.140]) by chirelay1.jumptrading.com (Symantec Mail Security) with ESMTP id 63A462DC006 for ; Wed, 28 Jul 2010 09:53:05 -0500 (CDT) Original-Received: from internalsmtp.w2k.jumptrading.com (10.2.4.29) by chiexchange02.w2k.jumptrading.com (10.2.4.71) with Microsoft SMTP Server id 8.1.291.1; Wed, 28 Jul 2010 09:53:04 -0500 Original-Received: from tzlatanov-ubuntu-desktop.jumptrading.com ([10.2.14.81]) by internalsmtp.w2k.jumptrading.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 28 Jul 2010 09:53:04 -0500 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" In-Reply-To: <87r5iq1hjk.fsf@lifelogs.com> (Ted Zlatanov's message of "Mon, 26 Jul 2010 08:47:27 -0500") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) X-OriginalArrivalTime: 28 Jul 2010 14:53:04.0703 (UTC) FILETIME=[9552CCF0:01CB2E64] X-Brightmail-Tracker: AAAAAA== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:127933 Archived-At: On Mon, 26 Jul 2010 08:47:27 -0500 Ted Zlatanov wrote:=20 TZ> On Sat, 24 Jul 2010 20:36:18 -0700 (PDT) vm user wrote:=20 vu> On Jul 1, 12:20=A0pm, Ted Zlatanov wrote: >>> Unless there's a helper program or support inside Emacs (the latter is >>> unlikely IMO) it's not possible to query this API from within Emacs. vu> I am quite an ignorant in these things, but does the following help? vu> http://log.scifihifi.com/post/55837387/simple-iphone-keychain-code TZ> That seems useful. I think auth-source needs a general protocol to talk TZ> to helper applications when Emacs itself doesn't support it. This can TZ> be tricky because of the security implications of passing passwords. TZ> EPG does it well but I don't know the specifics. So there's really TZ> three parts: TZ> 1) define a helper protocol to pass auth request parameters in the TZ> environment somehow TZ> 2) read the password back securely TZ> 3) write an implementation that works with the Mac OS X keychain Adrian, is there any chance that the NS Emacs port can provide those keychain functions through an ELisp layer? It would make it easier and more secure to get user passwords, plus users wouldn't need to install the helper program. I don't know if there are any linking issues with that, so cc-ing emacs-devel as well. Thanks Ted