DTLSV1_GET_TIMEOUT(3ossl)
π DTLSV1_GET_TIMEOUT π
okay bestie, welcome to the ossl manual, section 3 β this is the page for DTLSv1_get_timeout, and it's literally the "when do I need to wake up again??" function. no cap.
β¨ NAME β¨
DTLSv1_get_timeout β figure out when a DTLS or QUIC SSL object next needs a timeout event to be handled π
πΈ SYNOPSIS πΈ
#include <openssl/ssl.h>
int DTLSv1_get_timeout(SSL *s, struct timeval *tv);
π¦ DESCRIPTION π¦
so DTLSv1_get_timeout() is what you call on a DTLS or QUIC SSL object when you wanna know when that SSL object next needs to do internal processing because, like, time passed. β° it's giving "bestie, set me a reminder."
when you call DTLSv1_get_timeout(), it writes into *tv the amount of time left before the SSL object needs to have DTLSv1_handle_timeout() called on it. periodt.
- if the SSL object needs to be ticked immediately, then
*tvgets zeroed and the function still succeeds β returning1. slay. - if no timeout is currently active, this function returns
0. π
heads up: this function is only applicable to DTLS and QUIC objects. call it on any other kind of SSL object and it fails. it said no. π
also lowkey important: the value output by a call to DTLSv1_get_timeout() may change as a result of other calls to the SSL object. so don't go treating it like it's set in stone, bestie. things move. π
once the timeout expires, you should call DTLSv1_handle_timeout() to handle any internal processing that's due β for more info, go see DTLSv1_handle_timeout(3). π«Ά
and finally: SSL_get_event_timeout(3) supersedes all use cases for this function and may be used instead of it. so likeβ¦ if you're picking, that one's the main character. π
π RETURN VALUES π
- On success β writes a duration to
*tvand returns1. ate. β¨ - Returns
0on failure, or if no timeout is currently active. π
π SEE ALSO π
DTLSv1_handle_timeout(3), SSL_get_event_timeout(3), ssl(7)
π COPYRIGHT π
Copyright 2023-2026 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>.
and that's the whole page, bestie!! this was OpenSSL version 3.5.9, dated 2026-09-29, living its best life as DTLSV1_GET_TIMEOUT(3ossl). go set those timers. mwah ππΈβ¨
π¦ where this page comes from
- fedora 43: openssl-devel 1:3.5.9-1.fc43 Β· Apache-2.0
- fedora 43: openssl-devel 1:3.5.9-1.fc43 Β· Apache-2.0
- fedora 44: openssl-devel 1:3.5.9-1.fc44 Β· Apache-2.0
- fedora 44: openssl-devel 1:3.5.9-1.fc44 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms