diff options
author | Vladimir Homutov <vl@nginx.com> | 2021-10-14 11:46:23 +0300 |
---|---|---|
committer | Vladimir Homutov <vl@nginx.com> | 2021-10-14 11:46:23 +0300 |
commit | a9f4f25b72c39653795dfb4b1f13b55625fb9fbc (patch) | |
tree | 4e1b6722c8d032e5c2bae39a3edab1743bf92b86 /src/stream/ngx_stream_ssl_module.c | |
parent | 1db517fb71aed6d6fffc8347086f89eb29b83dea (diff) | |
download | nginx-a9f4f25b72c39653795dfb4b1f13b55625fb9fbc.tar.gz nginx-a9f4f25b72c39653795dfb4b1f13b55625fb9fbc.zip |
SSL: added $ssl_alpn_protocol variable.
The variable contains protocol selected by ALPN during handshake and
is empty otherwise.
Diffstat (limited to 'src/stream/ngx_stream_ssl_module.c')
-rw-r--r-- | src/stream/ngx_stream_ssl_module.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/stream/ngx_stream_ssl_module.c b/src/stream/ngx_stream_ssl_module.c index b7350002c..0e42e080a 100644 --- a/src/stream/ngx_stream_ssl_module.c +++ b/src/stream/ngx_stream_ssl_module.c @@ -266,6 +266,9 @@ static ngx_stream_variable_t ngx_stream_ssl_vars[] = { { ngx_string("ssl_server_name"), NULL, ngx_stream_ssl_variable, (uintptr_t) ngx_ssl_get_server_name, NGX_STREAM_VAR_CHANGEABLE, 0 }, + { ngx_string("ssl_alpn_protocol"), NULL, ngx_stream_ssl_variable, + (uintptr_t) ngx_ssl_get_alpn_protocol, NGX_STREAM_VAR_CHANGEABLE, 0 }, + { ngx_string("ssl_client_cert"), NULL, ngx_stream_ssl_variable, (uintptr_t) ngx_ssl_get_certificate, NGX_STREAM_VAR_CHANGEABLE, 0 }, |