BIO_get_fp
BIO_get_fp(in, &dbfp);
BIO_get_fp(file, &fp);
if (BIO_get_fp(req, &fp) == 1 && fseek(fp, 0, SEEK_END) == 0) {
BIO_get_fp(in, &ffdp);