From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.erc.general,gmane.emacs.devel Subject: Re: STARTTLS for erc Date: Thu, 23 Jun 2011 07:24:16 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87r56krb0v.fsf@lifelogs.com> References: Reply-To: erc-discuss@gnu.org NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1308835690 7926 80.91.229.12 (23 Jun 2011 13:28:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 23 Jun 2011 13:28:10 +0000 (UTC) Cc: emacs-devel@gnu.org To: erc-discuss@gnu.org Original-X-From: erc-discuss-bounces+sf-erc-help=m.gmane.org@gnu.org Thu Jun 23 15:28:06 2011 Return-path: Envelope-to: sf-erc-help@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 1QZjwz-0006ar-Sv for sf-erc-help@m.gmane.org; Thu, 23 Jun 2011 15:28:06 +0200 Original-Received: from localhost ([::1]:34742 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZjwy-0004qz-MG for sf-erc-help@m.gmane.org; Thu, 23 Jun 2011 09:28:04 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:42932) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZj31-0005J1-FM for erc-discuss@gnu.org; Thu, 23 Jun 2011 08:30:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QZj2x-0007Ib-Ky for erc-discuss@gnu.org; Thu, 23 Jun 2011 08:30:15 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:56128) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZj2x-0007IU-7Z for erc-discuss@gnu.org; Thu, 23 Jun 2011 08:30:11 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QZj2t-0002rS-CI for erc-discuss@gnu.org; Thu, 23 Jun 2011 14:30:07 +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 ; Thu, 23 Jun 2011 14:30:07 +0200 Original-Received: from tzz by 38.98.147.133 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 23 Jun 2011 14:30:07 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: erc-discuss@gnu.org Original-Lines: 39 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:g320XRodvtlU1/zEl+zBCh/AMaY= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-BeenThere: erc-discuss@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: ERC Discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: erc-discuss-bounces+sf-erc-help=m.gmane.org@gnu.org Original-Sender: erc-discuss-bounces+sf-erc-help=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.erc.general:1323 gmane.emacs.devel:140919 Archived-At: On Thu, 23 Jun 2011 02:54:52 +0200 Lars Magne Ingebrigtsen wrote: LMI> So you have to know in advance that the server supports STARTTLS or not, LMI> which is kinda, er, stupid. LMI> However. After logging in, the servers seem to output a capability list LMI> of sort during the login greeting. But at that point it's too late to LMI> get STARTTLS support going. *sigh* LMI> So erc could close the connection, and then restart it, now with LMI> STARTTLS. But ircd logins are notoriously slow, so that's totally LMI> icky. I'd make "no" the default because that STARTTLS support is rare. LMI> So perhaps something like the following would work? If erc sees that LMI> the server supports STARTTLS, then it will store this data for future LMI> reference. The next login will look up this data, and if the server LMI> supports STARTTLS, it'll do STARTTLS. LMI> But where would this per-server data be stored? It could be in auth-source, together with the user name and password which I am supposed to add eventually (I posted a patch on the emacs-bugs list a month or two ago and haven't had the time to apply it and test it). If you want, go ahead and use that patch. I would make the STARTTLS preference a "tls" key with a "yes/no/opportunistic" value, with "no" or missing meaning no STARTTLS should be done. Otherwise you could store the STARTTLS preference in the server definition of ERC itself. LMI> And this would be somewhat brittle. If a server goes from one type LMI> (supporting STARTTLS) to another (not supporting STARTTLS), it might LMI> mean that the next login might fail. I think that's really rare, unless you're hitting a DNS round-robin. Ted