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: SHA, MD, and openssl Date: Mon, 09 Dec 2013 08:07:06 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <878uvuw4ud.fsf@flea.lifelogs.com> References: <83mwkbyw6v.fsf@gnu.org> <52A4DE34.7060407@cs.ucla.edu> <877gbfvu4u.fsf@flea.lifelogs.com> Reply-To: emacs-devel@gnu.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1386594377 1284 80.91.229.3 (9 Dec 2013 13:06:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 9 Dec 2013 13:06:17 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 09 14:06:23 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Vq0XW-0002qk-Ea for ged-emacs-devel@m.gmane.org; Mon, 09 Dec 2013 14:06:22 +0100 Original-Received: from localhost ([::1]:43594 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vq0XV-0004un-Uk for ged-emacs-devel@m.gmane.org; Mon, 09 Dec 2013 08:06:21 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56456) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vq0XM-0004kD-2q for emacs-devel@gnu.org; Mon, 09 Dec 2013 08:06:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vq0XH-0000wI-B5 for emacs-devel@gnu.org; Mon, 09 Dec 2013 08:06:12 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:55313) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vq0XH-0000w9-4n for emacs-devel@gnu.org; Mon, 09 Dec 2013 08:06:07 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Vq0XF-0002j1-Nw for emacs-devel@gnu.org; Mon, 09 Dec 2013 14:06:05 +0100 Original-Received: from c-98-229-61-72.hsd1.ma.comcast.net ([98.229.61.72]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 09 Dec 2013 14:06:05 +0100 Original-Received: from tzz by c-98-229-61-72.hsd1.ma.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 09 Dec 2013 14:06:05 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 52 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-98-229-61-72.hsd1.ma.comcast.net 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" Mail-Copies-To: never User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux) Cancel-Lock: sha1:dFny7l2cfPVZa4rLpPeaLC3Ajf8= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:166227 Archived-At: On Sun, 08 Dec 2013 17:46:09 -0500 Ted Zlatanov wrote: TZ> On Sun, 08 Dec 2013 13:01:40 -0800 Paul Eggert wrote: PE> Eli Zaretskii wrote: >>> However, isn't it true that openssl has some legal "issues" with >>> patents and with its license, and shouldn't we prefer libnettle for >>> those reasons? PE> I'm not aware of any patent issues for SHA or MD5. PE> As for as license, Emacs is linking against a library PE> that is normally distributed with the major components of PE> the operating system, so that part of the GPL applies. PE> It'd make sense for Emacs to use gnutls, nettle, libgcrypt, PE> etc. if available and if the performance is good. PE> This has been suggested on the gnulib list and patches PE> along those lines would be gratefully accepted. PE> See, for example: PE> http://lists.gnu.org/archive/html/bug-gnulib/2013-12/msg00024.html PE> http://lists.gnu.org/archive/html/bug-gnulib/2013-12/msg00026.html PE> http://lists.gnu.org/archive/html/bug-gnulib/2013-12/msg00036.html TZ> I wrote the full integration with libnettle+libhogweed as a patch (with TZ> tests, and bringing in all the interesting ciphers). It later turned TZ> out that GnuTLS, already a requirement, exposes all that at the C level TZ> in passthrough functions, so libnettle and libhogweed are not even a TZ> requirement. But that's an implementation detail, since GnuTLS requires TZ> libnettle and libhogweed anyway. TZ> Stefan rejected the patch because he wants to move the GnuTLS TZ> integration to a FFI layer[1]. I don't know when I'll have time to TZ> implement that myself so any help is welcome. TZ> [1] https://lists.gnu.org/archive/html/emacs-devel/2013-10/msg00168.html Stefan, please comment on the commit "trunk r115420: Use libcrypto's checksum implementations if available, for speed." It's a very similar commit to my proposed patch in that it brings in a new library dependency. If r115420 is acceptable, I have to ask that you reconsider my libnettle+libhogweed patch without FFI, as I presented it earlier. I can try to rewrite it to just use the GnuTLS passthrough functions so we don't even have new library dependencies, but you previously said that was not enough. I think getting it into trunk before the code freeze, either way, would be really helpful. I can commit to working on the FFI integration after the code freeze, for the next release. Thanks Ted