summaryrefslogtreecommitdiff
path: root/src/lib/libssl/man
diff options
context:
space:
mode:
authorbeck <>2021-10-23 16:29:15 +0000
committerbeck <>2021-10-23 16:29:15 +0000
commit55a62758cd15b69f401e838bf3be390599af37a5 (patch)
tree38d02c3bf3e056c795b3de291d5640ccc31b6038 /src/lib/libssl/man
parent9dc0da1df478f56c0d7bda8d8baf60b103a8aa5c (diff)
downloadopenbsd-55a62758cd15b69f401e838bf3be390599af37a5.tar.gz
openbsd-55a62758cd15b69f401e838bf3be390599af37a5.tar.bz2
openbsd-55a62758cd15b69f401e838bf3be390599af37a5.zip
Add new OpenSSL API SSL_CTX_set_num_tickets and friends.
Since we don't support session tickets in LibreSSL at the moment these functions currently do not have any effect. Again, symbols will appear with tb@'s reptar sized bump.. ok tb@
Diffstat (limited to 'src/lib/libssl/man')
-rw-r--r--src/lib/libssl/man/SSL_CTX_set_num_tickets.355
1 files changed, 55 insertions, 0 deletions
diff --git a/src/lib/libssl/man/SSL_CTX_set_num_tickets.3 b/src/lib/libssl/man/SSL_CTX_set_num_tickets.3
new file mode 100644
index 0000000000..8dacecf65b
--- /dev/null
+++ b/src/lib/libssl/man/SSL_CTX_set_num_tickets.3
@@ -0,0 +1,55 @@
1.\" $OpenBSD: SSL_CTX_set_num_tickets.3,v 1.1 2021/10/23 16:29:15 beck Exp $
2.\"
3.\" Copyright (c) 2021 Bob Beck <beck@openbsd.org>
4.\"
5.\" Permission to use, copy, modify, and distribute this software for any
6.\" purpose with or without fee is hereby granted, provided that the above
7.\" copyright notice and this permission notice appear in all copies.
8.\"
9.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16.\"
17.Dd $Mdocdate: October 23 2021 $
18.Dt SSL_CTX_SET_NUM_TICKETS 3
19.Os
20.Sh NAME
21.Nm SSL_CTX_set_num_tickets ,
22.Nm SSL_CTX_get_num_tickets ,
23.Nm SSL_set_num_tickets ,
24.Nm SSL_get_num_tickets
25.Nd Set and get the number of TLS 1.3 session tickets to be sent
26.Sh SYNOPSIS
27.In openssl/ssl.h
28.Ft void
29.Fn SSL_CTX_set_num_tickets "SSL_CTX *ctx" "size_t num_tickets"
30.Ft SSL_CTX_get_num_tickets "const SSL_CTX *ctx"
31.Fn SSL_set_num_tickets "SSL *ssl" "size_t num_tickets"
32.Ft SSL_get_num_tickets "const SSL *ssl"
33.Sh DESCRIPTION
34These functions set, and retrieve, the configured number of session
35tickets from the respective objects.
36.Pp
37These functions are provided only for compatibility with OpenSSL.
38They have no effect in LibreSSL.
39.Sh RETURN VALUES
40.Fn SSL_CTX_set_num_tickets
41and
42.Fn SSL_set_num_tickets
43always return 1.
44.Pp
45.Fn SSL_CTX_get_num_tickets
46and
47.Fn SSL_get_num_tickets
48return the previously set number of tickets, or 0 if they have not been set.
49.Sh SEE ALSO
50.Xr ssl 3 ,
51.Xr SSL_CTX_new 3
52.Sh HISTORY
53These function first appeared in OpenSSL 1.1.1
54and have been available since
55.Ox 7.1 .