diff options
Diffstat (limited to 'src/lib/libcrypto/man/OPENSSL_init_crypto.3')
-rw-r--r-- | src/lib/libcrypto/man/OPENSSL_init_crypto.3 | 34 |
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 |
30 | This function is deprecated. | ||
31 | It is never useful for any application program to call it explicitly. | ||
32 | The library automatically calls it internally with an | ||
33 | .Fa options | ||
34 | argument of 0 whenever needed. | ||
35 | It is safest to assume that any function may do so. | ||
36 | .Pp | ||
37 | To enable or disable the standard configuration file, instead use | ||
38 | .Xr OPENSSL_config 3 | ||
39 | or | ||
40 | .Xr OPENSSL_no_config 3 , | ||
41 | respectively. | ||
42 | To load a non-standard configuration file, refer to | ||
43 | .Xr CONF_modules_load_file 3 . | ||
44 | .Pp | ||
30 | If | 45 | If |
31 | .Fn OPENSSL_init_crypto | 46 | .Fn OPENSSL_init_crypto |
32 | is called before any other crypto or ssl functions, the crypto | 47 | is called before any other crypto or ssl functions, the crypto |
33 | library is initialised by allocating various internal resources. | 48 | library is initialised by allocating various internal resources, |
49 | in particular calling | ||
50 | .Xr ERR_load_crypto_strings 3 , | ||
51 | .Xr OpenSSL_add_all_ciphers 3 , | ||
52 | and | ||
53 | .Xr OpenSSL_add_all_digests 3 . | ||
34 | .Pp | 54 | .Pp |
35 | The following | 55 | The following |
36 | .Fa options | 56 | .Fa options |
@@ -54,13 +74,6 @@ The | |||
54 | .Fa dummy | 74 | .Fa dummy |
55 | argument has no effect. | 75 | argument has no effect. |
56 | .Pp | 76 | .Pp |
57 | Calling this function is almost never useful because it is internally | ||
58 | called with an | ||
59 | .Fa options | ||
60 | argument of 0 by those functions in the crypto and ssl libraries | ||
61 | that require it. | ||
62 | It is safest to assume that any function may do so. | ||
63 | .Pp | ||
64 | If this function is called more than once, none of the calls except | 77 | If this function is called more than once, none of the calls except |
65 | the first one have any effect. | 78 | the 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 |