From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ben Key Newsgroups: gmane.emacs.devel Subject: Re: Modifying Emacs to use the Mac OS X Keychain Services Date: Sat, 28 May 2011 08:00:20 -0500 Message-ID: References: <8762ov84k3.fsf@gmx.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=00151747698c2890ab04a455a4d4 X-Trace: dough.gmane.org 1306587651 19196 80.91.229.12 (28 May 2011 13:00:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 28 May 2011 13:00:51 +0000 (UTC) Cc: tzz@lifelogs.com, Emacs-devel@gnu.org To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat May 28 15:00:47 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 1QQJ8I-0003sT-4p for ged-emacs-devel@m.gmane.org; Sat, 28 May 2011 15:00:46 +0200 Original-Received: from localhost ([::1]:50216 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QQJ8H-00008b-Qd for ged-emacs-devel@m.gmane.org; Sat, 28 May 2011 09:00:45 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:43754) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QQJ8E-00008G-Tz for Emacs-devel@gnu.org; Sat, 28 May 2011 09:00:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QQJ8D-0005Kl-Jl for Emacs-devel@gnu.org; Sat, 28 May 2011 09:00:42 -0400 Original-Received: from mail-bw0-f41.google.com ([209.85.214.41]:44255) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QQJ8D-0005Kc-Ba for Emacs-devel@gnu.org; Sat, 28 May 2011 09:00:41 -0400 Original-Received: by bwz17 with SMTP id 17so2405182bwz.0 for ; Sat, 28 May 2011 06:00:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=5H4AL6dY06dENZM6qfs6xC6lP4/EyxngB9SC8Ale7pc=; b=Q9FjV1nHEpBuhJIJvB6kuBvg9ah9y7/0nUQ3bnom0KxBmS0cvJF+OtYbHaMEbuLTSc hTnBtslKpN0Ch+mlKwR/MJkq9j92NchJw+0NSZeJwSB4jdYwOes6JdzmbDqXFZDWSZ3B 94sqHaH5/594Ldeh/iURqee+l7cO3RhSw+AiM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=AJcoyCIka6QTEbc/V7VOt1qG+Ip5JXMXbDBMnWdLx0Xug35VP2YY2iN0EEtIMTiIsg kfci7ES2pquQQwJxfhL2xphOO0FAvtmZxYUDcWFmtKgSBr7ymGASOKBj1oqTBK1gHfXo Z9cSManjpwS9UNz2TzOh1lh2fjb/prfpnUxjc= Original-Received: by 10.204.130.24 with SMTP id q24mr2644205bks.74.1306587640139; Sat, 28 May 2011 06:00:40 -0700 (PDT) Original-Received: by 10.204.52.19 with HTTP; Sat, 28 May 2011 06:00:20 -0700 (PDT) In-Reply-To: <8762ov84k3.fsf@gmx.de> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.214.41 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:139832 Archived-At: --00151747698c2890ab04a455a4d4 Content-Type: text/plain; charset=ISO-8859-1 On Sat, May 28, 2011 at 6:09 AM, Michael Albinus wrote: 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. > > First, to give a little background. Several months ago there was a request to have auth-source.el use the Mac OS X keychain functions (see http://lists.gnu.org/archive/html/emacs-devel/2011-03/msg00486.html). These functions are documented at http://developer.apple.com/library/mac/#documentation/Security/Conceptual/keychainServConcepts/03tasks/tasks.html. I agreed to do it but then got busy and later forgot about it. I want to finally keep my promise this weekend. When I started looking into what would be needed to complete this task the first thing I noticed is that auth-source.el makes use of the functions in secrets.el I mentioned if the user customizes the auth-sources variable to include the secrets API. Since the Keychain Services API provides functionality similar to that provided by the org.freedesktop.secrets interface I figured that secrets.el would be a logical place to put the change. Putting the code there also makes it available to packages other than Gnus. Of course I could just define another authentication source in auth-source.el as you suggest. I thought that extending secrets.el was the more logical choice since much like the org.freedesktop.secrets interface, the Keychain Services API provides a Login key chain along with the possibility of using an application defined keychain. I am willing to be over ruled though. Which approach should I take? Whichever approach I take, I may need some help writing the Lisp code necessary for my change. While I know enough Lisp to perform simple tasks, I am definitely NOT a Lisp programmer. --00151747698c2890ab04a455a4d4 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Sat, May 28, 2011 at 6:09 AM, Michael Albinus <michael.albinus@gmx.de>= wrote:

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.


First, t= o give a little background.=A0 Several months ago there was a request to ha= ve auth-source.el use the Mac OS X keychain functions (see http://list= s.gnu.org/archive/html/emacs-devel/2011-03/msg00486.html).=A0 These fun= ctions are documented at http://developer.apple.com/library/mac/#documentation/Security/Conceptual/= keychainServConcepts/03tasks/tasks.html.=A0 I agreed to do it but then = got busy and later forgot about it.=A0 I want to finally keep my promise th= is weekend.

When I started looking into what would be needed to complete this task = the first thing I noticed is that auth-source.el makes use of the functions= in secrets.el I mentioned if the user customizes the auth-sources variable= to include the secrets API.=A0 Since the Keychain Services API provides fu= nctionality similar to that provided by the org.freedesktop.secrets interfa= ce I figured that secrets.el would be a logical place to put the change.=A0= Putting the code there also makes it available to packages other than Gnus= .=A0 Of course I could just define another authentication source in auth-so= urce.el as you suggest.

I thought that extending secrets.el was the more logical choice since m= uch like the org.freedesktop.secrets interface, the Keychain Services API p= rovides a Login key chain along with the possibility of using an applicatio= n defined keychain.

I am willing to be over ruled though.

Which approach should I ta= ke?=A0 Whichever approach I take, I may need some help writing the Lisp cod= e necessary for my change.=A0 While I know enough Lisp to perform simple ta= sks, I am definitely NOT a Lisp programmer.



--00151747698c2890ab04a455a4d4--