BIO_new_fp

Wrap a stdio FILE* in a BIO_s_file() BIO.

Synopsis

Declared in <openssl/bio.h>

BIO*
BIO_new_fp(
    FILE* stream,
    int close_flag);

Return Value

New file BIO, or NULL on error.

Parameters

NameDescription
streamFILE handle to associate with the BIO.
close_flagBIO_CLOSE to fclose stream when the BIO is freed, or BIO_NOCLOSE.