1SSL_get_fd(3) OpenSSL SSL_get_fd(3)
2
3
4
6 SSL_get_fd - get file descriptor linked to an SSL object
7
9 #include <openssl/ssl.h>
10
11 int SSL_get_fd(const SSL *ssl);
12 int SSL_get_rfd(const SSL *ssl);
13 int SSL_get_wfd(const SSL *ssl);
14
16 SSL_get_fd() returns the file descriptor which is linked to ssl.
17 SSL_get_rfd() and SSL_get_wfd() return the file descriptors for the
18 read or the write channel, which can be different. If the read and the
19 write channel are different, SSL_get_fd() will return the file
20 descriptor of the read channel.
21
23 The following return values can occur:
24
25 -1 The operation failed, because the underlying BIO is not of the
26 correct type (suitable for file descriptors).
27
28 >=0 The file descriptor linked to ssl.
29
31 SSL_set_fd(3), ssl(3) , bio(3)
32
33
34
351.0.2o 2018-03-27 SSL_get_fd(3)