SSL_RSTATE_STRING(3ossl)
π SSL_RSTATE_STRING β bestie edition π
okay so this is the manual page for SSL_RSTATE_STRING(3ossl) from OpenSSL, and it's literally just two lil functions that tell you what an SSL object is doing while it's reading. yes bestie, we're peeking at the read state. it's giving very backstage-pass energy. π
β¨ NAME β¨
SSL_rstate_string, SSL_rstate_string_long β get textual description of state of an SSL object during read operation π¦
πΈ SYNOPSIS πΈ
#include <openssl/ssl.h>
const char *SSL_rstate_string(SSL *ssl);
const char *SSL_rstate_string_long(SSL *ssl);
likeβ¦ two functions, both taking your SSL *ssl, both handing you back a const char *. no cap. π
π DESCRIPTION π
SSL_rstate_string() returns a 2 letter string indicating the current read state of the SSL object ssl.
SSL_rstate_string_long() returns a string indicating the current read state of the SSL object ssl.
so one is the β¨abbreviatedβ¨ baddie and one spells the whole thing out. same vibe, different word count. π
π₯ NOTES π₯
When performing a read operation, the SSL/TLS engine must parse the record, consisting of header and body.
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 it's not a daily-driver situation, it's more of a niche little moment.
π 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. π§"RB"/"read body"β The body of the record is being evaluated. π"unknown"/"unknown"β The read state is unknown. This should never happen. π (fr fr, if you see this, something is not slaying)
When used with QUIC SSL objects, these functions always return"RH"/"read header"in normal conditions. π
π«Ά SEE ALSO π«Ά
π COPYRIGHT π
Copyright 2001-2023 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>.
and that's the whole thing, bestie π
this was OpenSSL version 3.5.9, dated 2026-09-29, and you just read the SSL_RSTATE_STRING(3ossl) page in its full chaotic glory. stay hydrated, go read your records, and remember: "RD" is the goal, "unknown" should never happen. mwah πβ¨
π¦ where this page comes from
- fedora 43: openssl-devel 1:3.5.9-1.fc43 Β· Apache-2.0
- fedora 43: openssl-devel 1:3.5.9-1.fc43 Β· Apache-2.0
- fedora 44: openssl-devel 1:3.5.9-1.fc44 Β· Apache-2.0
- fedora 44: openssl-devel 1:3.5.9-1.fc44 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms