summaryrefslogtreecommitdiff
path: root/src/lib/libssl/man/SSL_set_SSL_CTX.3
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libssl/man/SSL_set_SSL_CTX.3')
-rw-r--r--src/lib/libssl/man/SSL_set_SSL_CTX.367
1 files changed, 67 insertions, 0 deletions
diff --git a/src/lib/libssl/man/SSL_set_SSL_CTX.3 b/src/lib/libssl/man/SSL_set_SSL_CTX.3
new file mode 100644
index 0000000000..567e34f681
--- /dev/null
+++ b/src/lib/libssl/man/SSL_set_SSL_CTX.3
@@ -0,0 +1,67 @@
1.\" $OpenBSD: SSL_set_SSL_CTX.3,v 1.1 2020/09/20 10:20:44 schwarze Exp $
2.\"
3.\" Copyright (c) 2020 Ingo Schwarze <schwarze@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: September 20 2020 $
18.Dt SSL_SET_SSL_CTX 3
19.Os
20.Sh NAME
21.Nm SSL_set_SSL_CTX
22.Nd associate an SSL connection object with a context
23.Sh SYNOPSIS
24.In openssl/ssl.h
25.Ft SSL_CTX *
26.Fo SSL_set_SSL_CTX
27.Fa "SSL *ssl"
28.Fa "SSL_CTX* ctx"
29.Fc
30.Sh DESCRIPTION
31.Fn SSL_set_SSL_CTX
32causes
33.Fa ssl
34to use the context
35.Fa ctx
36in the future.
37.Pp
38If
39.Fa ctx
40is
41.Dv NULL ,
42.Fa ssl
43reverts to using the context that it was initially created from with
44.Xr SSL_new 3 .
45.Pp
46If
47.Fa ssl
48already uses
49.Fa ctx ,
50no action occurs.
51.Sh RETURN VALUES
52.Fn SSL_set_SSL_CTX
53returns an internal pointer to the context that
54.Fa ssl
55will use after the call, or
56.Dv NULL
57if memory allocation fails.
58.Sh SEE ALSO
59.Xr ssl 3 ,
60.Xr SSL_clear 3 ,
61.Xr SSL_CTX_new 3 ,
62.Xr SSL_get_SSL_CTX 3 ,
63.Xr SSL_new 3
64.Sh HISTORY
65.Fn SSL_set_SSL_CTX
66first appeared in OpenSSL 0.9.8f and has been available since
67.Ox 4.5 .