diff options
Diffstat (limited to 'src/lib/libssl/man/SSL_set_bio.3')
-rw-r--r-- | src/lib/libssl/man/SSL_set_bio.3 | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/src/lib/libssl/man/SSL_set_bio.3 b/src/lib/libssl/man/SSL_set_bio.3 new file mode 100644 index 0000000000..21750fd66c --- /dev/null +++ b/src/lib/libssl/man/SSL_set_bio.3 | |||
@@ -0,0 +1,51 @@ | |||
1 | .\" | ||
2 | .\" $OpenBSD: SSL_set_bio.3,v 1.1 2016/11/05 15:32:20 schwarze Exp $ | ||
3 | .\" | ||
4 | .Dd $Mdocdate: November 5 2016 $ | ||
5 | .Dt SSL_SET_BIO 3 | ||
6 | .Os | ||
7 | .Sh NAME | ||
8 | .Nm SSL_set_bio | ||
9 | .Nd connect the SSL object with a BIO | ||
10 | .Sh SYNOPSIS | ||
11 | .In openssl/ssl.h | ||
12 | .Ft void | ||
13 | .Fn SSL_set_bio "SSL *ssl" "BIO *rbio" "BIO *wbio" | ||
14 | .Sh DESCRIPTION | ||
15 | .Fn SSL_set_bio | ||
16 | connects the | ||
17 | .Vt BIO Ns | ||
18 | s | ||
19 | .Fa rbio | ||
20 | and | ||
21 | .Fa wbio | ||
22 | for the read and write operations of the TLS/SSL (encrypted) side of | ||
23 | .Fa ssl . | ||
24 | .Pp | ||
25 | The SSL engine inherits the behaviour of | ||
26 | .Fa rbio | ||
27 | and | ||
28 | .Fa wbio , | ||
29 | respectively. | ||
30 | If a | ||
31 | .Vt BIO | ||
32 | is non-blocking, the | ||
33 | .Fa ssl | ||
34 | will also have non-blocking behaviour. | ||
35 | .Pp | ||
36 | If there was already a | ||
37 | .Vt BIO | ||
38 | connected to | ||
39 | .Fa ssl , | ||
40 | .Xr BIO_free 3 | ||
41 | will be called (for both the reading and writing side, if different). | ||
42 | .Sh RETURN VALUES | ||
43 | .Fn SSL_set_bio | ||
44 | cannot fail. | ||
45 | .Sh SEE ALSO | ||
46 | .Xr bio 3 , | ||
47 | .Xr ssl 3 , | ||
48 | .Xr SSL_accept 3 , | ||
49 | .Xr SSL_connect 3 , | ||
50 | .Xr SSL_get_rbio 3 , | ||
51 | .Xr SSL_shutdown 3 | ||