Mercurial > hg > nginx
diff src/http/modules/ngx_http_proxy_module.c @ 6591:04d8d1f85649
SSL: ngx_ssl_ciphers() to set list of ciphers.
This patch moves various OpenSSL-specific function calls into the
OpenSSL module and introduces ngx_ssl_ciphers() to make nginx more
crypto-library-agnostic.
author | Tim Taubert <tim@timtaubert.de> |
---|---|
date | Wed, 15 Jun 2016 21:05:30 +0100 |
parents | 1d0e03db9f8e |
children | 63991ab67b3a |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_proxy_module.c Thu Jun 16 20:55:11 2016 +0300 +++ b/src/http/modules/ngx_http_proxy_module.c Wed Jun 15 21:05:30 2016 +0100 @@ -4323,13 +4323,9 @@ } } - if (SSL_CTX_set_cipher_list(plcf->upstream.ssl->ctx, - (const char *) plcf->ssl_ciphers.data) - == 0) + if (ngx_ssl_ciphers(cf, plcf->upstream.ssl, &plcf->ssl_ciphers, 0) + != NGX_OK) { - ngx_ssl_error(NGX_LOG_EMERG, cf->log, 0, - "SSL_CTX_set_cipher_list(\"%V\") failed", - &plcf->ssl_ciphers); return NGX_ERROR; }