comparison src/event/ngx_event_openssl.c @ 5423:5b5a486bd40e

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.
author Maxim Dounin <mdounin@mdounin.ru>
date Mon, 14 Oct 2013 13:44:09 +0400
parents a720f0b0e083
children 767aa37f12de
comparison
equal deleted inserted replaced
5411:5483d9e77b32 5423:5b5a486bd40e
546 * to write side of the connection by comparing rbio and wbio. 546 * to write side of the connection by comparing rbio and wbio.
547 * If they are different, we assume that it's due to buffering 547 * If they are different, we assume that it's due to buffering
548 * added to wbio, and set buffer size. 548 * added to wbio, and set buffer size.
549 */ 549 */
550 550
551 rbio = SSL_get_rbio(ssl_conn); 551 rbio = SSL_get_rbio((ngx_ssl_conn_t *) ssl_conn);
552 wbio = SSL_get_wbio(ssl_conn); 552 wbio = SSL_get_wbio((ngx_ssl_conn_t *) ssl_conn);
553 553
554 if (rbio != wbio) { 554 if (rbio != wbio) {
555 (void) BIO_set_write_buffer_size(wbio, NGX_SSL_BUFSIZE); 555 (void) BIO_set_write_buffer_size(wbio, NGX_SSL_BUFSIZE);
556 c->ssl->handshake_buffer_set = 1; 556 c->ssl->handshake_buffer_set = 1;
557 } 557 }