Lines Matching refs:reneg

170 	php_openssl_handshake_bucket_t *reneg;  member
1082 if (sslsock->reneg->prev_handshake == 0) { in php_openssl_limit_handshake_reneg()
1083 sslsock->reneg->prev_handshake = now.tv_sec; in php_openssl_limit_handshake_reneg()
1087 elapsed_time = (now.tv_sec - sslsock->reneg->prev_handshake); in php_openssl_limit_handshake_reneg()
1088 sslsock->reneg->prev_handshake = now.tv_sec; in php_openssl_limit_handshake_reneg()
1089 sslsock->reneg->tokens -= (elapsed_time * (sslsock->reneg->limit / sslsock->reneg->window)); in php_openssl_limit_handshake_reneg()
1091 if (sslsock->reneg->tokens < 0) { in php_openssl_limit_handshake_reneg()
1092 sslsock->reneg->tokens = 0; in php_openssl_limit_handshake_reneg()
1094 ++sslsock->reneg->tokens; in php_openssl_limit_handshake_reneg()
1097 if (sslsock->reneg->tokens > sslsock->reneg->limit) { in php_openssl_limit_handshake_reneg()
1101 sslsock->reneg->should_close = 1; in php_openssl_limit_handshake_reneg()
1119 sslsock->reneg->should_close = 0; in php_openssl_limit_handshake_reneg()
1163 sslsock->reneg = (void*)pemalloc(sizeof(php_openssl_handshake_bucket_t), in php_openssl_init_server_reneg_limit()
1167 sslsock->reneg->limit = limit; in php_openssl_init_server_reneg_limit()
1168 sslsock->reneg->window = window; in php_openssl_init_server_reneg_limit()
1169 sslsock->reneg->prev_handshake = 0; in php_openssl_init_server_reneg_limit()
1170 sslsock->reneg->tokens = 0; in php_openssl_init_server_reneg_limit()
1171 sslsock->reneg->should_close = 0; in php_openssl_init_server_reneg_limit()
2099 if (sslsock->reneg && sslsock->reneg->should_close) { in php_openssl_sockop_io()
2294 if (sslsock->reneg) { in php_openssl_sockop_close()
2295 pefree(sslsock->reneg, php_stream_is_persistent(stream)); in php_openssl_sockop_close()