From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Josh Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Add option to ERC to make all connections use SSL. Date: Sat, 2 Aug 2014 12:11:47 -0700 Message-ID: References: <87zjfqiokt.fsf@lifelogs.com> <87mwbnu6kf.fsf@lifelogs.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11330672c5533404ffaa4866 X-Trace: ger.gmane.org 1407006762 5127 80.91.229.3 (2 Aug 2014 19:12:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 2 Aug 2014 19:12:42 +0000 (UTC) Cc: "emacs-devel@gnu.org" To: Vibhav Pant Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Aug 02 21:12:35 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XDejK-0000HM-OQ for ged-emacs-devel@m.gmane.org; Sat, 02 Aug 2014 21:12:34 +0200 Original-Received: from localhost ([::1]:45644 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XDejK-0001Dn-4E for ged-emacs-devel@m.gmane.org; Sat, 02 Aug 2014 15:12:34 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39144) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XDejB-0001Dd-0D for emacs-devel@gnu.org; Sat, 02 Aug 2014 15:12:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XDej4-0005wZ-4e for emacs-devel@gnu.org; Sat, 02 Aug 2014 15:12:24 -0400 Original-Received: from mail-oi0-f48.google.com ([209.85.218.48]:50787) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XDej3-0005wQ-VK for emacs-devel@gnu.org; Sat, 02 Aug 2014 15:12:18 -0400 Original-Received: by mail-oi0-f48.google.com with SMTP id h136so3609209oig.35 for ; Sat, 02 Aug 2014 12:12:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-type; bh=+9Ama7LaFZ4VVHKOBO/ZwCM+iNl7whN5bzZw/lAY3kQ=; b=GbKOb19hK+0oWdJbAvzhtm/EUFSRFdOfPEmDf1Q2NLOft6xJGV0RmyKDuUKK62NKjc YDhWyEnmQcH75fl7mfsRplFXT2QbWUwgJMrU+Ze/fp4ZLVRI2OCmn4oBKyaMsPcYGeDv ZbhrtIKCNyU6cT7FhouRUm16tonarfjd49hy2QvrDg7LfGdIahlZHotOUYQlXmXLgmTS 8suRlx0MhHb2a3DwtxWxRZjf6WM+imbQg0ytoj20QFjjBUTeC6JlURx62YQh4xCCRPrQ rsOhkLaRBnH4tH5xg/mHdKvg2uLZh6t3nRrwF2ZW8cG/TCAbkgRWJduIEHWMQ2b7WbN4 0Dhw== X-Gm-Message-State: ALoCoQnU1OeLtdq/D5ADC5UhmwUaGSn9lCAKJAdfWExQVMZ061BMlSxeUyjluwF/9ZbDkAP58fVB X-Received: by 10.60.70.106 with SMTP id l10mr19403535oeu.54.1407006737250; Sat, 02 Aug 2014 12:12:17 -0700 (PDT) Original-Received: by 10.202.74.84 with HTTP; Sat, 2 Aug 2014 12:11:47 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: xamYte8LdGUph5ky6_Z4UC_rSYs X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.218.48 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:173392 Archived-At: --001a11330672c5533404ffaa4866 Content-Type: text/plain; charset=UTF-8 On Sat, Aug 2, 2014 at 10:47 AM, Vibhav Pant wrote: > > Is there a way to specify it per server? > Agreed. I have redone the patch and added some more features: > 1. erc-ssl-servers: Alist of servers (ADDRESS PORT) for which ERC will > always connect to using SSL. > 2. erc-use-ssl: If non-nill, all connections will be made using SSL. > 3. erc-ssl-blacklist: Alist of server ERC will connect to without SSL. > Only useful when erc-use-ssl is non-nil. This seems likely to interact poorly with the existing server to port mappings in `erc-server-alist'. Perhaps the information provided by the items above could be specified in e-s-a instead, for example by accepting multiple PORTS arguments of the form (:ssl-ports a b c) and (:non-ssl-ports x y z) and attempting connections in the order in which they appeared. jlf --001a11330672c5533404ffaa4866 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On S= at, Aug 2, 2014 at 10:47 AM, Vibhav Pant <vibhavp@gmail.com>= wrote:
> Is there a way to speci= fy it per server?
Agreed. I have redone the patch and added some more features:
1. erc-ssl-servers: Alist of servers (ADDRESS PORT) for which ERC will
always connect to using SSL.
2. erc-use-ssl: If non-nill, all connections will be made using SSL.
3. erc-ssl-blacklist: Alist of server ERC will connect to without SSL.
Only useful when erc-use-ssl is non-nil.

This seems likely to interact poorly with the existing= server to port mappings=C2=A0
in `erc-serv= er-alist'. =C2=A0Perhaps the information provided by the items above=C2= =A0
could be specified in e-s-a instead, for example= by accepting multiple=C2=A0
PORTS argument= s of the form (:ssl-ports a b c) and (:non-ssl-ports x y z)=C2=A0
and attempting connections in the order in which they appeared.

jlf
--001a11330672c5533404ffaa4866--