[#ENGINE_set_init_function]
= ENGINE&lowbar;set&lowbar;init&lowbar;function
:mrdocs:

Set the callback invoked by ENGINE&lowbar;init() to bring an ENGINE to operational state&period;

== Synopsis

Declared in `&lt;openssl&sol;engine&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;deprecated&rsqb;&rsqb;
int
ENGINE&lowbar;set&lowbar;init&lowbar;function(
    xref:ENGINE.adoc[ENGINE]* e,
    xref:ENGINE_GEN_INT_FUNC_PTR.adoc[ENGINE&lowbar;GEN&lowbar;INT&lowbar;FUNC&lowbar;PTR] init&lowbar;f);
----

[WARNING]
====
https://en.cppreference.com/cpp/language/attributes/deprecated[Deprecated^]. Use of this entity is allowed but discouraged.
====
== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *e*
| ENGINE whose init hook is replaced&period;
| *init&lowbar;f*
| Function called to initialise `e` for functional use, or NULL to clear&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
