Mercurial > hg > nginx
comparison src/http/ngx_http.h @ 7462:be2af41d3620
SSL: variables support in ssl_certificate and ssl_certificate_key.
To evaluate variables, a request is created in the certificate callback,
and then freed. To do this without side effects on the stub_status
counters and connection state, an additional function was introduced,
ngx_http_alloc_request().
Only works with OpenSSL 1.0.2+, since there is no SSL_CTX_set_cert_cb()
in older versions.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 25 Feb 2019 16:42:05 +0300 |
parents | bdf64ae3376b |
children | 336084ff943b 38c0898b6df7 |
comparison
equal
deleted
inserted
replaced
7461:a68799465b19 | 7462:be2af41d3620 |
---|---|
86 void ngx_http_close_connection(ngx_connection_t *c); | 86 void ngx_http_close_connection(ngx_connection_t *c); |
87 | 87 |
88 #if (NGX_HTTP_SSL && defined SSL_CTRL_SET_TLSEXT_HOSTNAME) | 88 #if (NGX_HTTP_SSL && defined SSL_CTRL_SET_TLSEXT_HOSTNAME) |
89 int ngx_http_ssl_servername(ngx_ssl_conn_t *ssl_conn, int *ad, void *arg); | 89 int ngx_http_ssl_servername(ngx_ssl_conn_t *ssl_conn, int *ad, void *arg); |
90 #endif | 90 #endif |
91 #if (NGX_HTTP_SSL && defined SSL_R_CERT_CB_ERROR) | |
92 int ngx_http_ssl_certificate(ngx_ssl_conn_t *ssl_conn, void *arg); | |
93 #endif | |
94 | |
91 | 95 |
92 ngx_int_t ngx_http_parse_request_line(ngx_http_request_t *r, ngx_buf_t *b); | 96 ngx_int_t ngx_http_parse_request_line(ngx_http_request_t *r, ngx_buf_t *b); |
93 ngx_int_t ngx_http_parse_uri(ngx_http_request_t *r); | 97 ngx_int_t ngx_http_parse_uri(ngx_http_request_t *r); |
94 ngx_int_t ngx_http_parse_complex_uri(ngx_http_request_t *r, | 98 ngx_int_t ngx_http_parse_complex_uri(ngx_http_request_t *r, |
95 ngx_uint_t merge_slashes); | 99 ngx_uint_t merge_slashes); |