Lines Matching refs:reneg
153 php_openssl_handshake_bucket_t *reneg; member
1058 if (sslsock->reneg->prev_handshake == 0) { in limit_handshake_reneg()
1059 sslsock->reneg->prev_handshake = now.tv_sec; in limit_handshake_reneg()
1063 elapsed_time = (now.tv_sec - sslsock->reneg->prev_handshake); in limit_handshake_reneg()
1064 sslsock->reneg->prev_handshake = now.tv_sec; in limit_handshake_reneg()
1065 sslsock->reneg->tokens -= (elapsed_time * (sslsock->reneg->limit / sslsock->reneg->window)); in limit_handshake_reneg()
1067 if (sslsock->reneg->tokens < 0) { in limit_handshake_reneg()
1068 sslsock->reneg->tokens = 0; in limit_handshake_reneg()
1070 ++sslsock->reneg->tokens; in limit_handshake_reneg()
1073 if (sslsock->reneg->tokens > sslsock->reneg->limit) { in limit_handshake_reneg()
1077 sslsock->reneg->should_close = 1; in limit_handshake_reneg()
1095 sslsock->reneg->should_close = 0; in limit_handshake_reneg()
1143 sslsock->reneg = (void*)pemalloc(sizeof(php_openssl_handshake_bucket_t), in init_server_reneg_limit()
1147 sslsock->reneg->limit = limit; in init_server_reneg_limit()
1148 sslsock->reneg->window = window; in init_server_reneg_limit()
1149 sslsock->reneg->prev_handshake = 0; in init_server_reneg_limit()
1150 sslsock->reneg->tokens = 0; in init_server_reneg_limit()
1151 sslsock->reneg->should_close = 0; in init_server_reneg_limit()
2018 if (sslsock->reneg && sslsock->reneg->should_close) { in php_openssl_sockop_io()
2215 if (sslsock->reneg) { in php_openssl_sockop_close()
2216 pefree(sslsock->reneg, php_stream_is_persistent(stream)); in php_openssl_sockop_close()