commit | 5ae1ce28afe318da19e076780c718e5c3b2e60cf | [log] [tgz] |
---|---|---|
author | Maxim Dounin <mdounin@mdounin.ru> | Mon Feb 25 16:42:05 2019 +0300 |
committer | Maxim Dounin <mdounin@mdounin.ru> | Mon Feb 25 16:42:05 2019 +0300 |
tree | 8e6d5e6d0625c5d867c5ef03527705b5ecbb53ae | |
parent | b55b9420ce8e69e645d994538957422d4f2d1298 [diff] |
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.