I'm unable to find a function to get the size of a BIO.  I can read the
whole file until BIO_eof() and then call BIO_tell(), but I can't believe
there is no way to get the size without reading the whole thing.  Surely
there must be another way.

Hmm, if there existed a BIO_seek that let you seek from the end instead of
the beginning, that would work, but I don't see that.

Perhaps we need to add a BIO_C_FILE_SIZE and a BIO_filesize() to go with it:

#define BIO_filesize(b)    (int)BIO_ctrl(b,BIO_C_FILE_SIZE,0,NULL)

Phillip

Reply via email to