Lines Matching refs:left
306 size_t len, left, align = 0; in tls_default_read_n() local
314 left = rb->left; in tls_default_read_n()
322 if (left == 0) in tls_default_read_n()
343 memmove(pkt, rl->packet, len + left); in tls_default_read_n()
354 if (left == 0 && extend) { in tls_default_read_n()
361 if (left > 0 && n > left) in tls_default_read_n()
362 n = left; in tls_default_read_n()
366 if (left >= n) { in tls_default_read_n()
368 rb->left = left - n; in tls_default_read_n()
393 while (left < n) { in tls_default_read_n()
406 ret = BIO_read(bio, pkt + len + left, max - left); in tls_default_read_n()
432 rb->left = left; in tls_default_read_n()
434 if (len + left == 0) in tls_default_read_n()
438 left += bioread; in tls_default_read_n()
445 if (n > left) in tls_default_read_n()
446 n = left; /* makes the while condition false */ in tls_default_read_n()
452 rb->left = left - n; in tls_default_read_n()
465 size_t left, len; in tls_record_app_data_waiting() local
474 left = TLS_BUFFER_get_left(rbuf); in tls_record_app_data_waiting()
476 if (left < SSL3_RT_HEADER_LENGTH) in tls_record_app_data_waiting()
491 if (left < SSL3_RT_HEADER_LENGTH + len) in tls_record_app_data_waiting()
1472 size_t left, written; in tls_free() local
1480 left = TLS_BUFFER_get_left(rbuf); in tls_free()
1481 if (left > 0) { in tls_free()
1486 ret = BIO_write_ex(rl->next, rbuf->buf + rbuf->offset, left, &written); in tls_free()