SSL_GET_DEFAULT_TIMEOUT(3ossl)

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

🌸 NAME 🌸

SSL_get_default_timeout β€” get default session timeout value. You're reading the SSL_GET_DEFAULT_TIMEOUT(3ossl) page, aka the 3ossl manual, bestie πŸ’–


✨ SYNOPSIS ✨

okay so include the header and call it like this, no cap:

#include <openssl/ssl.h>

long SSL_get_default_timeout(const SSL *ssl);

πŸŽ€ DESCRIPTION πŸŽ€

SSL_get_default_timeout() returns the default timeout value assigned to SSL_SESSION objects negotiated for the protocol valid for ssl.

πŸ’… NOTES πŸ’…

Whenever a new session is negotiated, it is assigned a timeout value, after which it will not be accepted for session reuse. If the timeout value was not explicitly set using SSL_CTX_set_timeout(3), the hardcoded default timeout for the protocol will be used.

SSL_get_default_timeout() returns this hardcoded value, which is 300 seconds for all currently supported protocols.

bestie, session reuse has a time limit and that's just the vibe check πŸ’€

🫢 RETURN VALUES 🫢

See description.

πŸ¦‹ 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>.


okay bestie, that's the whole page πŸ’– it's from OpenSSL 3.5.0 and dated 2026-09-25 β€” slay, periodt ✨

πŸ“¦ where this page comes from