comparison src/http/modules/ngx_http_ssl_module.c @ 7973:3443c02ca1d1

SSL: $ssl_curve (ticket #2135). The variable contains a negotiated curve used for the handshake key exchange process. Known curves are listed by their names, unknown ones are shown in hex. Note that for resumed sessions in TLSv1.2 and older protocols, $ssl_curve contains the curve used during the initial handshake, while in TLSv1.3 it contains the curve used during the session resumption (see the SSL_get_negotiated_group manual page for details). The variable is only meaningful when using OpenSSL 3.0 and above. With older versions the variable is empty.
author Sergey Kandaurov <pluknet@nginx.com>
date Mon, 01 Nov 2021 18:09:34 +0300
parents db6b630e6086
children e32b48848add 5c86189a1c1b
comparison
equal deleted inserted replaced
7972:284f03d6f154 7973:3443c02ca1d1
339 { ngx_string("ssl_cipher"), NULL, ngx_http_ssl_static_variable, 339 { ngx_string("ssl_cipher"), NULL, ngx_http_ssl_static_variable,
340 (uintptr_t) ngx_ssl_get_cipher_name, NGX_HTTP_VAR_CHANGEABLE, 0 }, 340 (uintptr_t) ngx_ssl_get_cipher_name, NGX_HTTP_VAR_CHANGEABLE, 0 },
341 341
342 { ngx_string("ssl_ciphers"), NULL, ngx_http_ssl_variable, 342 { ngx_string("ssl_ciphers"), NULL, ngx_http_ssl_variable,
343 (uintptr_t) ngx_ssl_get_ciphers, NGX_HTTP_VAR_CHANGEABLE, 0 }, 343 (uintptr_t) ngx_ssl_get_ciphers, NGX_HTTP_VAR_CHANGEABLE, 0 },
344
345 { ngx_string("ssl_curve"), NULL, ngx_http_ssl_variable,
346 (uintptr_t) ngx_ssl_get_curve, NGX_HTTP_VAR_CHANGEABLE, 0 },
344 347
345 { ngx_string("ssl_curves"), NULL, ngx_http_ssl_variable, 348 { ngx_string("ssl_curves"), NULL, ngx_http_ssl_variable,
346 (uintptr_t) ngx_ssl_get_curves, NGX_HTTP_VAR_CHANGEABLE, 0 }, 349 (uintptr_t) ngx_ssl_get_curves, NGX_HTTP_VAR_CHANGEABLE, 0 },
347 350
348 { ngx_string("ssl_session_id"), NULL, ngx_http_ssl_variable, 351 { ngx_string("ssl_session_id"), NULL, ngx_http_ssl_variable,