* This callback function is executed when OpenSSL encounters an extended * client hello with a server name indication extension ("SNI", cf. RFC 6066). */
| 2263 | * client hello with a server name indication extension ("SNI", cf. RFC 6066). |
| 2264 | */ |
| 2265 | int 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 | /* |
nothing calls this directly
no test coverage detected