Changeset 72377cf in mod_gnutls for src/gnutls_hooks.c


Ignore:
Timestamp:
May 3, 2018, 12:23:55 PM (2 years ago)
Author:
Fiona Klute <fiona.klute@…>
Branches:
debian/master, master, proxy-ticket
Children:
2d454a2
Parents:
eaa8a9d
Message:

Always set SSL_COMPRESS_METHOD=NULL with GnuTLS >= 3.6.0

Compression support has been removed from GnuTLS with version 3.6.0,
so the gnutls_compression_get() and gnutls_compression_get_name()
functions are deprecated. Always return NULL as the compression
method. The function calls remain for older GnuTLS versions to avoid
reporting the wrong method.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gnutls_hooks.c

    reaa8a9d r72377cf  
    12511251                                         gnutls_mac_get(ctxt->session)));
    12521252
     1253#if GNUTLS_VERSION_NUMBER >= 0x030600
     1254    /* Compression support has been removed since GnuTLS 3.6.0 */
     1255    apr_table_setn(env, "SSL_COMPRESS_METHOD", "NULL");
     1256#else
    12531257    apr_table_setn(env, "SSL_COMPRESS_METHOD",
    12541258            gnutls_compression_get_name(gnutls_compression_get(ctxt->session)));
     1259#endif
    12551260
    12561261#ifdef ENABLE_SRP
Note: See TracChangeset for help on using the changeset viewer.