aboutsummaryrefslogtreecommitdiff
path: root/src/stream/ngx_stream_proxy_module.c
diff options
context:
space:
mode:
authorTim Taubert <tim@timtaubert.de>2016-06-15 21:05:30 +0100
committerTim Taubert <tim@timtaubert.de>2016-06-15 21:05:30 +0100
commit4f578bfcab740fcfbbb8824822803ad9b3f176cc (patch)
tree361da9087f06bd7eb328a82b691044a5c83a48fb /src/stream/ngx_stream_proxy_module.c
parent6e38998bacb77b1bcaa16a999a722c0c4f961b8e (diff)
downloadnginx-4f578bfcab740fcfbbb8824822803ad9b3f176cc.tar.gz
nginx-4f578bfcab740fcfbbb8824822803ad9b3f176cc.zip
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.
Diffstat (limited to 'src/stream/ngx_stream_proxy_module.c')
-rw-r--r--src/stream/ngx_stream_proxy_module.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/stream/ngx_stream_proxy_module.c b/src/stream/ngx_stream_proxy_module.c
index d4fa99492..831fdda50 100644
--- a/src/stream/ngx_stream_proxy_module.c
+++ b/src/stream/ngx_stream_proxy_module.c
@@ -1640,13 +1640,7 @@ ngx_stream_proxy_set_ssl(ngx_conf_t *cf, ngx_stream_proxy_srv_conf_t *pscf)
}
}
- if (SSL_CTX_set_cipher_list(pscf->ssl->ctx,
- (const char *) pscf->ssl_ciphers.data)
- == 0)
- {
- ngx_ssl_error(NGX_LOG_EMERG, cf->log, 0,
- "SSL_CTX_set_cipher_list(\"%V\") failed",
- &pscf->ssl_ciphers);
+ if (ngx_ssl_ciphers(cf, pscf->ssl, &pscf->ssl_ciphers, 0) != NGX_OK) {
return NGX_ERROR;
}