diff options
Diffstat (limited to 'src/lib/libssl/man')
-rw-r--r-- | src/lib/libssl/man/OPENSSL_init_ssl.3 | 30 | ||||
-rw-r--r-- | src/lib/libssl/man/SSL_library_init.3 | 32 | ||||
-rw-r--r-- | src/lib/libssl/man/ssl.3 | 12 |
3 files changed, 37 insertions, 37 deletions
diff --git a/src/lib/libssl/man/OPENSSL_init_ssl.3 b/src/lib/libssl/man/OPENSSL_init_ssl.3 index 5c9f51fe49..f37dccfaac 100644 --- a/src/lib/libssl/man/OPENSSL_init_ssl.3 +++ b/src/lib/libssl/man/OPENSSL_init_ssl.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: OPENSSL_init_ssl.3,v 1.3 2019/06/12 09:36:30 schwarze Exp $ | 1 | .\" $OpenBSD: OPENSSL_init_ssl.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: June 12 2019 $ | 16 | .Dd $Mdocdate: June 14 2019 $ |
17 | .Dt OPENSSL_INIT_SSL 3 | 17 | .Dt OPENSSL_INIT_SSL 3 |
18 | .Os | 18 | .Os |
19 | .Sh NAME | 19 | .Sh NAME |
@@ -27,13 +27,27 @@ | |||
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 | .Fn OPENSSL_init_ssl | 45 | .Fn OPENSSL_init_ssl |
31 | calls | 46 | calls |
32 | .Xr OPENSSL_init_crypto 3 | 47 | .Xr OPENSSL_init_crypto 3 , |
33 | and also allocates various resources used internally by the ssl library. | 48 | .Xr SSL_load_error_strings 3 , |
34 | .Pp | 49 | and |
35 | Calling it is never useful because it is automatically called | 50 | .Xr SSL_library_init 3 . |
36 | internally when needed. | ||
37 | .Pp | 51 | .Pp |
38 | The | 52 | The |
39 | .Fa options | 53 | .Fa options |
@@ -50,7 +64,7 @@ none of the calls except the first one have any effect. | |||
50 | is intended to return 1 on success or 0 on error. | 64 | is intended to return 1 on success or 0 on error. |
51 | .Sh SEE ALSO | 65 | .Sh SEE ALSO |
52 | .Xr CONF_modules_load_file 3 , | 66 | .Xr CONF_modules_load_file 3 , |
53 | .Xr OPENSSL_init_crypto 3 , | 67 | .Xr OPENSSL_config 3 , |
54 | .Xr ssl 3 | 68 | .Xr ssl 3 |
55 | .Sh HISTORY | 69 | .Sh HISTORY |
56 | .Fn OPENSSL_init_ssl | 70 | .Fn OPENSSL_init_ssl |
diff --git a/src/lib/libssl/man/SSL_library_init.3 b/src/lib/libssl/man/SSL_library_init.3 index 42f19adc28..053c1e6fcb 100644 --- a/src/lib/libssl/man/SSL_library_init.3 +++ b/src/lib/libssl/man/SSL_library_init.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: SSL_library_init.3,v 1.6 2018/03/27 17:35:50 schwarze Exp $ | 1 | .\" $OpenBSD: SSL_library_init.3,v 1.7 2019/06/14 13:41:31 schwarze Exp $ |
2 | .\" OpenSSL b97fdb57 Nov 11 09:33:09 2016 +0100 | 2 | .\" OpenSSL b97fdb57 Nov 11 09:33:09 2016 +0100 |
3 | .\" | 3 | .\" |
4 | .\" This file was written by Lutz Jaenicke <jaenicke@openssl.org>. | 4 | .\" This file was written by Lutz Jaenicke <jaenicke@openssl.org>. |
@@ -48,7 +48,7 @@ | |||
48 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | 48 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
49 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. | 49 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. |
50 | .\" | 50 | .\" |
51 | .Dd $Mdocdate: March 27 2018 $ | 51 | .Dd $Mdocdate: June 14 2019 $ |
52 | .Dt SSL_LIBRARY_INIT 3 | 52 | .Dt SSL_LIBRARY_INIT 3 |
53 | .Os | 53 | .Os |
54 | .Sh NAME | 54 | .Sh NAME |
@@ -65,8 +65,13 @@ | |||
65 | .Ft int | 65 | .Ft int |
66 | .Fn SSLeay_add_ssl_algorithms void | 66 | .Fn SSLeay_add_ssl_algorithms void |
67 | .Sh DESCRIPTION | 67 | .Sh DESCRIPTION |
68 | These functions are deprecated. | ||
69 | It is never useful for any application program to call any of them explicitly. | ||
70 | The library automatically calls them internally whenever needed. | ||
71 | .Pp | ||
68 | .Fn SSL_library_init | 72 | .Fn SSL_library_init |
69 | registers the available SSL/TLS ciphers and digests. | 73 | registers the available ciphers and digests |
74 | which are used directly or indirectly by TLS. | ||
70 | .Pp | 75 | .Pp |
71 | .Fn OpenSSL_add_ssl_algorithms | 76 | .Fn OpenSSL_add_ssl_algorithms |
72 | and | 77 | and |
@@ -74,28 +79,11 @@ and | |||
74 | are synonyms for | 79 | are synonyms for |
75 | .Fn SSL_library_init | 80 | .Fn SSL_library_init |
76 | and are implemented as macros. | 81 | and are implemented as macros. |
77 | .Pp | ||
78 | .Fn SSL_library_init | ||
79 | must be called before any other action takes place. | ||
80 | .Fn SSL_library_init | ||
81 | is not reentrant. | ||
82 | .Pp | ||
83 | .Fn SSL_library_init | ||
84 | adds ciphers and digests used directly and indirectly by SSL/TLS. | ||
85 | .Sh RETURN VALUES | 82 | .Sh RETURN VALUES |
86 | .Fn SSL_library_init | 83 | .Fn SSL_library_init |
87 | always returns 1, so it is safe to discard the return value. | 84 | always returns 1. |
88 | .Sh EXAMPLES | ||
89 | A typical TLS/SSL application will start with the library initialization, and | ||
90 | provide readable error messages. | ||
91 | .Bd -literal | ||
92 | SSL_load_error_strings(); /* readable error messages */ | ||
93 | SSL_library_init(); /* initialize library */ | ||
94 | .Ed | ||
95 | .Sh SEE ALSO | 85 | .Sh SEE ALSO |
96 | .Xr RAND_add 3 , | 86 | .Xr ssl 3 |
97 | .Xr ssl 3 , | ||
98 | .Xr SSL_load_error_strings 3 | ||
99 | .Sh HISTORY | 87 | .Sh HISTORY |
100 | .Fn SSLeay_add_ssl_algorithms | 88 | .Fn SSLeay_add_ssl_algorithms |
101 | first appeared in SSLeay 0.8.0 and has been available since | 89 | first appeared in SSLeay 0.8.0 and has been available since |
diff --git a/src/lib/libssl/man/ssl.3 b/src/lib/libssl/man/ssl.3 index 7683599652..6e7914c8b4 100644 --- a/src/lib/libssl/man/ssl.3 +++ b/src/lib/libssl/man/ssl.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: ssl.3,v 1.16 2019/06/12 09:03:43 schwarze Exp $ | 1 | .\" $OpenBSD: ssl.3,v 1.17 2019/06/14 13:41:31 schwarze Exp $ |
2 | .\" full merge up to: OpenSSL e330f55d Nov 11 00:51:04 2016 +0100 | 2 | .\" full merge up to: OpenSSL e330f55d Nov 11 00:51:04 2016 +0100 |
3 | .\" selective merge up to: OpenSSL cbade361 Dec 12 13:14:45 2017 +0100 | 3 | .\" selective merge up to: OpenSSL cbade361 Dec 12 13:14:45 2017 +0100 |
4 | .\" | 4 | .\" |
@@ -51,7 +51,7 @@ | |||
51 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | 51 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
52 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. | 52 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. |
53 | .\" | 53 | .\" |
54 | .Dd $Mdocdate: June 12 2019 $ | 54 | .Dd $Mdocdate: June 14 2019 $ |
55 | .Dt SSL 3 | 55 | .Dt SSL 3 |
56 | .Os | 56 | .Os |
57 | .Sh NAME | 57 | .Sh NAME |
@@ -62,10 +62,7 @@ The OpenSSL | |||
62 | .Nm ssl | 62 | .Nm ssl |
63 | library implements the Transport Layer Security (TLS v1) protocols. | 63 | library implements the Transport Layer Security (TLS v1) protocols. |
64 | .Pp | 64 | .Pp |
65 | At first the library must be initialized; see | 65 | An |
66 | .Xr SSL_library_init 3 . | ||
67 | .Pp | ||
68 | Then an | ||
69 | .Vt SSL_CTX | 66 | .Vt SSL_CTX |
70 | object is created as a framework to establish TLS/SSL enabled connections (see | 67 | object is created as a framework to establish TLS/SSL enabled connections (see |
71 | .Xr SSL_CTX_new 3 ) . | 68 | .Xr SSL_CTX_new 3 ) . |
@@ -354,11 +351,12 @@ To inspect the state during ongoing communication: | |||
354 | .Xr OPENSSL_init_ssl 3 , | 351 | .Xr OPENSSL_init_ssl 3 , |
355 | .Xr SSL_COMP_add_compression_method 3 , | 352 | .Xr SSL_COMP_add_compression_method 3 , |
356 | .Xr SSL_CTX_set_tmp_rsa_callback 3 , | 353 | .Xr SSL_CTX_set_tmp_rsa_callback 3 , |
354 | .Xr SSL_library_init 3 , | ||
357 | .Xr SSL_set_tmp_ecdh 3 | 355 | .Xr SSL_set_tmp_ecdh 3 |
358 | .Sh SEE ALSO | 356 | .Sh SEE ALSO |
359 | .Xr openssl 1 , | 357 | .Xr openssl 1 , |
360 | .Xr crypto 3 , | 358 | .Xr crypto 3 , |
361 | .Xr SSL_load_error_strings 3 | 359 | .Xr tls_init 3 |
362 | .Sh HISTORY | 360 | .Sh HISTORY |
363 | The | 361 | The |
364 | .Nm | 362 | .Nm |