https://www.openssl.org/docs/man1.1.1/man3/i2d_PKCS7_bio.html
current:
i2d_TYPE_fp() is similar to i2d_TYPE() except it writes the encoding of the structure a to BIO bp and it returns 1 for success and 0 for failure.
Suggested edit:
i2d_TYPE_fp() is similar to i2d_TYPE() except it writes the encoding of the structure a to FILE pointer fp and it returns 1 for success and 0 for failure.
Mike