From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: Modifying Emacs to use the Mac OS X Keychain Services Date: Sat, 28 May 2011 13:09:32 +0200 Message-ID: <8762ov84k3.fsf@gmx.de> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1306580992 18541 80.91.229.12 (28 May 2011 11:09:52 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 28 May 2011 11:09:52 +0000 (UTC) Cc: tzz@lifelogs.com, Emacs-devel@gnu.org To: Ben Key Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat May 28 13:09:43 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 1QQHOn-0000js-My for ged-emacs-devel@m.gmane.org; Sat, 28 May 2011 13:09:41 +0200 Original-Received: from localhost ([::1]:43485 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QQHOm-0001fH-N1 for ged-emacs-devel@m.gmane.org; Sat, 28 May 2011 07:09:40 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:57523) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QQHOk-0001f5-75 for Emacs-devel@gnu.org; Sat, 28 May 2011 07:09:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QQHOj-0006Rs-13 for Emacs-devel@gnu.org; Sat, 28 May 2011 07:09:38 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.22]:54124) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1QQHOi-0006RY-Jr for Emacs-devel@gnu.org; Sat, 28 May 2011 07:09:36 -0400 Original-Received: (qmail invoked by alias); 28 May 2011 11:09:34 -0000 Original-Received: from p57BB9187.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.145.135] by mail.gmx.net (mp070) with SMTP; 28 May 2011 13:09:34 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1/FVK4pJZvFRFlhuXKEROfnAv5fuF8X3zmQIbeHpv JbjjJOGrjhx+GA In-Reply-To: (Ben Key's message of "Fri, 27 May 2011 21:56:04 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 213.165.64.22 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:139827 Archived-At: Ben Key writes: > Hello, Hi, > OS X Keychain Services to Emacs.=C2=A0 It looks like what I need to do is > to make changes to lisp/net/secrets.el.=C2=A0 Specifically I need to modi= fy > the functions secrets-create-item, secrets-delete-item, > secrets-get-alias, secrets-get-attributes, secrets-get-secret, > secrets-list-collections, and secrets-search-items so that on Mac OS X > they call new built in functions that use the Mac OS X Keychain > Services instead of using dbus-call-method to communicate with the > "org.freedesktop.secrets" service. secrets.el was initiated as implementation of D-Bus' org.freedesktop.secrets interface. Does there exist a a server under OS X for that? I know the Gnome (keyring) and KDE (kwallet) implementations so far, a short search does not return results for OS X. The functions in secrets.el are designed to give simple access to that interface. > Is that an accurate assessment of what needs to be done?=C2=A0 If it is, > just let me know and I will begin working on it this weekend. Could be. But I believe a more clean solution would be to implement an own package for OS X Keychain Services, which will be integrated into auth-source then. Other Lisp packages will likely call auth-source functions, instead those of secrets.el. Best regards, Michael.