From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#27708: [PROPOSED] Simplify configuration of HAVE_GNUTLS3 etc. Date: Sun, 16 Jul 2017 19:08:45 +0300 Message-ID: <837ez8e54i.fsf@gnu.org> 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> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1500221358 22529 195.159.176.226 (16 Jul 2017 16:09:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 16 Jul 2017 16:09:18 +0000 (UTC) Cc: tzz@lifelogs.com, 27708@debbugs.gnu.org To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jul 16 18:09:13 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 1dWm6U-0005F8-Id for geb-bug-gnu-emacs@m.gmane.org; Sun, 16 Jul 2017 18:09:06 +0200 Original-Received: from localhost ([::1]:45741 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dWm6a-0008Bk-7I for geb-bug-gnu-emacs@m.gmane.org; Sun, 16 Jul 2017 12:09:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57632) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dWm6U-0008BU-G6 for bug-gnu-emacs@gnu.org; Sun, 16 Jul 2017 12:09:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dWm6Q-0003ce-Bg for bug-gnu-emacs@gnu.org; Sun, 16 Jul 2017 12:09:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:39942) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dWm6Q-0003cY-7h for bug-gnu-emacs@gnu.org; Sun, 16 Jul 2017 12:09:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dWm6Q-0006EH-2A for bug-gnu-emacs@gnu.org; Sun, 16 Jul 2017 12:09:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 16 Jul 2017 16:09: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: Original-Received: via spool by 27708-submit@debbugs.gnu.org id=B27708.150022133023925 (code B ref 27708); Sun, 16 Jul 2017 16:09:02 +0000 Original-Received: (at 27708) by debbugs.gnu.org; 16 Jul 2017 16:08:50 +0000 Original-Received: from localhost ([127.0.0.1]:42619 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dWm6D-0006Dp-PQ for submit@debbugs.gnu.org; Sun, 16 Jul 2017 12:08:49 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:38368) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dWm6C-0006Dc-0c for 27708@debbugs.gnu.org; Sun, 16 Jul 2017 12:08:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dWm62-0003EX-T6 for 27708@debbugs.gnu.org; Sun, 16 Jul 2017 12:08:42 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:47039) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dWm62-0003EQ-PT; Sun, 16 Jul 2017 12:08:38 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3089 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dWm62-00036f-Dm; Sun, 16 Jul 2017 12:08:38 -0400 In-reply-to: <6277b486-12c8-8363-cd9f-a79b6bda9304@cs.ucla.edu> (message from Paul Eggert on Sun, 16 Jul 2017 08:18:57 -0700) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:134633 Archived-At: > Cc: tzz@lifelogs.com, 27708@debbugs.gnu.org > From: Paul Eggert > Date: Sun, 16 Jul 2017 08:18:57 -0700 > > Eli Zaretskii wrote: > > if > > we want to allow as many of these APIs to be useful on as many > > platforms, we need to do more work on the code. > > One possible step forward is to use each of the APIs starting when they became > available, as opposed to the current practice of using some of them only in > GnuTLS v3 or later (even though they were available earlier). I could adjust my > proposed patch to do that, if you like. Unlike my proposed patch, this would > change Emacs behavior (but only on older GnuTLS platforms). Yes, that's what I meant, but I think this won't be useful unless we also introduce some fallbacks into the code which uses those new functions. AFAICT, it is the case in some of the new APIs that almost all of the GnuTLS functions they use are available even before v3.X, but then just one function they call needs 3.2.X or 3.4.X. This makes the entire API useless (it returns nil), which is a pity, since I'm guessing we could code some workaround or maybe provide partial functionality instead. Alas, I don't know enough about these functions to code such fallbacks.