From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: url library and GnuTLS, and Emacs-issued certificates Date: Sun, 27 Mar 2011 13:42:27 -0400 Message-ID: References: <87mxkojpk4.fsf@lifelogs.com> <87hbawtbq7.fsf@stupidchicken.com> <878vw8hznm.fsf_-_@lifelogs.com> <87ei5xsvl6.fsf@lifelogs.com> <87hbatofix.fsf@stupidchicken.com> <87ei5wpbks.fsf@stupidchicken.com> <87lj01wj8o.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1301247764 10607 80.91.229.12 (27 Mar 2011 17:42:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 27 Mar 2011 17:42:44 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Mar 27 19:42:41 2011 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 1Q3tz6-0006yy-6P for ged-emacs-devel@m.gmane.org; Sun, 27 Mar 2011 19:42:40 +0200 Original-Received: from localhost ([127.0.0.1]:40350 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q3tz5-0000XG-Gx for ged-emacs-devel@m.gmane.org; Sun, 27 Mar 2011 13:42:39 -0400 Original-Received: from [140.186.70.92] (port=41797 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q3tyz-0000Wz-HB for emacs-devel@gnu.org; Sun, 27 Mar 2011 13:42:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q3tyt-0004s1-Q8 for emacs-devel@gnu.org; Sun, 27 Mar 2011 13:42:33 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:39910) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q3tyt-0004rx-NE for emacs-devel@gnu.org; Sun, 27 Mar 2011 13:42:27 -0400 Original-Received: from cyd by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1Q3tyt-0004oq-A3 for emacs-devel@gnu.org; Sun, 27 Mar 2011 13:42:27 -0400 In-Reply-To: (Lars Magne Ingebrigtsen's message of "Sun, 27 Mar 2011 12:36:20 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.10 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:137763 Archived-At: Lars Magne Ingebrigtsen writes: > > Isn't proto-stream.el and the `network'/`network-only' keywords new in > > this version of Gnus? > > `network-only' is new. People have been using `network' as the stream > spec for nntp/nnimap since forever. nntp doesn't look like a issue, since nntp-open-connection-function is passed through an internal association list to get the connection type. As for nnimap, fair enough. This can be solved by adding `network' as a synonym to `try-starttls'. > If you just feed `open-protocol-stream' `network' without a capability > command, you get a non-upgraded connection. If you do the same with > `try-starttls' you will also not get a non-upgraded connection. > > I don't really see why the latter is clearer than the former. Explaining the meanings of the :type makes the former scheme sound more complicated: "try starttls if the :capability-command and :success and :starttls-function parameters are present, otherwise open a normal network stream". As opposed to "try starttls". But if you feel strongly about this, I won't insist; it's not an important issue. Should I bring the default back? > (But in the latter case you could error out if you do that and not > supply a `capability-command', I guess.) It would be cleaner to error out, IMO. The :success and :starttls-function parameters ought be checked also.