1 .\" $OpenBSD: ENGINE_init.3,v 1.2 2018/04/18 03:39:22 schwarze Exp $
2 .\" Copyright (c) 2018 Ingo Schwarze <schwarze@openbsd.org>
4 .\" Permission to use, copy, modify, and distribute this software for any
5 .\" purpose with or without fee is hereby granted, provided that the above
6 .\" copyright notice and this permission notice appear in all copies.
8 .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 .Dd $Mdocdate: April 18 2018 $
22 .Nm ENGINE_set_init_function ,
23 .Nm ENGINE_set_finish_function ,
24 .Nm ENGINE_get_init_function ,
25 .Nm ENGINE_get_finish_function
26 .Nd initialize ENGINE objects
38 .Fo (*ENGINE_GEN_INT_FUNC_PTR)
42 .Fo ENGINE_set_init_function
44 .Fa "ENGINE_GEN_INT_FUNC_PTR init_f"
47 .Fo ENGINE_set_finish_function
49 .Fa "ENGINE_GEN_INT_FUNC_PTR finish_f"
51 .Ft ENGINE_GEN_INT_FUNC_PTR
52 .Fo ENGINE_get_init_function
55 .Ft ENGINE_GEN_INT_FUNC_PTR
56 .Fo ENGINE_get_finish_function
65 previously installed with
66 .Fn ENGINE_set_init_function ,
68 In case of success, it also increments both the structural
69 and the functional reference count by 1.
77 again after it already succeeded always succeeds, but has no effect
78 except that it increments both the structural and the functional
82 decrements the functional reference count by 1.
83 When it reaches 0, it calls the
85 previously installed with
86 .Fn ENGINE_set_finish_function ,
101 is internally called by the functions documented in the
102 .Xr ENGINE_get_default_RSA 3
108 return 1 on success or 0 on error.
110 .Fn ENGINE_set_init_function
112 .Fn ENGINE_set_finish_function
115 .Fn ENGINE_get_init_function
117 .Fn ENGINE_get_finish_function
118 return a function pointer to the respective callback, or
120 if none is installed.
124 .Xr ENGINE_get_default_RSA 3 ,
126 .Xr ENGINE_register_RSA 3 ,
127 .Xr ENGINE_set_default 3 ,
128 .Xr ENGINE_set_flags 3 ,
129 .Xr ENGINE_set_RSA 3 ,
130 .Xr ENGINE_unregister_RSA 3
132 These functions first appeared in OpenSSL 0.9.7
133 and have been available since