SSL_SESSION_REUSED(3ossl)
π SSL_SESSION_REUSED (3ossl) β the OpenSSL glow-up β¨
okay so bestie, you're poking around in the OpenSSL man pages (the 3ossl section, iconic of you) and you found this little cutie: SSL_session_reused β it's the function that tells you whether the handshake you just did was a reuse situation or a fresh new thing. π
πΈ NAME
SSL_session_reused β query whether a reused session was negotiated during handshake
like literally that's the whole vibe check of this page: was this session reused or not? π¦
β¨ SYNOPSIS
#include <openssl/ssl.h>
int SSL_session_reused(const SSL *ssl);
she takes one const SSL * pointer and hands you back an int. no cap, that's it. π«Ά
π DESCRIPTION
Query whether a reused session was negotiated during the handshake.
that's the tea, that's the assignment. you're asking your SSL object, "bestie, did we reuse a session or not?" π
π« NOTES
okay so here's the lore π β during the negotiation, a client can propose to reuse a session. then the server goes and looks up that session in its cache. and if both client and server agree on the session, it will be reused, and a flag gets set that can be queried by the application. that's the flag you're checking with this function. slay, honestly. π
π₯ RETURN VALUES
the following return values can occur:
0β a new session was negotiated. fresh out the box, brand new, main character debut energy β¨1β a session was reused. she's a returning icon, we've seen her before π
π¦ SEE ALSO
go read those, 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 please respect the license bestie, it's giving legally binding π
okay that's the whole page, mwah π β this was 3.5.0, dated 2026-09-25, brought to you by the SSL_SESSION_REUSED(3ossl) girlies. periodt. ππ§π
π¦ where this page comes from
- opensuse-leap 16.0: openssl-3-doc 3.5.0-160000.11.1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms