SSL_GET_DEFAULT_TIMEOUT(3ossl)
πΈ 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 π¦
ssl(7)SSL_CTX_set_session_cache_mode(3)SSL_SESSION_get_time(3)SSL_CTX_flush_sessions(3)SSL_get_default_timeout(3)
π 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>.
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
- 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