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 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