summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2013-10-14 13:44:09 +0400
committerMaxim Dounin <mdounin@mdounin.ru>2013-10-14 13:44:09 +0400
commit87a607a031cb42289d01768239d58abcb439b8ff (patch)
treeb9fc6f97e7dd142f68ce1b31e815768f3308266e /src
parent5a63dcc5d7bde5be49952affec1eaa4aa9d2ceb8 (diff)
downloadnginx-87a607a031cb42289d01768239d58abcb439b8ff.tar.gz
nginx-87a607a031cb42289d01768239d58abcb439b8ff.tar.bz2
SSL: fixed build with OpenSSL 0.9.7.
SSL_get_rbio() and SSL_get_wbio() functions used to get non-const pointer in OpenSSL 0.9.7, hence an explicit cast added to drop const qualifier.
Diffstat (limited to 'src')
-rw-r--r--src/event/ngx_event_openssl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/event/ngx_event_openssl.c b/src/event/ngx_event_openssl.c
index cd8f0e711..df8f7e1a3 100644
--- a/src/event/ngx_event_openssl.c
+++ b/src/event/ngx_event_openssl.c
@@ -548,8 +548,8 @@ ngx_ssl_info_callback(const ngx_ssl_conn_t *ssl_conn, int where, int ret)
* added to wbio, and set buffer size.
*/
- rbio = SSL_get_rbio(ssl_conn);
- wbio = SSL_get_wbio(ssl_conn);
+ rbio = SSL_get_rbio((ngx_ssl_conn_t *) ssl_conn);
+ wbio = SSL_get_wbio((ngx_ssl_conn_t *) ssl_conn);
if (rbio != wbio) {
(void) BIO_set_write_buffer_size(wbio, NGX_SSL_BUFSIZE);