summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/libssl/man/Makefile3
-rw-r--r--src/lib/libssl/man/SSL_CTX_new.36
-rw-r--r--src/lib/libssl/man/SSL_CTX_set_min_proto_version.3114
-rw-r--r--src/lib/libssl/man/SSL_CTX_set_options.312
-rw-r--r--src/lib/libssl/man/ssl.36
5 files changed, 134 insertions, 7 deletions
diff --git a/src/lib/libssl/man/Makefile b/src/lib/libssl/man/Makefile
index 2fcc90eab9..ab11293d1c 100644
--- a/src/lib/libssl/man/Makefile
+++ b/src/lib/libssl/man/Makefile
@@ -1,4 +1,4 @@
1# $OpenBSD: Makefile,v 1.57 2017/08/12 14:09:34 schwarze Exp $ 1# $OpenBSD: Makefile,v 1.58 2017/08/19 23:45:10 schwarze Exp $
2 2
3.include <bsd.own.mk> 3.include <bsd.own.mk>
4 4
@@ -30,6 +30,7 @@ MAN = BIO_f_ssl.3 \
30 SSL_CTX_set_generate_session_id.3 \ 30 SSL_CTX_set_generate_session_id.3 \
31 SSL_CTX_set_info_callback.3 \ 31 SSL_CTX_set_info_callback.3 \
32 SSL_CTX_set_max_cert_list.3 \ 32 SSL_CTX_set_max_cert_list.3 \
33 SSL_CTX_set_min_proto_version.3 \
33 SSL_CTX_set_mode.3 \ 34 SSL_CTX_set_mode.3 \
34 SSL_CTX_set_msg_callback.3 \ 35 SSL_CTX_set_msg_callback.3 \
35 SSL_CTX_set_options.3 \ 36 SSL_CTX_set_options.3 \
diff --git a/src/lib/libssl/man/SSL_CTX_new.3 b/src/lib/libssl/man/SSL_CTX_new.3
index ee60f2a9f8..0c846ceade 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.2 2016/11/30 15:48:53 schwarze Exp $ 1.\" $OpenBSD: SSL_CTX_new.3,v 1.3 2017/08/19 23:45:10 schwarze Exp $
2.\" OpenSSL 21cd6e00 Aug 17 15:21:33 2015 -0400 2.\" OpenSSL 21cd6e00 Aug 17 15:21:33 2015 -0400
3.\" 3.\"
4.\" This file was written by Lutz Jaenicke <jaenicke@openssl.org>. 4.\" This file was written by Lutz Jaenicke <jaenicke@openssl.org>.
@@ -49,7 +49,7 @@
49.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 49.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
50.\" OF THE POSSIBILITY OF SUCH DAMAGE. 50.\" OF THE POSSIBILITY OF SUCH DAMAGE.
51.\" 51.\"
52.Dd $Mdocdate: November 30 2016 $ 52.Dd $Mdocdate: August 19 2017 $
53.Dt SSL_CTX_NEW 3 53.Dt SSL_CTX_NEW 3
54.Os 54.Os
55.Sh NAME 55.Sh NAME
@@ -218,4 +218,6 @@ object.
218.Xr ssl 3 , 218.Xr ssl 3 ,
219.Xr SSL_accept 3 , 219.Xr SSL_accept 3 ,
220.Xr SSL_CTX_free 3 , 220.Xr SSL_CTX_free 3 ,
221.Xr SSL_CTX_set_min_proto_version 3 ,
222.Xr SSL_CTX_set_options 3 ,
221.Xr SSL_set_connect_state 3 223.Xr SSL_set_connect_state 3
diff --git a/src/lib/libssl/man/SSL_CTX_set_min_proto_version.3 b/src/lib/libssl/man/SSL_CTX_set_min_proto_version.3
new file mode 100644
index 0000000000..ff057cadac
--- /dev/null
+++ b/src/lib/libssl/man/SSL_CTX_set_min_proto_version.3
@@ -0,0 +1,114 @@
1.\" $OpenBSD: SSL_CTX_set_min_proto_version.3,v 1.1 2017/08/19 23:45:10 schwarze Exp $
2.\" OpenSSL e9b77246 Jan 20 19:58:49 2017 +0100
3.\"
4.\" This file was written by Kurt Roeckx <kurt@roeckx.be>.
5.\" Copyright (c) 2015 The OpenSSL Project. All rights reserved.
6.\"
7.\" Redistribution and use in source and binary forms, with or without
8.\" modification, are permitted provided that the following conditions
9.\" are met:
10.\"
11.\" 1. Redistributions of source code must retain the above copyright
12.\" notice, this list of conditions and the following disclaimer.
13.\"
14.\" 2. Redistributions in binary form must reproduce the above copyright
15.\" notice, this list of conditions and the following disclaimer in
16.\" the documentation and/or other materials provided with the
17.\" distribution.
18.\"
19.\" 3. All advertising materials mentioning features or use of this
20.\" software must display the following acknowledgment:
21.\" "This product includes software developed by the OpenSSL Project
22.\" for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
23.\"
24.\" 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
25.\" endorse or promote products derived from this software without
26.\" prior written permission. For written permission, please contact
27.\" openssl-core@openssl.org.
28.\"
29.\" 5. Products derived from this software may not be called "OpenSSL"
30.\" nor may "OpenSSL" appear in their names without prior written
31.\" permission of the OpenSSL Project.
32.\"
33.\" 6. Redistributions of any form whatsoever must retain the following
34.\" acknowledgment:
35.\" "This product includes software developed by the OpenSSL Project
36.\" for use in the OpenSSL Toolkit (http://www.openssl.org/)"
37.\"
38.\" THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
39.\" EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
40.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
41.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR
42.\" ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
43.\" SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
44.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
45.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
46.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
47.\" STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
48.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
49.\" OF THE POSSIBILITY OF SUCH DAMAGE.
50.\"
51.Dd $Mdocdate: August 19 2017 $
52.Dt SSL_CTX_SET_MIN_PROTO_VERSION 3
53.Os
54.Sh NAME
55.Nm SSL_CTX_set_min_proto_version ,
56.Nm SSL_CTX_set_max_proto_version ,
57.Nm SSL_set_min_proto_version ,
58.Nm SSL_set_max_proto_version
59.Nd set minimum and maximum supported protocol version
60.Sh SYNOPSIS
61.In openssl/ssl.h
62.Ft int
63.Fo SSL_CTX_set_min_proto_version
64.Fa "SSL_CTX *ctx"
65.Fa "uint16_t version"
66.Fc
67.Ft int
68.Fo SSL_CTX_set_max_proto_version
69.Fa "SSL_CTX *ctx"
70.Fa "uint16_t version"
71.Fc
72.Ft int
73.Fo SSL_set_min_proto_version
74.Fa "SSL *ssl"
75.Fa "uint16_t version"
76.Fc
77.Ft int
78.Fo SSL_set_max_proto_version
79.Fa "SSL *ssl"
80.Fa "uint16_t version"
81.Fc
82.Sh DESCRIPTION
83These functions set the minimum and maximum supported protocol
84versions for
85.Fa ctx
86or
87.Fa ssl .
88This works in combination with the options set via
89.Xr SSL_CTX_set_options 3
90that also make it possible to disable specific protocol versions.
91Use these functions instead of disabling specific protocol versions.
92.Pp
93Setting the minimum or maximum version to 0 will enable protocol
94versions down to the lowest or up to the highest version supported
95by the library, respectively.
96.Pp
97Currently supported versions are
98.Sy TLS1_VERSION ,
99.Sy TLS1_1_VERSION ,
100and
101.Sy TLS1_2_VERSION
102for TLS and
103.Sy DTLS1_VERSION
104for DTLS.
105.Sh RETURN VALUES
106These functions return 1 on success or 0 on failure.
107.Sh SEE ALSO
108.Xr ssl 3 ,
109.Xr SSL_CTX_new 3 ,
110.Xr SSL_CTX_set_options 3
111.Sh HISTORY
112These functions first appeared in OpenSSL 1.1.0
113and have been available since
114.Ox 6.2 .
diff --git a/src/lib/libssl/man/SSL_CTX_set_options.3 b/src/lib/libssl/man/SSL_CTX_set_options.3
index b77f1176a1..98c1a6d365 100644
--- a/src/lib/libssl/man/SSL_CTX_set_options.3
+++ b/src/lib/libssl/man/SSL_CTX_set_options.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: SSL_CTX_set_options.3,v 1.3 2017/04/10 14:00:51 schwarze Exp $ 1.\" $OpenBSD: SSL_CTX_set_options.3,v 1.4 2017/08/19 23:45:10 schwarze Exp $
2.\" OpenSSL 361a1191 Dec 6 17:56:41 2015 +0100 2.\" OpenSSL 361a1191 Dec 6 17:56:41 2015 +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>,
@@ -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: April 10 2017 $ 54.Dd $Mdocdate: August 19 2017 $
55.Dt SSL_CTX_SET_OPTIONS 3 55.Dt SSL_CTX_SET_OPTIONS 3
56.Os 56.Os
57.Sh NAME 57.Sh NAME
@@ -189,10 +189,16 @@ When not set, the server will always follow the client's preferences.
189When set, the server will choose following its own preferences. 189When set, the server will choose following its own preferences.
190.It Dv SSL_OP_NO_TLSv1 190.It Dv SSL_OP_NO_TLSv1
191Do not use the TLSv1.0 protocol. 191Do not use the TLSv1.0 protocol.
192Deprecated; use
193.Xr SSL_CTX_set_min_proto_version 3
194instead.
192.It Dv SSL_OP_NO_TLSv1_1 195.It Dv SSL_OP_NO_TLSv1_1
193Do not use the TLSv1.1 protocol. 196Do not use the TLSv1.1 protocol.
194.It Dv SSL_OP_NO_TLSv1_2 197.It Dv SSL_OP_NO_TLSv1_2
195Do not use the TLSv1.2 protocol. 198Do not use the TLSv1.2 protocol.
199Deprecated; use
200.Xr SSL_CTX_set_max_proto_version 3
201instead.
196.It Dv SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION 202.It Dv SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION
197When performing renegotiation as a server, always start a new session (i.e., 203When performing renegotiation as a server, always start a new session (i.e.,
198session resumption requests are only accepted in the initial handshake). 204session resumption requests are only accepted in the initial handshake).
@@ -332,8 +338,10 @@ return the current bitmask.
332returns 1 is the peer supports secure renegotiation and 0 if it does not. 338returns 1 is the peer supports secure renegotiation and 0 if it does not.
333.Sh SEE ALSO 339.Sh SEE ALSO
334.Xr openssl 1 , 340.Xr openssl 1 ,
341.Xr ssl 3 ,
335.Xr SSL_clear 3 , 342.Xr SSL_clear 3 ,
336.Xr SSL_CTX_ctrl 3 , 343.Xr SSL_CTX_ctrl 3 ,
344.Xr SSL_CTX_set_min_proto_version 3 ,
337.Xr SSL_new 3 345.Xr SSL_new 3
338.Sh HISTORY 346.Sh HISTORY
339.Fn SSL_CTX_clear_options 347.Fn SSL_CTX_clear_options
diff --git a/src/lib/libssl/man/ssl.3 b/src/lib/libssl/man/ssl.3
index 031df50190..fe72bbc4d2 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.9 2017/08/12 14:09:34 schwarze Exp $ 1.\" $OpenBSD: ssl.3,v 1.10 2017/08/19 23:45:10 schwarze Exp $
2.\" OpenSSL e330f55d Nov 11 00:51:04 2016 +0100 2.\" OpenSSL e330f55d Nov 11 00:51:04 2016 +0100
3.\" 3.\"
4.\" This file was written by Ralf S. Engelschall <rse@openssl.org>, 4.\" This file was written by Ralf S. Engelschall <rse@openssl.org>,
@@ -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: August 12 2017 $ 53.Dd $Mdocdate: August 19 2017 $
54.Dt SSL 3 54.Dt SSL 3
55.Os 55.Os
56.Sh NAME 56.Sh NAME
@@ -213,7 +213,9 @@ Configuration functions:
213.Xr SSL_CTX_set_default_passwd_cb 3 , 213.Xr SSL_CTX_set_default_passwd_cb 3 ,
214.Xr SSL_CTX_set_generate_session_id 3 , 214.Xr SSL_CTX_set_generate_session_id 3 ,
215.Xr SSL_CTX_set_info_callback 3 , 215.Xr SSL_CTX_set_info_callback 3 ,
216.Xr SSL_CTX_set_min_proto_version 3 ,
216.Xr SSL_CTX_set_msg_callback 3 , 217.Xr SSL_CTX_set_msg_callback 3 ,
218.Xr SSL_CTX_set_options 3 ,
217.Xr SSL_CTX_set_quiet_shutdown 3 , 219.Xr SSL_CTX_set_quiet_shutdown 3 ,
218.Xr SSL_CTX_set_read_ahead 3 , 220.Xr SSL_CTX_set_read_ahead 3 ,
219.Xr SSL_CTX_set_session_id_context 3 , 221.Xr SSL_CTX_set_session_id_context 3 ,