summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortb <>2021-04-15 16:30:14 +0000
committertb <>2021-04-15 16:30:14 +0000
commit8cd40b926a8c4b7fdc8ace5243e2bb1418af7448 (patch)
tree6a43b0c724fb5dcbe408d1677ea8cd0d4697bf7e
parentb2be6cbf1a3943747b1a702732eba2d909d56c23 (diff)
downloadopenbsd-8cd40b926a8c4b7fdc8ace5243e2bb1418af7448.tar.gz
openbsd-8cd40b926a8c4b7fdc8ace5243e2bb1418af7448.tar.bz2
openbsd-8cd40b926a8c4b7fdc8ace5243e2bb1418af7448.zip
Document DTLSv1_2_{,client_,server_}method(3)
-rw-r--r--src/lib/libssl/man/SSL_CTX_new.340
1 files changed, 36 insertions, 4 deletions
diff --git a/src/lib/libssl/man/SSL_CTX_new.3 b/src/lib/libssl/man/SSL_CTX_new.3
index 61c27d48e0..c1c7635dba 100644
--- a/src/lib/libssl/man/SSL_CTX_new.3
+++ b/src/lib/libssl/man/SSL_CTX_new.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: SSL_CTX_new.3,v 1.15 2020/10/12 09:26:57 schwarze Exp $ 1.\" $OpenBSD: SSL_CTX_new.3,v 1.16 2021/04/15 16:30:14 tb 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 8f75443f May 24 14:04:26 2019 +0200 3.\" selective merge up to: OpenSSL 8f75443f May 24 14:04:26 2019 +0200
4.\" 4.\"
@@ -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: October 12 2020 $ 53.Dd $Mdocdate: April 15 2021 $
54.Dt SSL_CTX_NEW 3 54.Dt SSL_CTX_NEW 3
55.Os 55.Os
56.Sh NAME 56.Sh NAME
@@ -76,7 +76,10 @@
76.Nm DTLS_client_method , 76.Nm DTLS_client_method ,
77.Nm DTLSv1_method , 77.Nm DTLSv1_method ,
78.Nm DTLSv1_server_method , 78.Nm DTLSv1_server_method ,
79.Nm DTLSv1_client_method 79.Nm DTLSv1_client_method ,
80.Nm DTLSv1_2_method ,
81.Nm DTLSv1_2_server_method ,
82.Nm DTLSv1_2_client_method
80.Nd create a new SSL_CTX object as a framework for TLS enabled functions 83.Nd create a new SSL_CTX object as a framework for TLS enabled functions
81.Sh SYNOPSIS 84.Sh SYNOPSIS
82.In openssl/ssl.h 85.In openssl/ssl.h
@@ -126,6 +129,12 @@
126.Fn DTLSv1_server_method void 129.Fn DTLSv1_server_method void
127.Ft const SSL_METHOD * 130.Ft const SSL_METHOD *
128.Fn DTLSv1_client_method void 131.Fn DTLSv1_client_method void
132.Ft const SSL_METHOD *
133.Fn DTLSv1_2_method void
134.Ft const SSL_METHOD *
135.Fn DTLSv1_2_server_method void
136.Ft const SSL_METHOD *
137.Fn DTLSv1_2_client_method void
129.Sh DESCRIPTION 138.Sh DESCRIPTION
130.Fn SSL_CTX_new 139.Fn SSL_CTX_new
131creates a new 140creates a new
@@ -165,7 +174,7 @@ version mutually supported by the client and the server.
165The supported protocols are TLSv1, TLSv1.1, TLSv1.2, and TLSv1.3. 174The supported protocols are TLSv1, TLSv1.1, TLSv1.2, and TLSv1.3.
166.It Fn DTLS_method 175.It Fn DTLS_method
167The version-flexible DTLS method. 176The version-flexible DTLS method.
168The currently supported protocol is DTLS 1.0. 177The currently supported protocols are DTLSv1 and DTLSv1.2.
169.El 178.El
170.Pp 179.Pp
171The following 180The following
@@ -214,6 +223,12 @@ understand the TLSv1.2 protocol.
214.Fn DTLSv1_client_method 223.Fn DTLSv1_client_method
215.Xc 224.Xc
216These are the version-specific methods for DTLSv1. 225These are the version-specific methods for DTLSv1.
226.It Xo
227.Fn DTLSv1_2_method ,
228.Fn DTLSv1_2_server_method ,
229.Fn DTLSv1_2_client_method
230These are the version-specific methods for DTLSv1.2.
231.Xc
217.El 232.El
218.Pp 233.Pp
219In LibreSSL, the methods containing the substrings 234In LibreSSL, the methods containing the substrings
@@ -239,6 +254,16 @@ all previous or all subsequent protocol versions.
239In clients, when a protocol version is disabled without disabling 254In clients, when a protocol version is disabled without disabling
240all previous protocol versions, the effect is to also disable all 255all previous protocol versions, the effect is to also disable all
241subsequent protocol versions. 256subsequent protocol versions.
257.Pp
258DTLSv1 and DTLSv1.2 can be disabled with
259.Xr SSL_CTX_set_options 3
260or
261.Xr SSL_set_options 3
262using the
263.Dv SSL_OP_NO_DTLSv1
264and
265.Dv SSL_OP_NO_DTLSv1_2
266options, respectively.
242.Sh RETURN VALUES 267.Sh RETURN VALUES
243.Fn SSL_CTX_new 268.Fn SSL_CTX_new
244returns a pointer to the newly allocated object or 269returns a pointer to the newly allocated object or
@@ -310,3 +335,10 @@ first appeared in OpenSSL 1.1.0 and have been available since
310.Fn SSL_CTX_up_ref 335.Fn SSL_CTX_up_ref
311first appeared in OpenSSL 1.1.0 and has been available since 336first appeared in OpenSSL 1.1.0 and has been available since
312.Ox 6.3 . 337.Ox 6.3 .
338.Pp
339.Fn DTLSv1_2_method ,
340.Fn DTLSv1_2_server_method ,
341and
342.Fn DTLSv1_2_client_method
343first appeared in OpenSSL 1.1.0 and have been available since
344.Ox 6.9 .