diff options
author | Ted Zlatanov <tzz@lifelogs.com> | 2017-12-20 20:12:42 -0500 |
---|---|---|
committer | Ted Zlatanov <tzz@lifelogs.com> | 2017-12-20 20:12:42 -0500 |
commit | b3f4a3a5aee93fa2f7ad2597383befbf7b242209 (patch) | |
tree | 4d23f7c05565f9d5bad946574f4a088616a39247 | |
parent | c2ae057d0e455ed40127fec931b803ff628bffb7 (diff) | |
download | emacs-b3f4a3a5aee93fa2f7ad2597383befbf7b242209.tar.gz emacs-b3f4a3a5aee93fa2f7ad2597383befbf7b242209.tar.bz2 emacs-b3f4a3a5aee93fa2f7ad2597383befbf7b242209.zip |
Special-case %DUMBFW for GnuTLS between 3.2.5 and 3.5.1
* src/gnutls.c: Introduce HAVE_GNUTLS_EXT__DUMBFW for GnuTLS >= 3.2.5.
(Fgnutls_available_p): Use it.
-rw-r--r-- | src/gnutls.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gnutls.c b/src/gnutls.c index 48ea25397a1..c21421fe557 100644 --- a/src/gnutls.c +++ b/src/gnutls.c @@ -50,6 +50,10 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */ # define HAVE_GNUTLS_EXT_GET_NAME #endif +#if GNUTLS_VERSION_NUMBER >= 0x030205 +# define HAVE_GNUTLS_EXT__DUMBFW +#endif + #ifdef HAVE_GNUTLS # ifdef WINDOWSNT @@ -2476,6 +2480,10 @@ Any GnuTLS extension with ID up to 100 # endif # endif /* HAVE_GNUTLS3 */ +# ifdef HAVE_GNUTLS_EXT__DUMBFW + capabilities = Fcons (intern("ClientHello Padding"), capabilities); +# endif + # ifdef WINDOWSNT Vlibrary_cache = Fcons (Fcons (Qgnutls, capabilities), Vlibrary_cache); # endif /* WINDOWSNT */ |