MCPcopy Create free account
hub / github.com/apache/httpd / ssl_callback_ServerNameIndication

Function ssl_callback_ServerNameIndication

modules/ssl/ssl_engine_kernel.c:2265–2271  ·  view source on GitHub ↗

* This callback function is executed when OpenSSL encounters an extended * client hello with a server name indication extension ("SNI", cf. RFC 6066). */

Source from the content-addressed store, hash-verified

2263 * client hello with a server name indication extension ("SNI", cf. RFC 6066).
2264 */
2265int ssl_callback_ServerNameIndication(SSL *ssl, int *al, modssl_ctx_t *mctx)
2266{
2267 conn_rec *c = (conn_rec *)SSL_get_app_data(ssl);
2268 apr_status_t status = init_vhost(c, ssl, NULL);
2269
2270 return (status == APR_SUCCESS)? SSL_TLSEXT_ERR_OK : SSL_TLSEXT_ERR_NOACK;
2271}
2272
2273#if OPENSSL_VERSION_NUMBER >= 0x10101000L && !defined(LIBRESSL_VERSION_NUMBER)
2274/*

Callers

nothing calls this directly

Calls 1

init_vhostFunction · 0.85

Tested by

no test coverage detected