SSL_GET_DEFAULT_TIMEOUT(3ossl)

πŸ“¦
version 15.1 Β· 3 versions
, in freebsd 15.1

πŸ’… SSL_GET_DEFAULT_TIMEOUT(3ossl) β€” bestie edition

okay so this is the 3ossl manual page, and it's literally about one (1) function that tells you how long a session gets to live before the universe says "nope, expired." it's short, it's sweet, it's giving "small but mighty." let's get into it πŸŽ€


✨ 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);

that's it. that's the whole vibe. one include, one function, zero drama πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

so SSL_get_default_timeout() returns the default timeout value that gets assigned to SSL_SESSION objects β€” you know, the sessions negotiated for whatever protocol is valid for ssl. it's like the built-in "you have this long before i stop recognizing you" timer ⏳

literally just hands you back the default number. iconic behavior, honestly.


πŸ‘‘ NOTES πŸ‘‘

okay here's the tea 🍡 every time a new session gets negotiated, it gets assigned a timeout value. once that timer runs out, that session will not be accepted for session reuse anymore. bye bestie, it's over πŸ’€

and if the timeout value wasn't explicitly set using SSL_CTX_set_timeout(3)? then the hardcoded default timeout for the protocol is what you get. no custom settings, no problem β€” the baked-in number steps in πŸ”₯

and what is that hardcoded value, you ask? SSL_get_default_timeout() returns it, and it's 300 seconds for all currently supported protocols. three hundred. five minutes. that's the whole number. periodt ⭐


🫢 RETURN VALUES 🫢

see description. yeah, that's the whole section β€” it said what it said and it's not elaborating πŸ™ˆ (it returns the default timeout value, bestie.)


🌈 SEE ALSO 🌈

go read those if you want the full lore 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 read the license before you do anything spicy with this, okay? 🫢

and that's a wrap, bestie 🧚 this page was brought to you by OpenSSL 3.5.6, dated 2026-04-07, filed under SSL_GET_DEFAULT_TIMEOUT(3ossl) β€” go forth and set those timeouts responsibly πŸ’œπŸŽ€

πŸ“¦ where this page comes from