Mercurial > hg > nginx
comparison src/event/ngx_event_openssl.c @ 3961:4048aa055411
fix build by gcc46 with -Wunused-value option
patch by Maxim Dounin
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 22 Jul 2011 10:43:50 +0000 |
parents | 0832a6997227 |
children | df2ae4bc7415 |
comparison
equal
deleted
inserted
replaced
3960:0832a6997227 | 3961:4048aa055411 |
---|---|
1714 u_char *p; | 1714 u_char *p; |
1715 uint32_t hash; | 1715 uint32_t hash; |
1716 ngx_int_t rc; | 1716 ngx_int_t rc; |
1717 ngx_shm_zone_t *shm_zone; | 1717 ngx_shm_zone_t *shm_zone; |
1718 ngx_slab_pool_t *shpool; | 1718 ngx_slab_pool_t *shpool; |
1719 ngx_connection_t *c; | |
1720 ngx_rbtree_node_t *node, *sentinel; | 1719 ngx_rbtree_node_t *node, *sentinel; |
1721 ngx_ssl_session_t *sess; | 1720 ngx_ssl_session_t *sess; |
1722 ngx_ssl_sess_id_t *sess_id; | 1721 ngx_ssl_sess_id_t *sess_id; |
1723 ngx_ssl_session_cache_t *cache; | 1722 ngx_ssl_session_cache_t *cache; |
1724 u_char buf[NGX_SSL_MAX_SESSION_SIZE]; | 1723 u_char buf[NGX_SSL_MAX_SESSION_SIZE]; |
1725 | 1724 #if (NGX_DEBUG) |
1726 c = ngx_ssl_get_connection(ssl_conn); | 1725 ngx_connection_t *c; |
1726 #endif | |
1727 | 1727 |
1728 hash = ngx_crc32_short(id, (size_t) len); | 1728 hash = ngx_crc32_short(id, (size_t) len); |
1729 *copy = 0; | 1729 *copy = 0; |
1730 | 1730 |
1731 #if (NGX_DEBUG) | |
1732 c = ngx_ssl_get_connection(ssl_conn); | |
1733 | |
1731 ngx_log_debug2(NGX_LOG_DEBUG_EVENT, c->log, 0, | 1734 ngx_log_debug2(NGX_LOG_DEBUG_EVENT, c->log, 0, |
1732 "ssl get session: %08XD:%d", hash, len); | 1735 "ssl get session: %08XD:%d", hash, len); |
1736 #endif | |
1733 | 1737 |
1734 shm_zone = SSL_CTX_get_ex_data(SSL_get_SSL_CTX(ssl_conn), | 1738 shm_zone = SSL_CTX_get_ex_data(SSL_get_SSL_CTX(ssl_conn), |
1735 ngx_ssl_session_cache_index); | 1739 ngx_ssl_session_cache_index); |
1736 | 1740 |
1737 cache = shm_zone->data; | 1741 cache = shm_zone->data; |