BIO_meth_set_destroy

Install the destroy callback invoked when a BIO of this method is freed.

Synopsis

Declared in <openssl/bio.h>

int
BIO_meth_set_destroy(
    BIO_METHOD* biom,
    int(* destroy)(BIO*));

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
biomMethod being configured.
destroyCallback that releases method-specific state for a BIO; may be NULL.