Changeset 7ff6c6c in mod_gnutls for configure.ac


Ignore:
Timestamp:
Nov 4, 2018, 4:55:35 PM (15 months ago)
Author:
Fiona Klute <fiona.klute@…>
Branches:
debian/master, master
Children:
c0fc11e
Parents:
99eb567
Message:

Add proof-of-concept SNI parser in a pre client hello hook

The SNI parser is complete, but right now the hook only retrieves the
SNI data and logs it. The goal is to select the right virtual host and
load ALPN parameters (and possibly others) before GnuTLS processes the
ClientHello? message. That should make different "Protocols" directives
between virtual hosts work as expected.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure.ac

    r99eb567 r7ff6c6c  
    6767AC_SEARCH_LIBS([gnutls_srp_server_get_username], [gnutls], [], [use_srp="no"])
    6868
    69 SRP_CFLAGS=""
     69GNUTLS_FEAT_CFLAGS=""
    7070if test "$use_srp" != "no"; then
    71         SRP_CFLAGS="-DENABLE_SRP=1"
     71        GNUTLS_FEAT_CFLAGS="-DENABLE_SRP=1"
     72fi
     73
     74# check if the available GnuTLS library supports raw extension parsing
     75AC_SEARCH_LIBS([gnutls_ext_raw_parse], [gnutls], [early_sni="yes"],
     76        [early_sni="no"])
     77if test "$early_sni" != "no"; then
     78        GNUTLS_FEAT_CFLAGS="${GNUTLS_FEAT_CFLAGS} -DENABLE_EARLY_SNI"
    7279fi
    7380
     
    223230AC_PATH_PROGS([HTTP_CLI], [curl wget], [no])
    224231
    225 MODULE_CFLAGS="${LIBGNUTLS_CFLAGS} ${SRP_CFLAGS} ${MSVA_CFLAGS} ${APXS_CFLAGS} ${AP_INCLUDES} ${APR_INCLUDES} ${APU_INCLUDES} ${STRICT_CFLAGS}"
     232MODULE_CFLAGS="${LIBGNUTLS_CFLAGS} ${GNUTLS_FEAT_CFLAGS} ${MSVA_CFLAGS} ${APXS_CFLAGS} ${AP_INCLUDES} ${APR_INCLUDES} ${APU_INCLUDES} ${STRICT_CFLAGS}"
    226233MODULE_LIBS="${LIBGNUTLS_LIBS}"
    227234
     
    315322echo "   * SRP Authentication:  ${use_srp}"
    316323echo "   * MSVA Client Verification:    ${use_msva}"
     324echo "   * Early SNI (experimental):    ${early_sni}"
    317325echo "   * Build documentation: ${build_doc}"
    318326echo ""
Note: See TracChangeset for help on using the changeset viewer.