[nginx] SSL: fixed build with OpenSSL 0.9.7.

Maxim Dounin mdounin at mdounin.ru
Mon Oct 14 13:29:25 UTC 2013


details:   http://hg.nginx.org/nginx/rev/5b5a486bd40e
branches:  
changeset: 5423:5b5a486bd40e
user:      Maxim Dounin <mdounin at mdounin.ru>
date:      Mon Oct 14 13:44:09 2013 +0400
description:
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:

 src/event/ngx_event_openssl.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (14 lines):

diff --git a/src/event/ngx_event_openssl.c b/src/event/ngx_event_openssl.c
--- 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
              * 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);



More information about the nginx-devel mailing list