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: Testing the gnutls support Date: Mon, 11 Oct 2010 12:25:53 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87zkuk7iam.fsf@lifelogs.com> References: <87r5g0x0fd.fsf@lifelogs.com> <83mxqnmqqy.fsf@gnu.org> <8762xalkgg.fsf@lifelogs.com> <87zkuk96ab.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1286817991 2415 80.91.229.12 (11 Oct 2010 17:26:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 11 Oct 2010 17:26:31 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 11 19:26:29 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 1P5M8q-0005o1-Ea for ged-emacs-devel@m.gmane.org; Mon, 11 Oct 2010 19:26:28 +0200 Original-Received: from localhost ([127.0.0.1]:49795 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P5M8p-0002GK-LC for ged-emacs-devel@m.gmane.org; Mon, 11 Oct 2010 13:26:27 -0400 Original-Received: from [140.186.70.92] (port=47964 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P5M8V-00025e-Vv for emacs-devel@gnu.org; Mon, 11 Oct 2010 13:26:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P5M8Q-0000n7-2l for emacs-devel@gnu.org; Mon, 11 Oct 2010 13:26:07 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:40793) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P5M8P-0000mc-PN for emacs-devel@gnu.org; Mon, 11 Oct 2010 13:26:02 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1P5M8O-0005Z1-CZ for emacs-devel@gnu.org; Mon, 11 Oct 2010 19:26:00 +0200 Original-Received: from 38.98.147.130 ([38.98.147.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 11 Oct 2010 19:26:00 +0200 Original-Received: from tzz by 38.98.147.130 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 11 Oct 2010 19:26:00 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 28 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 38.98.147.130 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" User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:mw9MOxV+iWoNRBG1j8qV/8eF73s= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:131611 Archived-At: On Mon, 11 Oct 2010 18:25:25 +0200 Lars Magne Ingebrigtsen wrote: LMI> Ted Zlatanov writes: >> I think this should be a file of certificates instead, which users can >> encrypt with EPA, or maybe store with the Secrets API. But that leads >> me back to auth-source.el since it already has this kind of logic in >> it. WDYT about depending on auth-source.el for GnuTLS interactions? >> I'm divided because OTOH gnutls.el is a low-level wrapper and a >> dependency on auth-source.el will bring in other baggage. LMI> Perhaps auth-source should split the Secrets API stuff out into a LMI> separate library, and then both gnutls.el and auth-source.el could both LMI> use it? I mean the more general logic for "here's a host name and a protocol and some search criteria, find some authentication tokens." That's really 90% of auth-source.el and it seems that I would reimplement most of it if gnutls.el did its own handling of certificate storage. I think I'll change the auth-source API, since I'll be rewriting at least some of that library. It may make sense to make the query language more powerful, handle get/change/delete operations on any search results, and make the authentication tokens more than just strings (they'll probably embed all the information needed for a search, acting like database table rows). I'll add a layer for backward compatibility, of course. Ted