SSL_PENDING(3)
π SSL_PENDING(3) π
okay bestie, this is the SSL_PENDING(3) page from the Library Functions Manual, and itβs literally about checking how many readable bytes are already buffered in an SSL object. no cap.
πΈ NAME πΈ
SSL_pending β obtain number of readable bytes buffered in an SSL object.
β¨ SYNOPSIS β¨
library βlibsslβ libcrypto #include <openssl/ssl.h>
int
SSL_pending(const SSL *ssl);
π DESCRIPTION π
Data comes in from the peer in whole blocks called records. A whole record gets processed β like decrypted β all in one go, and then itβs buffered until your app reads it by calling SSL_read(3).
SSL_pending() returns the number of bytes of application data that are available for immediate read.
Vibe check, bestie: SSL_pending() only takes into account bytes from the TLS/SSL record that is currently being processed, if there is one. itβs not out here counting every byte in the universe.
π RETURN VALUES π
SSL_pending() returns the number of buffered and processed application data bytes that are pending and are available for immediate read.
π«Ά SEE ALSO π«Ά
π HISTORY π
SSL_pending() appeared in SSLeay 0.4 or earlier and has been available since OpenBSD 2.4. iconic longevity honestly.
π BUGS π
Up to OpenSSL 0.9.6, SSL_pending() did not check if the record type of pending data is application data. yeah. noted.
Debian Β· June 8, 2025 Β· SSL_PENDING(3) β bye bestie, go read those bytes π
π¦ 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, 2015, 2016 The OpenSSL Project
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms