Changeset c0fc11e in mod_gnutls for src/gnutls_sni.h


Ignore:
Timestamp:
Nov 5, 2018, 2:20:54 AM (15 months ago)
Author:
Fiona Klute <fiona.klute@…>
Branches:
debian/master, master
Children:
d4c1a4e
Parents:
7ff6c6c
Message:

Separate functions for default SNI and loading virtual host credentials

The default SNI method using gnutls_server_name_get() won't be
necessary with early SNI parsing, but needs to remain available as a
fallback for old GnuTLS versions.

Loading virtual host credentials should happen in a separate function
so it can easily happen in pre or post client hello hooks alike.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gnutls_sni.h

    r7ff6c6c rc0fc11e  
    2121                     const unsigned char *data, unsigned size);
    2222
     23
     24/**
     25 * Wrapper for gnutls_server_name_get(): Retrieve SNI data from the
     26 * TLS session associated with the connection, store it in a string
     27 * allocated from the connection pool.
     28 *
     29 * Note that `ctxt->sni_name` is not automatically updated.
     30 *
     31 * @param ctxt the connection to read from
     32 *
     33 * @return the requested server name, or NULL.
     34 */
     35const char* mgs_server_name_get(mgs_handle_t *ctxt);
     36
    2337#endif /* __MOD_GNUTLS_SNI_H__ */
Note: See TracChangeset for help on using the changeset viewer.