Lines Matching defs:bytes
364 size_t bytes, max_bytes;
371 while ((bytes = BIO_ctrl_pending(ssl_io->bio_ext)) > 0) {
372 /* bytes contains how many SSL encrypted bytes we should be
375 if (bytes > max_bytes) {
382 bytes = max_bytes;
384 if (bytes > sizeof(buffer))
385 bytes = sizeof(buffer);
387 /* BIO_read() is guaranteed to return all the bytes that
389 ret = BIO_read(ssl_io->bio_ext, buffer, bytes);
390 i_assert(ret == (int)bytes);
392 /* we limited number of read bytes to plain_output's
395 sent = o_stream_send(ssl_io->plain_output, buffer, bytes);
407 i_assert(sent == (ssize_t)bytes);
439 size_t bytes, size;
443 while ((bytes = BIO_ctrl_get_write_guarantee(ssl_io->bio_ext)) > 0) {
444 /* bytes contains how many bytes we can write to bio_ext */
445 ssl_io->plain_input->real_stream->try_alloc_limit = bytes;
463 if (size > bytes)
464 size = bytes;
472 if (bytes == 0 && !bytes_read && ssl_io->want_read) {