|ENGINE_INIT(3)||Library Functions Manual||ENGINE_INIT(3)|
*e, ENGINE_GEN_INT_FUNC_PTR init_f);
*e, ENGINE_GEN_INT_FUNC_PTR finish_f);
ENGINE_init() initializes e by calling the init_f previously installed with
ENGINE_set_init_function(), if any. In case of success, it also increments both the structural and the functional reference count by 1. If no init_f was installed,
ENGINE_init() always succeeds. Calling
ENGINE_init() again after it already succeeded always succeeds, but has no effect except that it increments both the structural and the functional reference count by 1.
ENGINE_finish() decrements the functional
reference count by 1. When it reaches 0, it calls the
finish_f previously installed with
ENGINE_set_finish_function(), if any. If no
finish_f was installed,
ENGINE_finish() always succeeds. Unless
ENGINE_finish() also calls
ENGINE_init() is internally called by the
functions documented in the
ENGINE_finish() return 1 on success or 0 on error.
ENGINE_set_finish_function() always return 1.
ENGINE_get_finish_function() return a function
pointer to the respective callback, or
NULL if none
|April 18, 2018||OpenBSD-current|