150472Speter=pod 233975Sjdp 333975Sjdp=head1 NAME 433975Sjdp 533975SjdpSSL_get_fd - get file descriptor linked to an SSL object 633975Sjdp 784906Sobrien=head1 SYNOPSIS 884906Sobrien 984906Sobrien #include <openssl/ssl.h> 1084906Sobrien 1189886Sobrien int SSL_get_fd(const SSL *ssl); 1284906Sobrien int SSL_get_rfd(const SSL *ssl); 1384906Sobrien int SSL_get_wfd(const SSL *ssl); 1484906Sobrien 1584906Sobrien=head1 DESCRIPTION 1684906Sobrien 1733975SjdpSSL_get_fd() returns the file descriptor which is linked to B<ssl>. 1833975SjdpSSL_get_rfd() and SSL_get_wfd() return the file descriptors for the 19read or the write channel, which can be different. If the read and the 20write channel are different, SSL_get_fd() will return the file descriptor 21of the read channel. 22 23=head1 RETURN VALUES 24 25The following return values can occur: 26 27=over 4 28 29=item -1 30 31The operation failed, because the underlying BIO is not of the correct type 32(suitable for file descriptors). 33 34=item E<gt>=0 35 36The file descriptor linked to B<ssl>. 37 38=back 39 40=head1 SEE ALSO 41 42L<SSL_set_fd(3)|SSL_set_fd(3)>, L<ssl(3)|ssl(3)> , L<bio(3)|bio(3)> 43 44=cut 45