From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] GnuTLS support on Woe32 Date: Mon, 02 May 2011 14:47:40 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87zkn4sx43.fsf@lifelogs.com> References: <87ipvwl1nx.wl%claudio.bley@gmail.com> <87bp11imgb.wl%claudio.bley@gmail.com> <8739mc5nes.fsf@lifelogs.com> <87ipuubao6.fsf@lifelogs.com> <87fwpjfkkz.fsf@lifelogs.com> <87bp072fb1.fsf@lifelogs.com> <874o5vimm5.fsf@lifelogs.com> <87zknjmcyk.fsf@lifelogs.com> <87sjta2zvp.fsf@lifelogs.com> <87liyzglkh.fsf@lifelogs.com> <4DB77682.1070605@gmail.com> <8762q04ba1.fsf@lifelogs.com> <87hb9dufao.fsf@lifelogs.com> <87oc3kudag.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1304365681 4035 80.91.229.12 (2 May 2011 19:48:01 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 2 May 2011 19:48:01 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 02 21:47:58 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 1QGz65-0001Ea-48 for ged-emacs-devel@m.gmane.org; Mon, 02 May 2011 21:47:57 +0200 Original-Received: from localhost ([::1]:52713 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QGz64-00025P-Nj for ged-emacs-devel@m.gmane.org; Mon, 02 May 2011 15:47:56 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:60018) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QGz61-00025J-Tw for emacs-devel@gnu.org; Mon, 02 May 2011 15:47:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QGz60-0000M9-Qt for emacs-devel@gnu.org; Mon, 02 May 2011 15:47:53 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:49020) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QGz60-0000M3-GC for emacs-devel@gnu.org; Mon, 02 May 2011 15:47:52 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QGz5z-0001BE-ER for emacs-devel@gnu.org; Mon, 02 May 2011 21:47:51 +0200 Original-Received: from 38.98.147.130 ([38.98.147.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 02 May 2011 21:47:51 +0200 Original-Received: from tzz by 38.98.147.130 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 02 May 2011 21:47:51 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 51 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 38.98.147.130 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" User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:aYDdTOzkENDE7KjiBPRlXa92Ro8= 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:138992 Archived-At: On Mon, 2 May 2011 21:38:52 +0200 Juanma Barranquero wrote: JB> 2011/5/2 Ted Zlatanov : >> OK with me, just make sure you log it :) JB> Hm, thanks for bringing this up. >> My hope is that gnutls.el won't be used directly and >> `open-network-stream' will be used instead, to avoid the mess of >> starttls/gnutls-cli/openssl special process calls we had before. JB> From a package developer's POV, how do you test whether GnuTLS is JB> available with open-network-stream? You shouldn't care generally, and if you do, network-stream.el should provide the necessary introspection. So I'll provide whatever information network-stream.el needs, but want to avoid making gnutls.el a standalone networking library. >> So this problem is isolated to `open-network-stream' and Lars should >> decide how he wants to handle it, IMO.  If he wants `gnutls-available-p' >> I'll write it. JB> Oh, that function is just DEFUN ("gnutls-available-p", Fgnutls_available_p Sgnutls_available_p, 0, 0, 0, doc: /* Return t if GnuTLS is available in this Emacs session. */) (void) { #ifdef WINDOWSNT Lisp_Object found = Fassq (Qgnutls_dll, Vlibrary_cache); if (CONSP (found)) return XCDR (found); else return init_gnutls_functions () ? Qt : Qnil; #else return Qnil #endif } I think that would return Qnil for non-WINDOWSNT cases? And maybe it should be called gnutls-dll-available-p, so then we can say (defun gnutls-available-p () "..." (and (gnutls-dll-available-p) (fboundp 'gnutls-boot) ...etc...)) Ted