Lines Matching refs:reneg
200 php_openssl_handshake_bucket_t *reneg; member
1127 if (sslsock->reneg->prev_handshake == 0) { in php_openssl_limit_handshake_reneg()
1128 sslsock->reneg->prev_handshake = now.tv_sec; in php_openssl_limit_handshake_reneg()
1132 elapsed_time = (now.tv_sec - sslsock->reneg->prev_handshake); in php_openssl_limit_handshake_reneg()
1133 sslsock->reneg->prev_handshake = now.tv_sec; in php_openssl_limit_handshake_reneg()
1134 sslsock->reneg->tokens -= (elapsed_time * (sslsock->reneg->limit / sslsock->reneg->window)); in php_openssl_limit_handshake_reneg()
1136 if (sslsock->reneg->tokens < 0) { in php_openssl_limit_handshake_reneg()
1137 sslsock->reneg->tokens = 0; in php_openssl_limit_handshake_reneg()
1139 ++sslsock->reneg->tokens; in php_openssl_limit_handshake_reneg()
1142 if (sslsock->reneg->tokens > sslsock->reneg->limit) { in php_openssl_limit_handshake_reneg()
1146 sslsock->reneg->should_close = 1; in php_openssl_limit_handshake_reneg()
1164 sslsock->reneg->should_close = 0; in php_openssl_limit_handshake_reneg()
1208 sslsock->reneg = (void*)pemalloc(sizeof(php_openssl_handshake_bucket_t), in php_openssl_init_server_reneg_limit()
1212 sslsock->reneg->limit = limit; in php_openssl_init_server_reneg_limit()
1213 sslsock->reneg->window = window; in php_openssl_init_server_reneg_limit()
1214 sslsock->reneg->prev_handshake = 0; in php_openssl_init_server_reneg_limit()
1215 sslsock->reneg->tokens = 0; in php_openssl_init_server_reneg_limit()
1216 sslsock->reneg->should_close = 0; in php_openssl_init_server_reneg_limit()
2104 if (sslsock->reneg && sslsock->reneg->should_close) { in php_openssl_sockop_io()
2299 if (sslsock->reneg) { in php_openssl_sockop_close()
2300 pefree(sslsock->reneg, php_stream_is_persistent(stream)); in php_openssl_sockop_close()