ENGINE_set_destroy_function

Set the callback invoked when the last structural reference to an ENGINE is released.

Synopsis

Declared in <openssl/engine.h>

[[deprecated]]
int
ENGINE_set_destroy_function(
    ENGINE* e,
    ENGINE_GEN_INT_FUNC_PTR destroy_f);

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
eENGINE whose destroy hook is replaced.
destroy_fFunction called to tear down e, or NULL to clear.