Changeset a14cf5c in mod_gnutls


Ignore:
Timestamp:
Oct 26, 2018, 2:37:35 PM (13 months ago)
Author:
Fiona Klute <fiona.klute@…>
Branches:
debian/master, master
Children:
04753db8
Parents:
20c3f7b
Message:

Store SNI hostname in mod_gnutls' connection context

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • include/mod_gnutls.h.in

    r20c3f7b ra14cf5c  
    216216        /* GnuTLS Session handle */
    217217    gnutls_session_t session;
     218    /** Server name requested via SNI if any, or NULL. */
     219    const char *sni_name;
    218220        /* module input status */
    219221    apr_status_t input_rc;
  • src/gnutls_hooks.c

    r20c3f7b ra14cf5c  
    10121012                  "%s: client requested server '%s'.",
    10131013                  __func__, sni_name);
     1014    ctxt->sni_name = sni_name;
    10141015
    10151016    /* Search for vhosts matching connection parameters and the
  • src/gnutls_util.c

    r20c3f7b ra14cf5c  
    148148        /* Default, unconditionally changed in proxy setup functions */
    149149        ctxt->is_proxy = GNUTLS_ENABLED_FALSE;
     150        /* Other default values */
     151        ctxt->sni_name = NULL;
    150152    }
    151153    return ctxt;
Note: See TracChangeset for help on using the changeset viewer.