SSL_GET_FD(3)
π NAME π
okay so bestie, welcome to SSL_GET_FD(3) from the Library Functions Manual β this is the page for SSL_get_fd, SSL_get_rfd, and SSL_get_wfd, aka the little functions that get you the file descriptor linked to an SSL object. slay. π
β¨ SYNOPSIS β¨
the synopsis is giving library-and-header energy, and it goes exactly like this:
library βlibsslβ libcrypto #include <openssl/ssl.h>
int
SSL_get_fd(const SSL *ssl);
int
SSL_get_rfd(const SSL *ssl);
int
SSL_get_wfd(const SSL *ssl);
π¦ DESCRIPTION π¦
so SSL_get_fd() returns the file descriptor which is linked to ssl. iconic.
SSL_get_rfd() and SSL_get_wfd() return the file descriptors for the read or the write channel, which can be different. no cap.
if the read and the write channel are different, SSL_get_fd() will return the file descriptor of the read channel. periodt. π
π RETURN VALUES π
the following return values can occur:
β1β the operation failed, because the underlying BIO is not of the correct type (suitable for file descriptors). oof. πβ₯0β the file descriptor linked tossl. yay. πΈ
π SEE ALSO π
π HISTORY π
SSL_get_fd() appeared in SSLeay 0.4 or earlier and has been available since OpenBSD 2.4. fr fr. π«Ά
SSL_get_rfd() and SSL_get_wfd() first appeared in OpenSSL 0.9.6c and have been available since OpenBSD 3.2. π«
and that's the whole vibe, bestie π β this page is from Debian, dated June 8, 2025, under the SSL_GET_FD(3) name. byeee π¦
π¦ where this page comes from
- alpine 3.24: libressl-doc 4.3.1-r0 Β· custom
- arch rolling: libressl 4.4.0-1 Β· ISC AND custom:OpenSSL
- Copyright (c) 2000, 2005, 2013 The OpenSSL Project. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms