1SSL_GET_FD(3ossl)                   OpenSSL                  SSL_GET_FD(3ossl)
2
3
4

NAME

6       SSL_get_fd, SSL_get_rfd, SSL_get_wfd - get file descriptor linked to an
7       SSL object
8

SYNOPSIS

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

DESCRIPTION

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

RETURN VALUES

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

SEE ALSO

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 Apache License 2.0 (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
443.0.9                             2023-07-27                 SSL_GET_FD(3ossl)
Impressum