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: Sat, 15 Jul 2017 22:22:14 +0300 Message-ID: <83mv85ec9l.fsf@gnu.org> References: <1500135245-29120-1-git-send-email-eggert@cs.ucla.edu> <83shhxek2j.fsf@gnu.org> <87zic5ecsa.fsf@lifelogs.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1500146595 8579 195.159.176.226 (15 Jul 2017 19:23:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 15 Jul 2017 19:23:15 +0000 (UTC) Cc: eggert@cs.ucla.edu, 27708@debbugs.gnu.org To: Ted Zlatanov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 15 21:23:10 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 1dWSef-0001h7-7Y for geb-bug-gnu-emacs@m.gmane.org; Sat, 15 Jul 2017 21:23:05 +0200 Original-Received: from localhost ([::1]:43054 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dWSek-0007jd-K9 for geb-bug-gnu-emacs@m.gmane.org; Sat, 15 Jul 2017 15:23:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36483) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dWSef-0007jY-6F for bug-gnu-emacs@gnu.org; Sat, 15 Jul 2017 15:23:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dWSec-0002tY-1t for bug-gnu-emacs@gnu.org; Sat, 15 Jul 2017 15:23:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:37973) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dWSeb-0002tS-Ux for bug-gnu-emacs@gnu.org; Sat, 15 Jul 2017 15:23:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dWSeb-0006rL-Mt for bug-gnu-emacs@gnu.org; Sat, 15 Jul 2017 15:23:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 15 Jul 2017 19:23:01 +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.150014654626307 (code B ref 27708); Sat, 15 Jul 2017 19:23:01 +0000 Original-Received: (at 27708) by debbugs.gnu.org; 15 Jul 2017 19:22:26 +0000 Original-Received: from localhost ([127.0.0.1]:40650 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dWSe1-0006qE-U2 for submit@debbugs.gnu.org; Sat, 15 Jul 2017 15:22:26 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45476) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dWSe0-0006q0-Hc for 27708@debbugs.gnu.org; Sat, 15 Jul 2017 15:22:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dWSds-0002Pe-7H for 27708@debbugs.gnu.org; Sat, 15 Jul 2017 15:22:19 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:35227) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dWSds-0002PY-4G; Sat, 15 Jul 2017 15:22:16 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2247 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dWSdq-0000la-J9; Sat, 15 Jul 2017 15:22:16 -0400 In-reply-to: <87zic5ecsa.fsf@lifelogs.com> (message from Ted Zlatanov on Sat, 15 Jul 2017 15:11:01 -0400) 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:134599 Archived-At: > From: Ted Zlatanov > Cc: Paul Eggert , 27708@debbugs.gnu.org > Date: Sat, 15 Jul 2017 15:11:01 -0400 > > On Sat, 15 Jul 2017 19:33:40 +0300 Eli Zaretskii wrote: > > EZ> If we want to support the new APIs only starting with GnuTLS 3.4.0, > EZ> then this is a step in the right direction. But is that the intent? > EZ> Most of the functions we need are available in much older versions, > EZ> and others since 3.2.0. Only a few appeared in 3.4.0. So it might > EZ> also make sense to make our code more fine-grained, not less, if we > EZ> want to make as many of these APIs available on as many platforms as > EZ> possible. > > EZ> But I'm not sure what was Ted's intent, and what we want as a project. > > Exactly, and I replied on emacs-devel in the same vein. I'd like to > ensure people on 3.2.x have as much functionality as possible because > they may not be able to upgrade quickly. I see your point, but in that case the code needs "more work", since in quite a few places the Lisp primitives you wrote mix up functions available in very old GnuTLS versions with one or two that are only available in latest versions. To be able to support older versions of the library, we need graceful degradation, and that hasn't been coded. All we can easily do with the current code is return nil instead of useful information, but that doesn't strike me as "graceful". > A good starting point is > https://www.gnutls.org/manual/html_node/Cryptographic-API.html which > will show the ebb and flow of the API since the 2.x versions. Alas, the GnuTLS manual doesn't say for each function in what version it was introduced, it does so only for some of them.