BIO_ctrl_pending - Find out how much bytes are buffered in a BIO
size_t BIO_ctrl_pending(BIO *bio);
BIO_ctrl_pending() returns the number of bytes buffered in a
When bio is NULL, the OpenSSL library calls assert().
The following return values can occur:
The number of bytes pending the BIO.