Lines Matching refs:reneg

115 	php_openssl_handshake_bucket_t *reneg;  member
1024 if (sslsock->reneg->prev_handshake == 0) { in limit_handshake_reneg()
1025 sslsock->reneg->prev_handshake = now.tv_sec; in limit_handshake_reneg()
1029 elapsed_time = (now.tv_sec - sslsock->reneg->prev_handshake); in limit_handshake_reneg()
1030 sslsock->reneg->prev_handshake = now.tv_sec; in limit_handshake_reneg()
1031 sslsock->reneg->tokens -= (elapsed_time * (sslsock->reneg->limit / sslsock->reneg->window)); in limit_handshake_reneg()
1033 if (sslsock->reneg->tokens < 0) { in limit_handshake_reneg()
1034 sslsock->reneg->tokens = 0; in limit_handshake_reneg()
1036 ++sslsock->reneg->tokens; in limit_handshake_reneg()
1039 if (sslsock->reneg->tokens > sslsock->reneg->limit) { in limit_handshake_reneg()
1044 sslsock->reneg->should_close = 1; in limit_handshake_reneg()
1064 sslsock->reneg->should_close = 0; in limit_handshake_reneg()
1115 sslsock->reneg = (void*)pemalloc(sizeof(php_openssl_handshake_bucket_t), in init_server_reneg_limit()
1119 sslsock->reneg->limit = limit; in init_server_reneg_limit()
1120 sslsock->reneg->window = window; in init_server_reneg_limit()
1121 sslsock->reneg->prev_handshake = 0; in init_server_reneg_limit()
1122 sslsock->reneg->tokens = 0; in init_server_reneg_limit()
1123 sslsock->reneg->should_close = 0; in init_server_reneg_limit()
1881 if (sslsock->reneg && sslsock->reneg->should_close) { in php_openssl_sockop_io()
2071 if (sslsock->reneg) { in php_openssl_sockop_close()
2072 pefree(sslsock->reneg, php_stream_is_persistent(stream)); in php_openssl_sockop_close()