SSL_SESSION_REUSED(3ossl)
π SSL_SESSION_REUSED(3ossl) π
okay bestie, so this is a page from the OpenSSL manual β the 3ossl collection, if we're being precise β and it's about one tiny little function that answers one very big question: did we just reuse a session, or did we start fresh? π¦
β¨ NAME β¨
SSL_session_reused β the vibe-check function that tells you whether a reused session was negotiated during the handshake π
πΈ SYNOPSIS πΈ
#include <openssl/ssl.h>
int SSL_session_reused(const SSL *ssl);
like, that's it. one include, one function call. iconic behavior honestly. π
π DESCRIPTION π
So you call this and it queries whether a reused session was negotiated during the handshake. That's the whole job. No drama, no side quests, just a yes-or-no on the session-reuse situation. β¨
π« NOTES π«
Okay so here's the lore, bestie. π§ During the negotiation, the client can propose to reuse a session. Then the server goes and looks that session up in its cache. And if both client and server agree on the session? It gets reused β and a flag gets set, which is literally the flag your application can query with this function. no cap. π₯
π RETURN VALUES π
Two possible outcomes, and they are giving very binary:
0β A new session was negotiated. fresh start era. π±1β A session was reused. we've been here before, bestie. π
π SEE ALSO π
Go read these next, they're all connected, iykyk:
π 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>.
fr fr, read the license before you go wild with it. it's giving legal but make it cute. π«Ά
and that's the whole page, bestie!! π β¨ this was OpenSSL 3.5.9, dated 2026-09-29 β catch you on the next manpage, 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