diff options
| author | Maxim Dounin <mdounin@mdounin.ru> | 2019-02-25 16:42:05 +0300 |
|---|---|---|
| committer | Maxim Dounin <mdounin@mdounin.ru> | 2019-02-25 16:42:05 +0300 |
| commit | 6e5a731edb6c1b8581c4b6fd2a2bf4ec0e768c24 (patch) | |
| tree | 8e6d5e6d0625c5d867c5ef03527705b5ecbb53ae /src/http/ngx_http.h | |
| parent | 9ff7ba3d00b5c4bf951551e173baddb59f2bbcff (diff) | |
| download | nginx-6e5a731edb6c1b8581c4b6fd2a2bf4ec0e768c24.tar.gz nginx-6e5a731edb6c1b8581c4b6fd2a2bf4ec0e768c24.tar.bz2 | |
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.
Diffstat (limited to 'src/http/ngx_http.h')
| -rw-r--r-- | src/http/ngx_http.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/http/ngx_http.h b/src/http/ngx_http.h index afab4f645..8b43857ee 100644 --- a/src/http/ngx_http.h +++ b/src/http/ngx_http.h @@ -88,6 +88,10 @@ void ngx_http_close_connection(ngx_connection_t *c); #if (NGX_HTTP_SSL && defined SSL_CTRL_SET_TLSEXT_HOSTNAME) int ngx_http_ssl_servername(ngx_ssl_conn_t *ssl_conn, int *ad, void *arg); #endif +#if (NGX_HTTP_SSL && defined SSL_R_CERT_CB_ERROR) +int ngx_http_ssl_certificate(ngx_ssl_conn_t *ssl_conn, void *arg); +#endif + ngx_int_t ngx_http_parse_request_line(ngx_http_request_t *r, ngx_buf_t *b); ngx_int_t ngx_http_parse_uri(ngx_http_request_t *r); |
