mirror of
https://github.com/apache/httpd.git
synced 2025-08-08 15:02:10 +03:00
The SNI callback already logs a debug message when the vhost
is found or no vhost matches. Log one when no name is provided by the client. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1608284 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -1900,10 +1900,10 @@ int ssl_callback_ServerNameIndication(SSL *ssl, int *al, modssl_ctx_t *mctx)
|
||||
{
|
||||
const char *servername =
|
||||
SSL_get_servername(ssl, TLSEXT_NAMETYPE_host_name);
|
||||
conn_rec *c = (conn_rec *)SSL_get_app_data(ssl);
|
||||
|
||||
if (servername) {
|
||||
conn_rec *c = (conn_rec *)SSL_get_app_data(ssl);
|
||||
if (c) {
|
||||
if (c) {
|
||||
if (servername) {
|
||||
if (ap_vhost_iterate_given_conn(c, ssl_find_vhost,
|
||||
(void *)servername)) {
|
||||
ap_log_cerror(APLOG_MARK, APLOG_DEBUG, 0, c, APLOGNO(02043)
|
||||
@@ -1933,6 +1933,11 @@ int ssl_callback_ServerNameIndication(SSL *ssl, int *al, modssl_ctx_t *mctx)
|
||||
*/
|
||||
}
|
||||
}
|
||||
else {
|
||||
ap_log_cerror(APLOG_MARK, APLOG_DEBUG, 0, c, APLOGNO(02645)
|
||||
"Server name not provided via TLS extension "
|
||||
"(using default/first virtual host)");
|
||||
}
|
||||
}
|
||||
|
||||
return SSL_TLSEXT_ERR_NOACK;
|
||||
|
Reference in New Issue
Block a user