BIO_set_shutdown

Set whether BIO_free() should close the underlying I/O resource.

Synopsis

Declared in <openssl/bio.h>

void
BIO_set_shutdown(
    BIO* a,
    int shut);

Parameters

NameDescription
aBIO to update.
shutNon-zero to close the underlying descriptor/handle on free; 0 to leave it open.