Mercurial > hg > nginx-quic
comparison src/stream/ngx_stream_ssl_module.c @ 7091:82f0b8dcca27
SSL: the $ssl_client_escaped_cert variable (ticket #857).
This variable contains URL-encoded client SSL certificate. In contrast
to $ssl_client_cert, it doesn't depend on deprecated header continuation.
The NGX_ESCAPE_URI_COMPONENT variant of encoding is used, so the resulting
variable can be safely used not only in headers, but also as a request
argument.
The $ssl_client_cert variable should be considered deprecated now.
The $ssl_client_raw_cert variable will be eventually renambed back
to $ssl_client_cert.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Tue, 22 Aug 2017 15:18:10 +0300 |
parents | 2a288909abc6 |
children | 9d14931cec8c |
comparison
equal
deleted
inserted
replaced
7090:a2f5e25d6a28 | 7091:82f0b8dcca27 |
---|---|
247 | 247 |
248 { ngx_string("ssl_client_raw_cert"), NULL, ngx_stream_ssl_variable, | 248 { ngx_string("ssl_client_raw_cert"), NULL, ngx_stream_ssl_variable, |
249 (uintptr_t) ngx_ssl_get_raw_certificate, | 249 (uintptr_t) ngx_ssl_get_raw_certificate, |
250 NGX_STREAM_VAR_CHANGEABLE, 0 }, | 250 NGX_STREAM_VAR_CHANGEABLE, 0 }, |
251 | 251 |
252 { ngx_string("ssl_client_escaped_cert"), NULL, ngx_stream_ssl_variable, | |
253 (uintptr_t) ngx_ssl_get_escaped_certificate, | |
254 NGX_STREAM_VAR_CHANGEABLE, 0 }, | |
255 | |
252 { ngx_string("ssl_client_s_dn"), NULL, ngx_stream_ssl_variable, | 256 { ngx_string("ssl_client_s_dn"), NULL, ngx_stream_ssl_variable, |
253 (uintptr_t) ngx_ssl_get_subject_dn, NGX_STREAM_VAR_CHANGEABLE, 0 }, | 257 (uintptr_t) ngx_ssl_get_subject_dn, NGX_STREAM_VAR_CHANGEABLE, 0 }, |
254 | 258 |
255 { ngx_string("ssl_client_i_dn"), NULL, ngx_stream_ssl_variable, | 259 { ngx_string("ssl_client_i_dn"), NULL, ngx_stream_ssl_variable, |
256 (uintptr_t) ngx_ssl_get_issuer_dn, NGX_STREAM_VAR_CHANGEABLE, 0 }, | 260 (uintptr_t) ngx_ssl_get_issuer_dn, NGX_STREAM_VAR_CHANGEABLE, 0 }, |