From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.devel,gmane.emacs.erc.general Subject: Re: STARTTLS for erc Date: Thu, 23 Jun 2011 02:54:52 +0200 Organization: Programmerer Ingebrigtsen Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1308790544 3774 80.91.229.12 (23 Jun 2011 00:55:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 23 Jun 2011 00:55:44 +0000 (UTC) Cc: erc-discuss@gnu.org To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 23 02:55:40 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 1QZYCo-0006pb-Su for ged-emacs-devel@m.gmane.org; Thu, 23 Jun 2011 02:55:39 +0200 Original-Received: from localhost ([::1]:39159 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZYCo-0002MO-4q for ged-emacs-devel@m.gmane.org; Wed, 22 Jun 2011 20:55:38 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:37578) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZYCT-0002Ll-2X for emacs-devel@gnu.org; Wed, 22 Jun 2011 20:55:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QZYCN-0000jB-Pb for emacs-devel@gnu.org; Wed, 22 Jun 2011 20:55:16 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:39819) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZYCN-0000ix-7D for emacs-devel@gnu.org; Wed, 22 Jun 2011 20:55:11 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QZYCK-0006di-LX for emacs-devel@gnu.org; Thu, 23 Jun 2011 02:55:08 +0200 Original-Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 23 Jun 2011 02:55:08 +0200 Original-Received: from larsi by cm-84.215.51.58.getinternet.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 23 Jun 2011 02:55:08 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 44 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: cm-84.215.51.58.getinternet.no Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAElBMVEUGAwUMCQ5IWXoWGSsQ DxoIBgibAm5/AAACdUlEQVQ4jU1Uy3IjIQyUa5e75YEPCCT38PB9FTT3oTL8/69si0klkauwS42Q 1GqZtDcZvcQYq2qvyhzmnMQkvXlmX7+AJuY/HFOWXoW5MvxNDTjmQS6QVphMmQOoXcI7dAGP2DPC WSQbhvswBlBiaWEOZMpbwIkQN5meJZVY9zlQD5xjXobkqLQkS9QUl4fB4RaY2FowwA6U59mrDADh AmJcX0BY8GCwBs1TvoAGZFxAtqZTvOwC0Eo4KLOW8uVH3Sp8irNemviP34Byb2rN18yPH0AFTObt CSDJb6CJVg7ljQ5KzB/x2wy4g3a6U+pG1g/AoGeiGWqllvodY/xuaSsxkwdR+vgBJh5oIIc2tNe+ gQDuk4ZJg6zvCu7WJAsIl6Lo+wRQW+Nlwh9QgkApPTO9otFs0rAxPVDRGsErANULGBCUN8A4fWFq BuDyYQMdAGZNRiVoV3kG05gB+BF87a0y7Xj7HzhbASaR6XUBx+Rwh8IQMnZMHKY2LXJISnTD4TZB xZcbLS6p0okBtSqnKCTwikcH4fphL51b432YP75YUwaM40R81MljM9asZk+7KXjUVNI+9yEYQLJu K73fEeNGbelpujUA8mFFclo2u4gf3mSXt1IbBR6Hpac/7QQ3GHJNmJDSrmjqbktkqzE6hoIgVQLJ OwLC2oyzVcUHeyokK4ez0+31sgK6bdtgN3I4j778YGEwnUIuPx1tluesa3mMZ1Kwh+lCC4hwZ80z XAA6//T2nxDf8Zz7fIKetZxQymfD0LCDpgffelvKIJ74l/HIGuNzEW2CCJbjhiK80EDIYbXdMQPL 0cG4Z9z8i0GAsmv8zP8BIJvG44TiuqIAAAAASUVORK5CYII= Mail-Copies-To: never X-Now-Playing: Ford & Lopatin's _Channel Pressure_: "I Surrender" User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:TjWmMxcXGWy2y6sFjTbkRcsjEFk= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 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:140897 gmane.emacs.erc.general:1322 Archived-At: Lars Magne Ingebrigtsen writes: > Anybody know of a public one that has STARTTLS that I can test with? I googled a bit, and I found a few public ones. However, none of the ones I found seemed to support "CAP LS", as documented here: http://wiki.inspircd.org/STARTTLS_Documentation So you have to know in advance that the server supports STARTTLS or not, which is kinda, er, stupid. However. After logging in, the servers seem to output a capability list of sort during the login greeting. But at that point it's too late to get STARTTLS support going. *sigh* So erc could close the connection, and then restart it, now with STARTTLS. But ircd logins are notoriously slow, so that's totally icky. So perhaps something like the following would work? If erc sees that the server supports STARTTLS, then it will store this data for future reference. The next login will look up this data, and if the server supports STARTTLS, it'll do STARTTLS. But where would this per-server data be stored? And this would be somewhat brittle. If a server goes from one type (supporting STARTTLS) to another (not supporting STARTTLS), it might mean that the next login might fail. However however, the IRC servers just seem to output no data whatsoever on unknown commands, so perhaps a timeout on the STARTTLS for two seconds (or something) would be sufficient to handle that case... In any case, it all feels somewhat tacky and hacky. Anybody have better ideas? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/