From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.devel Subject: Re: gnus/starttls.el and net/tls.el Date: Thu, 08 Nov 2007 14:35:12 +0100 Message-ID: <87tznwq2r3.fsf@mocca.josefsson.org> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1194528935 23757 80.91.229.12 (8 Nov 2007 13:35:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 8 Nov 2007 13:35:35 +0000 (UTC) Cc: emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 08 14:35:40 2007 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.50) id 1Iq7Xn-0005sw-PV for ged-emacs-devel@m.gmane.org; Thu, 08 Nov 2007 14:35:40 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iq7Xc-0001Hu-Fr for ged-emacs-devel@m.gmane.org; Thu, 08 Nov 2007 08:35:28 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Iq7XZ-0001Hb-9D for emacs-devel@gnu.org; Thu, 08 Nov 2007 08:35:25 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Iq7XY-0001HP-Qo for emacs-devel@gnu.org; Thu, 08 Nov 2007 08:35:24 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iq7XY-0001HK-KV for emacs-devel@gnu.org; Thu, 08 Nov 2007 08:35:24 -0500 Original-Received: from yxa.extundo.com ([83.241.177.38]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Iq7XU-0003iG-Ti; Thu, 08 Nov 2007 08:35:21 -0500 Original-Received: from mocca.josefsson.org (yxa.extundo.com [83.241.177.38]) (authenticated bits=0) by yxa.extundo.com (8.13.4/8.13.4/Debian-3sarge3) with ESMTP id lA8DZDtF019526 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 8 Nov 2007 14:35:14 +0100 X-Hashcash: 1:22:071108:emacs-devel@gnu.org::qGgKL6m+v4xju0z1:H0so OpenPGP: id=B565716F; url=http://josefsson.org/key.txt X-Hashcash: 1:22:071108:rms@gnu.org::xsFF5r5cWEAu0ysJ:6GCR In-Reply-To: (Richard Stallman's message of "Wed, 07 Nov 2007 02:56:14 -0500") User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1 (gnu/linux) X-Virus-Scanned: ClamAV version 0.88.2, clamav-milter version 0.88.2 on yxa.extundo.com X-Virus-Status: Clean X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:82799 Archived-At: (I'm cc'ing emacs-devel since there appears to be other threads discussing this already.) Richard Stallman writes: > Can you tell me how these two files relate to each other? They both create a TLS encrypted network socket using external tools, but there is some differences: tls.el starts talking TLS to the server directly. starttls.el, however, does not begin talking TLS until the application calls starttls-negotiate. In other words, starttls.el allows an unencrypted phase before the encrypted phase starts. tls.el can use openssl and gnutls. starttls.el can use gnutls and a tool called 'starttls'. They serve (slightly) different purposes, but there is some code duplication. They probably should be merged eventually, but it requires some effort (especially testing on many operating systems) and I'm afraid I don't have time to work on it. /Simon