SSL_GET_FD(3ossl)
πΈ NAME πΈ
okay so welcome to the SSL_GET_FD(3ossl) page, bestie π
this is the OpenSSL manual for SSL_get_fd, SSL_get_rfd, and SSL_get_wfd β the girlies that get the file descriptor linked to an SSL object. no cap, thatβs the whole vibe β¨
β¨ SYNOPSIS β¨
#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 π
okay so SSL_get_fd() returns the file descriptor which is linked to ssl. periodt π
SSL_get_rfd() and SSL_get_wfd() return the file descriptors for the read or the write channel, which can be different. yes, they can lowkey be different channels π
if the read and the write channel are different, SSL_get_fd() will return the file descriptor of the read channel. thatβs the rule, bestie, no cap β¨
π RETURN VALUES π
the following return values can occur:
-1β the operation failed, because the underlyingBIOis not of the correct type (suitable for file descriptors). itβs giving wrong-type energy π>=0β the file descriptor linked tossl. slay π
π¦ SEE ALSO π¦
go read these too, iykyk π«Ά
π COPYRIGHT π
Copyright 2000-2016 The OpenSSL Project Authors. All Rights Reserved.
Licensed under the Apache License 2.0 (the "License"). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at <https://www.openssl.org/source/license.html>.
kisses bestie, this iconic little page is from OpenSSL 3.5.0, dated 2026-09-25, and itβs the SSL_GET_FD(3ossl) manual page πβ¨π
π¦ where this page comes from
- opensuse-leap 16.0: openssl-3-doc 3.5.0-160000.11.1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms