1SSL_GET_FD(3) OpenSSL SSL_GET_FD(3)
2
3
4
6 SSL_get_fd, SSL_get_rfd, SSL_get_wfd - get file descriptor linked to an
7 SSL object
8
10 #include <openssl/ssl.h>
11
12 int SSL_get_fd(const SSL *ssl);
13 int SSL_get_rfd(const SSL *ssl);
14 int SSL_get_wfd(const SSL *ssl);
15
17 SSL_get_fd() returns the file descriptor which is linked to ssl.
18 SSL_get_rfd() and SSL_get_wfd() return the file descriptors for the
19 read or the write channel, which can be different. If the read and the
20 write channel are different, SSL_get_fd() will return the file
21 descriptor of the read channel.
22
24 The following return values can occur:
25
26 -1 The operation failed, because the underlying BIO is not of the
27 correct type (suitable for file descriptors).
28
29 >=0 The file descriptor linked to ssl.
30
32 SSL_set_fd(3), ssl(7) , bio(7)
33
35 Copyright 2000-2016 The OpenSSL Project Authors. All Rights Reserved.
36
37 Licensed under the OpenSSL license (the "License"). You may not use
38 this file except in compliance with the License. You can obtain a copy
39 in the file LICENSE in the source distribution or at
40 <https://www.openssl.org/source/license.html>.
41
42
43
441.1.1k 2021-03-26 SSL_GET_FD(3)