]> git.eshelyaron.com Git - emacs.git/commit
Get the Gnutls code compiling on Fedora 30
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 23 Aug 2019 08:11:12 +0000 (01:11 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 23 Aug 2019 08:12:22 +0000 (01:12 -0700)
commit49a8c8506a8477fd27ba924f14aa196e0d0813f9
tree6f8d118d37bdc16b27e191fa61979eda79cb7b38
parent27988f136c35396e0ef1e865f5a0c0a0bf20358a
Get the Gnutls code compiling on Fedora 30

The recent changes caused the build to fail on Fedora 30 when built
with --enable-gcc-warnings, among other things with diagnostics that
gnutls_compression_get and gnutls_compression_get_name are deprecated
(this started with GnuTLS 3.6).  Fix this by refusing to call these
obsolescent and now-dummy functions in GnuTLS 3.6 and later.  However,
this is just a temporary workaround to get the build working; a real
fix is needed, as network-stream-tests fail.
* src/gnutls.c (HAVE_GNUTLS_COMPRESSION_GET): New macro.
(gnutls_compression_get, gnutls_compression_get_name):
Define only if HAVE_GNUTLS_COMPRESSION_GET.
(init_gnutls_functions): Load the two functions only if
HAVE_GNUTLS_COMPRESSION_GET.
(emacs_gnutls_certificate_export_pem): Use alloca instead of xmalloc.
(Fgnutls_peer_status): Just return "NULL" if the functions
are deprecated.
(Fgnutls_format_certificate): Fix pointer signedness glitches.
* src/process.c: Fix spacing.
src/gnutls.c
src/process.c