]> git.eshelyaron.com Git - emacs.git/commit
Fix version numbers for some GnuTLS features
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 4 Aug 2017 00:57:24 +0000 (17:57 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 4 Aug 2017 01:36:15 +0000 (18:36 -0700)
commite8ca0c5e16a6887691ee3db739abfdba25e0d578
treecee63ad775d7996718a745a46e646d591a02eaa1
parentddc1ff58dec92a782b233d97a254fc41c1c887eb
Fix version numbers for some GnuTLS features

Problem reported by Glenn Morris (Bug#27708#58).
* src/gnutls.c (HAVE_GNUTLS_X509_SYSTEM_TRUST):
New macro.  Use it instead of low-level version number checks.
(HAVE_GNUTLS_AEAD): Move here from gnutls.h, and rename from
HAVE_GNUTLS3_AEAD.  All uses changed.  Indent preprocessor lines.
* src/gnutls.h (HAVE_GNUTLS3_CIPHER, HAVE_GNUTLS3_DIGEST)
(HAVE_GNUTLS3_HMAC): Remove, since these were available
before GnuTLS 3.0.0 and the code checks them only if HAVE_GNUTLS3
is defined.  Remove all uses; this simplifies the code a bit.
src/gnutls.c
src/gnutls.h