summaryrefslogtreecommitdiff
path: root/src/mod_mbedtls.c
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2021-02-09 13:24:24 -0500
committerGlenn Strauss <gstrauss@gluelogic.com>2021-02-09 13:24:24 -0500
commit46269cf3a3577a9a068829366e6f6077cf7a3888 (patch)
tree4278a8498b834e353dbcc1992bbd14f20f78d522 /src/mod_mbedtls.c
parent457d78c6e134463434d8489b4a665bd8835bce28 (diff)
downloadlighttpd-git-46269cf3a3577a9a068829366e6f6077cf7a3888.tar.gz
[mod_mbedtls] preproc wrap ssl_parse_client_hello
wrap ssl_parse_client_hello() with preprocessor definitions
Diffstat (limited to 'src/mod_mbedtls.c')
-rw-r--r--src/mod_mbedtls.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mod_mbedtls.c b/src/mod_mbedtls.c
index 4ec82e17..6352c733 100644
--- a/src/mod_mbedtls.c
+++ b/src/mod_mbedtls.c
@@ -1966,7 +1966,11 @@ connection_write_cq_ssl (connection *con, chunkqueue *cq, off_t max_bytes)
}
+#ifdef MBEDTLS_SSL_SERVER_NAME_INDICATION
+#ifdef MBEDTLS_SSL_ALPN
static int ssl_parse_client_hello( mbedtls_ssl_context *ssl, handler_ctx *hctx );
+#endif
+#endif
static int
@@ -3847,6 +3851,8 @@ mod_mbedtls_ssl_conf_proto (server *srv, plugin_config_socket *s, const buffer *
: mbedtls_ssl_conf_min_version(s->ssl_ctx,MBEDTLS_SSL_MAJOR_VERSION_3,v);
}
+#ifdef MBEDTLS_SSL_SERVER_NAME_INDICATION
+#ifdef MBEDTLS_SSL_ALPN
/*
* XXX: forked from mbedtls
*
@@ -4106,3 +4112,5 @@ static int ssl_parse_client_hello( mbedtls_ssl_context *ssl, handler_ctx *hctx )
return( 0 );
}
+#endif /* MBEDTLS_SSL_ALPN */
+#endif /* MBEDTLS_SSL_SERVER_NAME_INDICATION */