Lines Matching refs:reneg

200 	php_openssl_handshake_bucket_t *reneg;  member
1131 if (sslsock->reneg->prev_handshake == 0) { in php_openssl_limit_handshake_reneg()
1132 sslsock->reneg->prev_handshake = now.tv_sec; in php_openssl_limit_handshake_reneg()
1136 elapsed_time = (now.tv_sec - sslsock->reneg->prev_handshake); in php_openssl_limit_handshake_reneg()
1137 sslsock->reneg->prev_handshake = now.tv_sec; in php_openssl_limit_handshake_reneg()
1138 sslsock->reneg->tokens -= (elapsed_time * (sslsock->reneg->limit / sslsock->reneg->window)); in php_openssl_limit_handshake_reneg()
1140 if (sslsock->reneg->tokens < 0) { in php_openssl_limit_handshake_reneg()
1141 sslsock->reneg->tokens = 0; in php_openssl_limit_handshake_reneg()
1143 ++sslsock->reneg->tokens; in php_openssl_limit_handshake_reneg()
1146 if (sslsock->reneg->tokens > sslsock->reneg->limit) { in php_openssl_limit_handshake_reneg()
1150 sslsock->reneg->should_close = 1; in php_openssl_limit_handshake_reneg()
1168 sslsock->reneg->should_close = 0; in php_openssl_limit_handshake_reneg()
1212 sslsock->reneg = (void*)pemalloc(sizeof(php_openssl_handshake_bucket_t), in php_openssl_init_server_reneg_limit()
1216 sslsock->reneg->limit = limit; in php_openssl_init_server_reneg_limit()
1217 sslsock->reneg->window = window; in php_openssl_init_server_reneg_limit()
1218 sslsock->reneg->prev_handshake = 0; in php_openssl_init_server_reneg_limit()
1219 sslsock->reneg->tokens = 0; in php_openssl_init_server_reneg_limit()
1220 sslsock->reneg->should_close = 0; in php_openssl_init_server_reneg_limit()
2108 if (sslsock->reneg && sslsock->reneg->should_close) { in php_openssl_sockop_io()
2303 if (sslsock->reneg) { in php_openssl_sockop_close()
2304 pefree(sslsock->reneg, php_stream_is_persistent(stream)); in php_openssl_sockop_close()