SSL_SESSION_REUSED(3SSL)
π SSL_SESSION_REUSED(3SSL) π
okay bestie, welcome to the SSL_session_reused page from the OpenSSL manual (3SSL section, we love a library function moment) β¨
πΈ NAME πΈ
SSL_session_reused β ask whether a reused session got negotiated during the handshake π
π¦ SYNOPSIS π¦
#include <openssl/ssl.h>
int SSL_session_reused(const SSL *ssl);
π DESCRIPTION π
So basically, you're querying whether a reused session was negotiated during the handshake. That's it. That's the whole vibe check. π
β¨ NOTES β¨
Here's the tea, bestie π΅
During the negotiation, a client can propose to reuse a session. The server then goes and looks that session up in its cache. If both the client and the server agree on the session, it gets reused β and a flag gets set that your application can query. No cap. That flag is what SSL_session_reused is peeking at. π«Ά
π₯ RETURN VALUES π₯
so here are the possible glow-ups this function can return:
0β a new session was negotiated. fresh start, main character era π1β a session was reused. we're running it back, iconic behavior π
π SEE ALSO π
π COPYRIGHT π
Copyright 2001-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>.
and that's the whole page, bestie, tysm for reading π₯Ή this was 4.0.3, dated 2026-09-29, and it's the SSL_SESSION_REUSED(3SSL) manual page β slay, go reuse a session responsibly β¨π
π¦
π¦ where this page comes from
- ubuntu stonking: libssl-doc 4.0.3-1ubuntu1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms