SSL_GET_DEFAULT_TIMEOUT(3SSL)
π SSL_GET_DEFAULT_TIMEOUT(3SSL) π
okay bestie, welcome to the SSL_get_default_timeout page, part of the OpenSSL fam π
β¨ NAME β¨
SSL_get_default_timeout β get the default session timeout value, no cap π
πΈ SYNOPSIS πΈ
#include <openssl/ssl.h>
long SSL_get_default_timeout(const SSL *ssl);
literal two lines of setup and you're in, love that for us π«Ά
π¦ DESCRIPTION π¦
so SSL_get_default_timeout() hands you back the default timeout value that gets slapped onto SSL_SESSION objects β the ones negotiated for whatever protocol is valid for ssl. that's it. that's the function. it's giving "one job, does it well" π
π NOTES π
here's the tea π every time a new session gets negotiated, it gets assigned a timeout value. and after that timeout? it will not be accepted for session reuse. bye bye π
if that timeout was never explicitly set using SSL_CTX_set_timeout(3), then the hardcoded default timeout for the protocol is what you get instead. no notes, it just vibes π
and yes β SSL_get_default_timeout() returns that hardcoded value, which is 300 seconds for all currently supported protocols. three hundo. five minutes. iconic β³β¨
π RETURN VALUES π
see description bestie, it's all up there π (fr fr, that's where the answer lives)
π 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)
go read those when you're done here, iykyk ππ
π 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>.
aaaand that's the whole page, bestie!! this was version 4.0.3, dated 2026-09-29, and it lives under the name SSL_GET_DEFAULT_TIMEOUT(3SSL) π mwah, go forth and timeout responsibly ππ¦β¨
π¦ where this page comes from
- ubuntu stonking: libssl-doc 4.0.3-1ubuntu1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms