xref: /freebsd-src/crypto/openssl/doc/man3/SSL_get_rbio.pod (revision e71b70530d95c4f34d8bdbd78d1242df1ba4a945)
1*e71b7053SJung-uk Kim=pod
2*e71b7053SJung-uk Kim
3*e71b7053SJung-uk Kim=head1 NAME
4*e71b7053SJung-uk Kim
5*e71b7053SJung-uk KimSSL_get_rbio, SSL_get_wbio - get BIO linked to an SSL object
6*e71b7053SJung-uk Kim
7*e71b7053SJung-uk Kim=head1 SYNOPSIS
8*e71b7053SJung-uk Kim
9*e71b7053SJung-uk Kim #include <openssl/ssl.h>
10*e71b7053SJung-uk Kim
11*e71b7053SJung-uk Kim BIO *SSL_get_rbio(SSL *ssl);
12*e71b7053SJung-uk Kim BIO *SSL_get_wbio(SSL *ssl);
13*e71b7053SJung-uk Kim
14*e71b7053SJung-uk Kim=head1 DESCRIPTION
15*e71b7053SJung-uk Kim
16*e71b7053SJung-uk KimSSL_get_rbio() and SSL_get_wbio() return pointers to the BIOs for the
17*e71b7053SJung-uk Kimread or the write channel, which can be different. The reference count
18*e71b7053SJung-uk Kimof the BIO is not incremented.
19*e71b7053SJung-uk Kim
20*e71b7053SJung-uk Kim=head1 RETURN VALUES
21*e71b7053SJung-uk Kim
22*e71b7053SJung-uk KimThe following return values can occur:
23*e71b7053SJung-uk Kim
24*e71b7053SJung-uk Kim=over 4
25*e71b7053SJung-uk Kim
26*e71b7053SJung-uk Kim=item NULL
27*e71b7053SJung-uk Kim
28*e71b7053SJung-uk KimNo BIO was connected to the SSL object
29*e71b7053SJung-uk Kim
30*e71b7053SJung-uk Kim=item Any other pointer
31*e71b7053SJung-uk Kim
32*e71b7053SJung-uk KimThe BIO linked to B<ssl>.
33*e71b7053SJung-uk Kim
34*e71b7053SJung-uk Kim=back
35*e71b7053SJung-uk Kim
36*e71b7053SJung-uk Kim=head1 SEE ALSO
37*e71b7053SJung-uk Kim
38*e71b7053SJung-uk KimL<SSL_set_bio(3)>, L<ssl(7)> , L<bio(7)>
39*e71b7053SJung-uk Kim
40*e71b7053SJung-uk Kim=head1 COPYRIGHT
41*e71b7053SJung-uk Kim
42*e71b7053SJung-uk KimCopyright 2000-2016 The OpenSSL Project Authors. All Rights Reserved.
43*e71b7053SJung-uk Kim
44*e71b7053SJung-uk KimLicensed under the OpenSSL license (the "License").  You may not use
45*e71b7053SJung-uk Kimthis file except in compliance with the License.  You can obtain a copy
46*e71b7053SJung-uk Kimin the file LICENSE in the source distribution or at
47*e71b7053SJung-uk KimL<https://www.openssl.org/source/license.html>.
48*e71b7053SJung-uk Kim
49*e71b7053SJung-uk Kim=cut
50