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 Subject: Re: [PATCH] GnuTLS support on Woe32 Date: Tue, 08 Mar 2011 10:14:04 +0100 Organization: Programmerer Ingebrigtsen Message-ID: References: <87ipvwl1nx.wl%claudio.bley@gmail.com> <83oc5ogp89.fsf@gnu.org> <87ipvuwslp.wl%claudio.bley@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1299575678 9566 80.91.229.12 (8 Mar 2011 09:14:38 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 8 Mar 2011 09:14:38 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Mar 08 10:14:32 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 1Pwszw-0000MG-0z for ged-emacs-devel@m.gmane.org; Tue, 08 Mar 2011 10:14:32 +0100 Original-Received: from localhost ([127.0.0.1]:49513 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pwszv-0006TL-C8 for ged-emacs-devel@m.gmane.org; Tue, 08 Mar 2011 04:14:31 -0500 Original-Received: from [140.186.70.92] (port=53274 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pwszo-0006TD-Hz for emacs-devel@gnu.org; Tue, 08 Mar 2011 04:14:27 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pwszk-00089z-5B for emacs-devel@gnu.org; Tue, 08 Mar 2011 04:14:24 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:57808) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pwszj-00089t-OA for emacs-devel@gnu.org; Tue, 08 Mar 2011 04:14:20 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Pwszg-0000EN-BM for emacs-devel@gnu.org; Tue, 08 Mar 2011 10:14:16 +0100 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 ; Tue, 08 Mar 2011 10:14:16 +0100 Original-Received: from larsi by cm-84.215.51.58.getinternet.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 08 Mar 2011 10:14:16 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 39 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: cm-84.215.51.58.getinternet.no Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEXHvbxvZGL+/v7q5uiB eXcSCwpEOTejlpO+rYSxAAACYUlEQVQ4jW2TQW8aMRCF3ZjU17VqvFcUKnFdZUm5YtXga1aKnSvb YHM1Yln//Y7Hi5KizmXFfH4zfjOGPN3Fsm0JRCJ3+W/e1f8DCwtxAsD+BctrBjamewUKQJLiHdhY 5wG8T2DZ3PAvJ4z01jEstYBDb88IHp0gjba2NN/lst1DBlcXqrH3NmawKg1fM/DhWCmotQXQvhTg EJxqwtTcHsAJ9wXYBwTZ9Q6BtV/A/EjEtrnaCkH4BNcuRsp2BbjjPNzAS5eGyPb2gor38TRYKzNY dUYYsnctKk4s0Xk3Q4tS6Eiur00GnWGRXk8Jrf/swVugGfhOpEjHD1bm7sTgf+ASvdOJtOlQTQCG ThEEt+eXhuz/FBDCqZ2A5ZHQ5vGh9Dhu2xvwABoyK4I9JHM0WQEXIYRinlF8P1MpVycEyyal+PQE aQZmCAxXcQSblIYUocygOZSHDQ+cNABS0klpCKM4r2FW3VlHAAsQ6JRDCcUFKDoOoH1ezTDJuTBc SU6kSxxm0rZrbaAYhlJcEi7rBA7bRmozYFpoyEsC4r4eklZJ99N5LbjsSQg1HuShNwa+5Qf00EqG wKElLEJPoTIwiWAwOHCYAM8gTI8kcEO/nycgAHzG4A/qi8KFEt71lNV4XQU34YSBqWw5tsyHsfQW GfSiqKXv6boSWmR/GQy8hCEb/zEOnwDuT3KpQXZ0BIXKvXNzCSvMzfu48dVY7KFiS8qK2f6t2f1W qtzWcXL737hqHS47rlCRAawCzsOmz8dGXgY83wcn4ZVAj6yo1x2ZQ3OlYaoADI4jK95mPUVPGfR/ AbA8+OgTiegrAAAAAElFTkSuQmCC Mail-Copies-To: never X-Now-Playing: Tegan and Sara's _Sainthood_: "Red Belt" User-Agent: Gnus/5.110014 (No Gnus v0.14) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:L2jvMP1t4etoxNGg0ALMBL6TUmo= 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.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:136878 Archived-At: Eli Zaretskii writes: > It should probably simply be a defcustom. I don't see how ``higher > levels of code'' could ever DTRT in this respect. If they can know > something about that, so can gnutls.el. Well, there are several issues here. 1) gnutls is still not stable, so it should not be used by people who are developers for now. The way to turn on gnutls now is to say (require 'gnutls), which I think is fine. 2) Virtually all network protocols that exist now support STARTTLS. Littering every connect function with this code (which can be rather subtle in when to use it or not (you may require that the server support it, or you want to bail out, or you may want to use opportunistically if the server does support it, but only if it's "free" to do so (i.e., gnutls is compiled in), or you may want to always have it be used opportunistically, even though it's significantly slower using starttls.el (i.e. using the external gnutls-cli program)). (That was a long sentence.) This functionality is provided by `open-protocol-stream', and the only option the user has to consider is really `proto-stream-always-use-starttls'. If the basic starttls.el library also starts doing various decisions here, it gets even more confusing. So I'd prefer that starttls.el does one thing, and one thing only: Do the grufty stuff to talk to gnutls-cli. For now, at least. This can be revisited later when the built-in gnutls stuff actually works reliably. -- (domestic pets only, the antidote for overdose, milk.) larsi@gnus.org * Lars Magne Ingebrigtsen