SSL_SESSION_REUSED(3)
π SSL_SESSION_REUSED(3) π
okay bestie so this is a page from the Library Functions Manual and it's literally about asking one tiny question: did we just reuse a session or not? no cap, that's the whole vibe. π
β¨ NAME β¨
SSL_session_reused β the little function that tells you whether a reused session was negotiated during the handshake π¦
πΈ SYNOPSIS πΈ
library βlibsslβ libcrypto #include <openssl/ssl.h>
int
SSL_session_reused(SSL *ssl);
like yes, she's short. she's iconic. she takes exactly one SSL *ssl and returns an int. periodt. π
π«Ά DESCRIPTION π«Ά
So what does she actually do? She queries whether a reused session was negotiated during the handshake. that's it. that's the job. π
Here's the lore though, because it's honestly kind of slay:
During the negotiation, a client can propose to reuse a session. the server then goes and looks that session up in its cache (very main character of her). 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. π
so basically: client says "hey can we reuse this?", server checks the cache, they both agree, boom, reused, flag set, and your application can ask about it with this function. the way that works is genuinely so clean. β
π₯ RETURN VALUES π₯
The following return values can occur, and honestly it's giving "spoiler alert":
0β a new session was negotiated. fresh start, new beginnings, we're so back. π1β a session was reused. recycling era, environmentally conscious queen. β»οΈπ
no like literally those are the only two. she's binary-coded. π©·
π SEE ALSO π
go read these too bestie, they're all part of the same friend group:
π¦ HISTORY π¦
SSL_session_reused() first appeared in SSLeay 0.8.0 and has been available since OpenBSD 2.4. so she's been serving since the ancient times and honestly she hasn't aged a day. πβ¨
and that's the page!! π this little legend came to you from the Debian crew β specifically dated June 8, 2025, so you know it's fresh β and it's SSL_SESSION_REUSED(3) and she ate. mwah. π
ππ«Ά
π¦ 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