OpenSSL    
 Index |  openssl(1) |  ssl(3) |  crypto(3) |  HOWTO |  FIPS140 |  misc 
 
Title
FAQ
About
News
Documents
Source
Contribution
Support
Related

 

BIO_ctrl_get_read_request(3)



NAME

 BIO_ctrl_get_read_request - Find out how much bytes are were requested from the BIO


SYNOPSIS

 #include <openssl/bio.h>
 size_t BIO_ctrl_get_read_request(BIO *bio);


DESCRIPTION

BIO_ctrl_get_read_request() returns the number of bytes that were last requested from bio by a BIO_read() operation. This is useful e.g. for BIO pairs, so that the application knows how much bytes to supply to bio.


BUGS

When bio is NULL, the OpenSSL library calls assert().


RETURN VALUES

The following return values can occur:

>=0

The number of bytes requested.


SEE ALSO

bio(3), BIO_s_mem(3), BIO_new_bio_pair(3)