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 πŸŽ€

go read those when you're done here, 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>.


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