5 BIO_ctrl_get_read_request - Find out how much bytes are were requested from the BIO
9 #include <openssl/bio.h>
11 size_t BIO_ctrl_get_read_request(BIO *bio);
15 BIO_ctrl_get_read_request() returns the number of bytes that were last
16 requested from B<bio> by a BIO_read() operation. This is useful e.g. for
17 BIO pairs, so that the application knows how much bytes to supply to B<bio>.
21 When B<bio> is NULL, the OpenSSL library calls assert().
25 The following return values can occur:
31 The number of bytes requested.
37 L<bio(3)|bio(3)>, L<BIO_s_mem(3)|BIO_s_mem(3)>,
38 L<BIO_new_bio_pair(3)|BIO_new_bio_pair(3)>