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

Name

Description

stream

FILE handle to associate with the BIO.

close_flag

BIO_CLOSE to fclose stream when the BIO is freed, or BIO_NOCLOSE.

Created with MrDocs