summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschwarze <>2021-09-11 18:58:41 +0000
committerschwarze <>2021-09-11 18:58:41 +0000
commitd71c4e2e3796f1094105cb2e98f9a746cba12af4 (patch)
tree946e36565d5fcc4857d01f4d2f92c55d7d89cc80
parent99600028105f8346c63f71872e7feca71b9c776b (diff)
downloadopenbsd-d71c4e2e3796f1094105cb2e98f9a746cba12af4.tar.gz
openbsd-d71c4e2e3796f1094105cb2e98f9a746cba12af4.tar.bz2
openbsd-d71c4e2e3796f1094105cb2e98f9a746cba12af4.zip
merge the description of SSL_get_tlsext_status_type(3)
from the OpenSSL 1.1.1 branch, which is still under a free license
-rw-r--r--src/lib/libssl/man/SSL_CTX_set_tlsext_status_cb.338
1 files changed, 35 insertions, 3 deletions
diff --git a/src/lib/libssl/man/SSL_CTX_set_tlsext_status_cb.3 b/src/lib/libssl/man/SSL_CTX_set_tlsext_status_cb.3
index f75d80785e..d5979af1e8 100644
--- a/src/lib/libssl/man/SSL_CTX_set_tlsext_status_cb.3
+++ b/src/lib/libssl/man/SSL_CTX_set_tlsext_status_cb.3
@@ -1,6 +1,6 @@
1.\" $OpenBSD: SSL_CTX_set_tlsext_status_cb.3,v 1.7 2019/06/12 09:36:30 schwarze Exp $ 1.\" $OpenBSD: SSL_CTX_set_tlsext_status_cb.3,v 1.8 2021/09/11 18:58:41 schwarze Exp $
2.\" full merge up to: OpenSSL 43c34894 Nov 30 16:04:51 2015 +0000 2.\" full merge up to: OpenSSL 43c34894 Nov 30 16:04:51 2015 +0000
3.\" selective merge up to: OpenSSL e9b77246 Jan 20 19:58:49 2017 +0100 3.\" selective merge up to: OpenSSL df75c2bf Dec 9 01:02:36 2018 +0100
4.\" 4.\"
5.\" This file was written by Matt Caswell <matt@openssl.org>. 5.\" This file was written by Matt Caswell <matt@openssl.org>.
6.\" Copyright (c) 2015, 2016 The OpenSSL Project. All rights reserved. 6.\" Copyright (c) 2015, 2016 The OpenSSL Project. All rights reserved.
@@ -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: June 12 2019 $ 52.Dd $Mdocdate: September 11 2021 $
53.Dt SSL_CTX_SET_TLSEXT_STATUS_CB 3 53.Dt SSL_CTX_SET_TLSEXT_STATUS_CB 3
54.Os 54.Os
55.Sh NAME 55.Sh NAME
@@ -58,6 +58,7 @@
58.Nm SSL_CTX_set_tlsext_status_arg , 58.Nm SSL_CTX_set_tlsext_status_arg ,
59.Nm SSL_CTX_get_tlsext_status_arg , 59.Nm SSL_CTX_get_tlsext_status_arg ,
60.Nm SSL_set_tlsext_status_type , 60.Nm SSL_set_tlsext_status_type ,
61.Nm SSL_get_tlsext_status_type ,
61.Nm SSL_get_tlsext_status_ocsp_resp , 62.Nm SSL_get_tlsext_status_ocsp_resp ,
62.Nm SSL_set_tlsext_status_ocsp_resp 63.Nm SSL_set_tlsext_status_ocsp_resp
63.Nd OCSP Certificate Status Request functions 64.Nd OCSP Certificate Status Request functions
@@ -89,6 +90,10 @@
89.Fa "int type" 90.Fa "int type"
90.Fc 91.Fc
91.Ft long 92.Ft long
93.Fo SSL_get_tlsext_status_type
94.Fa "SSL *s"
95.Fc
96.Ft long
92.Fo SSL_get_tlsext_status_ocsp_resp 97.Fo SSL_get_tlsext_status_ocsp_resp
93.Fa ssl 98.Fa ssl
94.Fa "unsigned char **resp" 99.Fa "unsigned char **resp"
@@ -132,6 +137,20 @@ can be retrieved by calling
132and the argument by calling 137and the argument by calling
133.Fn SSL_CTX_get_tlsext_status_arg . 138.Fn SSL_CTX_get_tlsext_status_arg .
134.Pp 139.Pp
140On the client side,
141.Fn SSL_get_tlsext_status_type
142can be used to determine whether the client has previously called
143.Fn SSL_set_tlsext_status_type .
144It will return
145.Dv TLSEXT_STATUSTYPE_ocsp
146if it has been called or \-1 otherwise.
147On the server side,
148.Fn SSL_get_tlsext_status_type
149can be used to determine whether the client requested OCSP stapling.
150If the client requested it, then this function will return
151.Dv TLSEXT_STATUSTYPE_ocsp ,
152or \-1 otherwise.
153.Pp
135The response returned by the server can be obtained via a call to 154The response returned by the server can be obtained via a call to
136.Fn SSL_get_tlsext_status_ocsp_resp . 155.Fn SSL_get_tlsext_status_ocsp_resp .
137The value 156The value
@@ -183,6 +202,15 @@ and
183.Fn SSL_set_tlsext_status_ocsp_resp 202.Fn SSL_set_tlsext_status_ocsp_resp
184always return 1, indicating success. 203always return 1, indicating success.
185.Pp 204.Pp
205.Fn SSL_get_tlsext_status_type
206returns
207.Dv TLSEXT_STATUSTYPE_ocsp
208on the client side if
209.Fn SSL_set_tlsext_status_type
210was previously called, or on the server side
211if the client requested OCSP stapling.
212Otherwise \-1 is returned.
213.Pp
186.Fn SSL_get_tlsext_status_ocsp_resp 214.Fn SSL_get_tlsext_status_ocsp_resp
187returns the length of the OCSP response data 215returns the length of the OCSP response data
188or \-1 if there is no OCSP response data. 216or \-1 if there is no OCSP response data.
@@ -204,3 +232,7 @@ and
204.Fn SSL_CTX_get_tlsext_status_arg 232.Fn SSL_CTX_get_tlsext_status_arg
205first appeared in OpenSSL 1.1.0 and have been available since 233first appeared in OpenSSL 1.1.0 and have been available since
206.Ox 6.3 . 234.Ox 6.3 .
235.Pp
236.Fn SSL_get_tlsext_status_type
237first appeared in OpenSSL 1.1.0 and has been available since
238.Ox 7.0 .