Lines Matching refs:nr_bytes
237 static int php_openssl_handle_ssl_error(php_stream *stream, int nr_bytes, bool is_init) /* {{{ */ in php_openssl_handle_ssl_error() argument
240 int err = SSL_get_error(sslsock->ssl_handle, nr_bytes); in php_openssl_handle_ssl_error()
260 if (nr_bytes == 0) { in php_openssl_handle_ssl_error()
2054 int nr_bytes = 0; in php_openssl_sockop_io() local
2102 nr_bytes = SSL_read(sslsock->ssl_handle, buf, (int)count); in php_openssl_sockop_io()
2107 nr_bytes = 0; in php_openssl_sockop_io()
2112 nr_bytes = SSL_write(sslsock->ssl_handle, buf, (int)count); in php_openssl_sockop_io()
2121 if (nr_bytes <= 0) { in php_openssl_sockop_io()
2124 int err = SSL_get_error(sslsock->ssl_handle, nr_bytes ); in php_openssl_sockop_io()
2125 retry = php_openssl_handle_ssl_error(stream, nr_bytes, 0); in php_openssl_sockop_io()
2159 int err = SSL_get_error(sslsock->ssl_handle, nr_bytes); in php_openssl_sockop_io()
2182 if (nr_bytes > 0) { in php_openssl_sockop_io()
2183 php_stream_notify_progress_increment(PHP_STREAM_CONTEXT(stream), nr_bytes, 0); in php_openssl_sockop_io()
2191 return 0 > nr_bytes ? 0 : nr_bytes; in php_openssl_sockop_io()
2193 size_t nr_bytes = 0; in php_openssl_sockop_io() local
2197 nr_bytes = php_stream_socket_ops.read(stream, buf, count); in php_openssl_sockop_io()
2199 nr_bytes = php_stream_socket_ops.write(stream, buf, count); in php_openssl_sockop_io()
2202 return nr_bytes; in php_openssl_sockop_io()