diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/gnutls.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/gnutls.h b/src/gnutls.h index 19c16867d7a..8fe4ac3e427 100644 --- a/src/gnutls.h +++ b/src/gnutls.h | |||
| @@ -29,12 +29,21 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 29 | #endif | 29 | #endif |
| 30 | 30 | ||
| 31 | #if 0x030400 <= GNUTLS_VERSION_NUMBER | 31 | #if 0x030400 <= GNUTLS_VERSION_NUMBER |
| 32 | # define HAVE_GNUTLS3_AEAD | ||
| 33 | # define HAVE_GNUTLS3_CIPHER | 32 | # define HAVE_GNUTLS3_CIPHER |
| 34 | # define HAVE_GNUTLS3_DIGEST | 33 | # define HAVE_GNUTLS3_DIGEST |
| 35 | # define HAVE_GNUTLS3_HMAC | 34 | # define HAVE_GNUTLS3_HMAC |
| 36 | #endif | 35 | #endif |
| 37 | 36 | ||
| 37 | /* Although AEAD support started in GnuTLS 3.4.0 and works in 3.5.14, | ||
| 38 | it was broken through at least GnuTLS 3.4.10; see: | ||
| 39 | https://lists.gnu.org/archive/html/emacs-devel/2017-07/msg00992.html | ||
| 40 | The relevant fix seems to have been made in GnuTLS 3.5.1; see: | ||
| 41 | https://gitlab.com/gnutls/gnutls/commit/568935848dd6b82b9315d8b6c529d00e2605e03d | ||
| 42 | So use 3.5.1 for now. */ | ||
| 43 | #if 0x030501 <= GNUTLS_VERSION_NUMBER | ||
| 44 | # define HAVE_GNUTLS3_AEAD | ||
| 45 | #endif | ||
| 46 | |||
| 38 | #include "lisp.h" | 47 | #include "lisp.h" |
| 39 | 48 | ||
| 40 | /* This limits the attempts to handshake per process (connection). It | 49 | /* This limits the attempts to handshake per process (connection). It |