diff options
author | schwarze <> | 2020-10-11 16:14:38 +0000 |
---|---|---|
committer | schwarze <> | 2020-10-11 16:14:38 +0000 |
commit | 9bebdfb70dbdd27578ce9096784aba42674545e3 (patch) | |
tree | d03b89cf737a0da7239e2917ef120db2ec9e0c67 /src | |
parent | af6a663711d3d3993dad528fa53865494ffaca28 (diff) | |
download | openbsd-9bebdfb70dbdd27578ce9096784aba42674545e3.tar.gz openbsd-9bebdfb70dbdd27578ce9096784aba42674545e3.tar.bz2 openbsd-9bebdfb70dbdd27578ce9096784aba42674545e3.zip |
In ssl_methods.c rev. 1.18, jsing@ deprecated *_server_method(3)
and *_client_method(3). Adjust the documentation.
While here, delete most of the verbiage regarding the deprecated
functions SSLv23_*(3) and add the missing entry to RETURN VALUES.
OK tb@
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libssl/man/SSL_CTX_new.3 | 29 |
1 files changed, 18 insertions, 11 deletions
diff --git a/src/lib/libssl/man/SSL_CTX_new.3 b/src/lib/libssl/man/SSL_CTX_new.3 index 13b3700240..21f4cf08b2 100644 --- a/src/lib/libssl/man/SSL_CTX_new.3 +++ b/src/lib/libssl/man/SSL_CTX_new.3 | |||
@@ -1,6 +1,6 @@ | |||
1 | .\" $OpenBSD: SSL_CTX_new.3,v 1.12 2020/06/04 18:06:43 schwarze Exp $ | 1 | .\" $OpenBSD: SSL_CTX_new.3,v 1.13 2020/10/11 16:14:38 schwarze Exp $ |
2 | .\" full merge up to: OpenSSL 21cd6e00 Oct 21 14:40:15 2015 +0100 | 2 | .\" full merge up to: OpenSSL 21cd6e00 Oct 21 14:40:15 2015 +0100 |
3 | .\" selective merge up to: OpenSSL 1212818e Sep 11 13:22:14 2018 +0100 | 3 | .\" selective merge up to: OpenSSL 8f75443f May 24 14:04:26 2019 +0200 |
4 | .\" | 4 | .\" |
5 | .\" This file was written by Lutz Jaenicke <jaenicke@openssl.org>. | 5 | .\" This file was written by Lutz Jaenicke <jaenicke@openssl.org>. |
6 | .\" Copyright (c) 2000, 2005, 2012, 2013, 2015, 2016 The OpenSSL Project. | 6 | .\" Copyright (c) 2000, 2005, 2012, 2013, 2015, 2016 The OpenSSL Project. |
@@ -50,7 +50,7 @@ | |||
50 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | 50 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
51 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. | 51 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. |
52 | .\" | 52 | .\" |
53 | .Dd $Mdocdate: June 4 2020 $ | 53 | .Dd $Mdocdate: October 11 2020 $ |
54 | .Dt SSL_CTX_NEW 3 | 54 | .Dt SSL_CTX_NEW 3 |
55 | .Os | 55 | .Os |
56 | .Sh NAME | 56 | .Sh NAME |
@@ -178,14 +178,8 @@ methods described below. | |||
178 | .Fn SSLv23_server_method , | 178 | .Fn SSLv23_server_method , |
179 | .Fn SSLv23_client_method | 179 | .Fn SSLv23_client_method |
180 | .Xc | 180 | .Xc |
181 | Use of these functions is deprecated. | 181 | These are deprecated aliases for |
182 | They have been replaced with the above | 182 | .Fn TLS_method . |
183 | .Fn TLS_method , | ||
184 | .Fn TLS_server_method , | ||
185 | and | ||
186 | .Fn TLS_client_method , | ||
187 | respectively. | ||
188 | New code should use those functions instead. | ||
189 | .It Xo | 183 | .It Xo |
190 | .Fn TLSv1_method , | 184 | .Fn TLSv1_method , |
191 | .Fn TLSv1_server_method , | 185 | .Fn TLSv1_server_method , |
@@ -222,6 +216,14 @@ The currently supported protocol is DTLS 1.0. | |||
222 | These are the version-specific methods for DTLSv1. | 216 | These are the version-specific methods for DTLSv1. |
223 | .El | 217 | .El |
224 | .Pp | 218 | .Pp |
219 | The methods containing the substrings | ||
220 | .Dq _server | ||
221 | or | ||
222 | .Dq _client | ||
223 | in their names are deprecated. | ||
224 | In LibreSSL, they return the same objects | ||
225 | as the methods without these substrings. | ||
226 | .Pp | ||
225 | The list of protocols available can also be limited using the | 227 | The list of protocols available can also be limited using the |
226 | .Dv SSL_OP_NO_TLSv1 , | 228 | .Dv SSL_OP_NO_TLSv1 , |
227 | .Dv SSL_OP_NO_TLSv1_1 , | 229 | .Dv SSL_OP_NO_TLSv1_1 , |
@@ -247,6 +249,11 @@ Check the error stack to find out the reason for failure. | |||
247 | .Pp | 249 | .Pp |
248 | .Fn SSL_CTX_up_ref | 250 | .Fn SSL_CTX_up_ref |
249 | returns 1 for success or 0 for failure. | 251 | returns 1 for success or 0 for failure. |
252 | .Pp | ||
253 | .Fn TLS_method | ||
254 | and the other | ||
255 | .Fn *_method | ||
256 | functions return pointers to constant static objects. | ||
250 | .Sh SEE ALSO | 257 | .Sh SEE ALSO |
251 | .Xr ssl 3 , | 258 | .Xr ssl 3 , |
252 | .Xr SSL_accept 3 , | 259 | .Xr SSL_accept 3 , |