Bind entry point that populates an ENGINE loaded from a shared library.
Declared in <openssl/engine.h>
typedef int(* dynamic_bind_engine)(ENGINE*, char const*, dynamic_fns const*);
Exported as the shared-library symbol bind_engine. IMPLEMENT_DYNAMIC_BIND_FN(fn) wraps a callback of type int fn(ENGINE *e, const char *id).
Non-zero on success; 0 aborts the load, restores prior ENGINE state, and unloads the shared library (clean up internally on failure to avoid leaks).
| Name | Description |
|---|---|
| e | ENGINE structure to initialise; do not adjust structural/functional refs. |
| id | Requested ENGINE id, or NULL to allow a default ENGINE from the library. |
| fns | Loader callbacks (memory functions and static-state cookie). |