SSL_SESSION_REUSED(3ossl)

πŸ“¦ version 3.5.0, in opensuse-leap 16.0

πŸ’… 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 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