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: url library and GnuTLS, and Emacs-issued certificates Date: Wed, 23 Mar 2011 13:47:07 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87zkolisic.fsf@lifelogs.com> References: <87mxkojpk4.fsf@lifelogs.com> <87hbawtbq7.fsf@stupidchicken.com> <878vw8hznm.fsf_-_@lifelogs.com> <87ei5xsvl6.fsf@lifelogs.com> <87hbatofix.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1300906067 21656 80.91.229.12 (23 Mar 2011 18:47:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 23 Mar 2011 18:47:47 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 23 19:47:39 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 1Q2T5l-00083r-PT for ged-emacs-devel@m.gmane.org; Wed, 23 Mar 2011 19:47:38 +0100 Original-Received: from localhost ([127.0.0.1]:36240 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q2T5l-00072N-0r for ged-emacs-devel@m.gmane.org; Wed, 23 Mar 2011 14:47:37 -0400 Original-Received: from [140.186.70.92] (port=42571 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q2T5f-00072B-GD for emacs-devel@gnu.org; Wed, 23 Mar 2011 14:47:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q2T5d-0002td-U6 for emacs-devel@gnu.org; Wed, 23 Mar 2011 14:47:31 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:37867) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q2T5d-0002tA-Jc for emacs-devel@gnu.org; Wed, 23 Mar 2011 14:47:29 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Q2T5a-0007wK-It for emacs-devel@gnu.org; Wed, 23 Mar 2011 19:47:26 +0100 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 ; Wed, 23 Mar 2011 19:47:26 +0100 Original-Received: from tzz by 38.98.147.130 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 23 Mar 2011 19:47:26 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 38 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.110016 (No Gnus v0.16) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:ZGYcfq8fuT7jpSm1xCIPzUAm+l0= 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:137598 Archived-At: On Wed, 23 Mar 2011 14:31:02 -0400 Chong Yidong wrote: >> This work is almost done. But probably a better approach than relying >> directly on gnutls.el is to make url.el use proto-stream.el from Gnus, >> which handles most of the connection details automatically whether Emacs >> has GnuTLS support build-in or not. I looked at it in order to make the >> new GnuTLS support work properly and it seems like a good general >> facility, not just for Gnus. >> >> proto-stream.el doesn't depend on any Gnus internals, it's a standalone >> library. It could live in net/ in the Emacs repo. CY> How bout merging the open-protocol-stream code directly into CY> open-network-stream? Then we can make open-protocol-stream an alias for CY> open-network-stream, and (provide 'proto-stream) in subr.el. CY> If the Gnus developers don't object, I propose to do this. OK with me, as long as it doesn't break Gnus. I'd like to get Lars' opinion too. CY> (Also, gnutls.el should be changed to explicitly recommend that CY> applications not use it directly, How about this change (adding the second sentence): ;;; Commentary: ;; This package provides language bindings for the GnuTLS library ;; using the corresponding core functions in gnutls.c. It should NOT ;; be used directly, only through open-protocol-stream. CY> and we should merge net/tls.el and gnus/starttls.el; those two CY> packages appear to be duplicates.) Agreed, as long as Lars is OK with this. Ted