summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/man/OPENSSL_init_crypto.3
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/man/OPENSSL_init_crypto.3')
-rw-r--r--src/lib/libcrypto/man/OPENSSL_init_crypto.334
1 files changed, 23 insertions, 11 deletions
diff --git a/src/lib/libcrypto/man/OPENSSL_init_crypto.3 b/src/lib/libcrypto/man/OPENSSL_init_crypto.3
index 3a532550ae..e6dac13fed 100644
--- a/src/lib/libcrypto/man/OPENSSL_init_crypto.3
+++ b/src/lib/libcrypto/man/OPENSSL_init_crypto.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: OPENSSL_init_crypto.3,v 1.3 2018/03/23 23:18:17 schwarze Exp $ 1.\" $OpenBSD: OPENSSL_init_crypto.3,v 1.4 2019/06/14 13:41:31 schwarze Exp $
2.\" Copyright (c) 2018 Ingo Schwarze <schwarze@openbsd.org> 2.\" Copyright (c) 2018 Ingo Schwarze <schwarze@openbsd.org>
3.\" 3.\"
4.\" Permission to use, copy, modify, and distribute this software for any 4.\" Permission to use, copy, modify, and distribute this software for any
@@ -13,7 +13,7 @@
13.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 13.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 14.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15.\" 15.\"
16.Dd $Mdocdate: March 23 2018 $ 16.Dd $Mdocdate: June 14 2019 $
17.Dt OPENSSL_INIT_CRYPTO 3 17.Dt OPENSSL_INIT_CRYPTO 3
18.Os 18.Os
19.Sh NAME 19.Sh NAME
@@ -27,10 +27,30 @@
27.Fa "const void *dummy" 27.Fa "const void *dummy"
28.Fc 28.Fc
29.Sh DESCRIPTION 29.Sh DESCRIPTION
30This function is deprecated.
31It is never useful for any application program to call it explicitly.
32The library automatically calls it internally with an
33.Fa options
34argument of 0 whenever needed.
35It is safest to assume that any function may do so.
36.Pp
37To enable or disable the standard configuration file, instead use
38.Xr OPENSSL_config 3
39or
40.Xr OPENSSL_no_config 3 ,
41respectively.
42To load a non-standard configuration file, refer to
43.Xr CONF_modules_load_file 3 .
44.Pp
30If 45If
31.Fn OPENSSL_init_crypto 46.Fn OPENSSL_init_crypto
32is called before any other crypto or ssl functions, the crypto 47is called before any other crypto or ssl functions, the crypto
33library is initialised by allocating various internal resources. 48library is initialised by allocating various internal resources,
49in particular calling
50.Xr ERR_load_crypto_strings 3 ,
51.Xr OpenSSL_add_all_ciphers 3 ,
52and
53.Xr OpenSSL_add_all_digests 3 .
34.Pp 54.Pp
35The following 55The following
36.Fa options 56.Fa options
@@ -54,13 +74,6 @@ The
54.Fa dummy 74.Fa dummy
55argument has no effect. 75argument has no effect.
56.Pp 76.Pp
57Calling this function is almost never useful because it is internally
58called with an
59.Fa options
60argument of 0 by those functions in the crypto and ssl libraries
61that require it.
62It is safest to assume that any function may do so.
63.Pp
64If this function is called more than once, none of the calls except 77If this function is called more than once, none of the calls except
65the first one have any effect. 78the first one have any effect.
66.Sh RETURN VALUES 79.Sh RETURN VALUES
@@ -69,7 +82,6 @@ is intended to return 1 on success or 0 on error.
69.Sh SEE ALSO 82.Sh SEE ALSO
70.Xr CONF_modules_load_file 3 , 83.Xr CONF_modules_load_file 3 ,
71.Xr OPENSSL_config 3 , 84.Xr OPENSSL_config 3 ,
72.Xr OPENSSL_init_ssl 3 ,
73.Xr OPENSSL_load_builtin_modules 3 , 85.Xr OPENSSL_load_builtin_modules 3 ,
74.Xr openssl.cnf 5 86.Xr openssl.cnf 5
75.Sh HISTORY 87.Sh HISTORY