168651Skris=pod
268651Skris
368651Skris=head1 NAME
468651Skris
568651SkrisSSL_set_bio - connect the SSL object with a BIO
668651Skris
768651Skris=head1 SYNOPSIS
868651Skris
968651Skris #include <openssl/ssl.h>
1068651Skris
1168651Skris void SSL_set_bio(SSL *ssl, BIO *rbio, BIO *wbio);
1268651Skris
1368651Skris=head1 DESCRIPTION
1468651Skris
1568651SkrisSSL_set_bio() connects the BIOs B<rbio> and B<wbio> for the read and write
1668651Skrisoperations of the TLS/SSL (encrypted) side of B<ssl>.
1768651Skris
1868651SkrisThe SSL engine inherits the behaviour of B<rbio> and B<wbio>, respectively.
1968651SkrisIf a BIO is non-blocking, the B<ssl> will also have non-blocking behaviour.
2068651Skris
2168651SkrisIf there was already a BIO connected to B<ssl>, BIO_free() will be called
2268651Skris(for both the reading and writing side, if different).
2368651Skris
2468651Skris=head1 RETURN VALUES
2568651Skris
2668651SkrisSSL_set_bio() cannot fail.
2768651Skris
2868651Skris=head1 SEE ALSO
2968651Skris
3068651SkrisL<SSL_get_rbio(3)|SSL_get_rbio(3)>,
3168651SkrisL<SSL_connect(3)|SSL_connect(3)>, L<SSL_accept(3)|SSL_accept(3)>,
3268651SkrisL<SSL_shutdown(3)|SSL_shutdown(3)>, L<ssl(3)|ssl(3)>, L<bio(3)|bio(3)>
3368651Skris
3468651Skris=cut
35