]> git.kaiwu.me - nginx.git/commitdiff
SSL: fixed build with OpenSSL 0.9.7.
authorMaxim Dounin <mdounin@mdounin.ru>
Mon, 14 Oct 2013 09:44:09 +0000 (13:44 +0400)
committerMaxim Dounin <mdounin@mdounin.ru>
Mon, 14 Oct 2013 09:44:09 +0000 (13:44 +0400)
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.

src/event/ngx_event_openssl.c

index cd8f0e7115623a64561ee6a3eeedf76d34a4818e..df8f7e1a30b9d0eb2dbfe802df1f9c1822f4d451 100644 (file)
@@ -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);