From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.bugs Subject: bug#27708: [PROPOSED] Simplify configuration of HAVE_GNUTLS3 etc. Date: Mon, 17 Jul 2017 11:03:45 -0400 Organization: =?UTF-8?Q?=D0=A2=D0=B5=D0=BE=D0=B4=D0=BE=D1=80_?= =?UTF-8?Q?=D0=97=D0=BB=D0=B0=D1=82=D0=B0=D0=BD=D0=BE=D0=B2?= @ Cienfuegos Message-ID: <8760ercdgu.fsf@lifelogs.com> References: <1500135245-29120-1-git-send-email-eggert@cs.ucla.edu> <83shhxek2j.fsf@gnu.org> <87zic5ecsa.fsf@lifelogs.com> <83mv85ec9l.fsf@gnu.org> <83k239ds5t.fsf@gnu.org> <6277b486-12c8-8363-cd9f-a79b6bda9304@cs.ucla.edu> <837ez8e54i.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1500304060 24377 195.159.176.226 (17 Jul 2017 15:07:40 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 17 Jul 2017 15:07:40 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) To: 27708@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 17 17:07:36 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dX7cU-00061a-HM for geb-bug-gnu-emacs@m.gmane.org; Mon, 17 Jul 2017 17:07:34 +0200 Original-Received: from localhost ([::1]:50954 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dX7ca-00067b-3q for geb-bug-gnu-emacs@m.gmane.org; Mon, 17 Jul 2017 11:07:40 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41624) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dX7a7-00040C-FL for bug-gnu-emacs@gnu.org; Mon, 17 Jul 2017 11:05:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dX7a2-0000Of-M1 for bug-gnu-emacs@gnu.org; Mon, 17 Jul 2017 11:05:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41945) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dX7a2-0000OY-IY for bug-gnu-emacs@gnu.org; Mon, 17 Jul 2017 11:05:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dX7a2-00009O-81 for bug-gnu-emacs@gnu.org; Mon, 17 Jul 2017 11:05:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <1500135245-29120-1-git-send-email-eggert@cs.ucla.edu> Resent-From: Ted Zlatanov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 17 Jul 2017 15:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27708 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.1500303861519 (code B ref -1); Mon, 17 Jul 2017 15:05:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 17 Jul 2017 15:04:21 +0000 Original-Received: from localhost ([127.0.0.1]:44622 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dX7ZM-00008C-NR for submit@debbugs.gnu.org; Mon, 17 Jul 2017 11:04:20 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:50390) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dX7ZL-000082-2c for submit@debbugs.gnu.org; Mon, 17 Jul 2017 11:04:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dX7Z9-00006S-Uc for submit@debbugs.gnu.org; Mon, 17 Jul 2017 11:04:13 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:55191) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dX7Z9-00006M-Rs for submit@debbugs.gnu.org; Mon, 17 Jul 2017 11:04:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41338) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dX7Z8-00039p-MX for bug-gnu-emacs@gnu.org; Mon, 17 Jul 2017 11:04:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dX7Z2-0008W5-Ny for bug-gnu-emacs@gnu.org; Mon, 17 Jul 2017 11:04:06 -0400 Original-Received: from [195.159.176.226] (port=45654 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dX7Z2-0008Vd-H1 for bug-gnu-emacs@gnu.org; Mon, 17 Jul 2017 11:04:00 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1dX7Yr-0003b2-2p for bug-gnu-emacs@gnu.org; Mon, 17 Jul 2017 17:03:49 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: bug-gnu-emacs@gnu.org Original-Lines: 26 Original-X-Complaints-To: usenet@blaine.gmane.org 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 Cancel-Lock: sha1:PnNoOSB5nqQxP1W2yt/5Yw+g6a4= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:134669 Archived-At: On Sun, 16 Jul 2017 19:08:45 +0300 Eli Zaretskii wrote: EZ> Yes, that's what I meant, but I think this won't be useful unless we EZ> also introduce some fallbacks into the code which uses those new EZ> functions. AFAICT, it is the case in some of the new APIs that almost EZ> all of the GnuTLS functions they use are available even before v3.X, EZ> but then just one function they call needs 3.2.X or 3.4.X. This makes EZ> the entire API useless (it returns nil), which is a pity, since I'm EZ> guessing we could code some workaround or maybe provide partial EZ> functionality instead. Alas, I don't know enough about these EZ> functions to code such fallbacks. I think the risk of providing broken or subtly insecure functionality is bigger if we do workarounds. Also the maintenance effort will be lower if we pin to specific versions instead of features. I'm inclined to take Paul's advice on this since he knows this area so well. Another point is that I'd rather not support GnuTLS 2.x for the new functionality; 2.12 is deprecated and won't get new updates according to https://lists.gnupg.org/pipermail/gnutls-devel/2016-November/008220.html so we should make an effort not to rely on it. I'd even recommend dropping 2.x support altogether in Emacs 26. So maybe Paul's approach was best after all :) Ted