Set the callback invoked when the last structural reference to an ENGINE is released.
Declared in <openssl/engine.h>
[[deprecated]]
int
ENGINE_set_destroy_function(
ENGINE* e,
ENGINE_GEN_INT_FUNC_PTR destroy_f);
Deprecated. Use of this entity is allowed but discouraged.
1 on success, or 0 on failure.
| Name | Description |
|---|---|
| e | ENGINE whose destroy hook is replaced. |
| destroy_f | Function called to tear down e, or NULL to clear. |