SSL_RSTATE_STRING(3)
π NAME π
okay so this is the SSL_RSTATE_STRING(3) page, hanging out in the Library Functions Manual π
and it's all about SSL_rstate_string and SSL_rstate_string_long β the two functions that get you a textual description of the state of an SSL object during a read operation. slay.
β¨ SYNOPSIS β¨
bestie, you're pulling this in from the library βlibsslβ libcrypto crew, and you include #include <openssl/ssl.h> β then the calls look exactly like this:
const char *
SSL_rstate_string(SSL *ssl);
const char *
SSL_rstate_string_long(SSL *ssl);
π¦ DESCRIPTION π¦
SSL_rstate_string() returns a 2-letter string indicating the current read state of the SSL object ssl. short and cute, iykyk.
SSL_rstate_string_long() returns a string indicating the current read state of the SSL object ssl. the longer, chattier version π¬.
when you're performing a read operation, the SSL/TLS engine must parse the record, consisting of header and body. both. the whole thing. when working in a blocking environment, SSL_rstate_string[_long]() should always return "RD"/"read done" β periodt.
this function should only seldom be needed in applications. like, genuinely, it's not the main character of your app's needs π.
π₯ RETURN VALUES π₯
SSL_rstate_string() and SSL_rstate_string_long() can return the following values:
"RH"/"read header"β the header of the record is being evaluated. we're looking at the header bestie."RB"/"read body"β the body of the record is being evaluated. now we're in the body era."RD"/"read done"β the record has been completely processed. finished. ate. π"unknown"/"unknown"β the read state is unknown. this should never happen π like fr fr, never.
π SEE ALSO π
πΈ HISTORY πΈ
SSL_rstate_string() and SSL_rstate_string_long() first appeared in SSLeay 0.6.0 and have been available since OpenBSD 2.4. iconic lineage honestly π
mwah π this page's cute little footer says Debian, June 8, 2025 β that's the source/version and date, bestie π«Άβ¨
π¦ 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) 2001 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