2022-11-15 02:13:35 +08:00
|
|
|
=pod
|
|
|
|
|
|
|
|
=head1 NAME
|
|
|
|
|
|
|
|
SSL_get_tick_timeout - determine when an SSL object next needs to be ticked
|
|
|
|
|
|
|
|
=head1 SYNOPSIS
|
|
|
|
|
|
|
|
#include <openssl/ssl.h>
|
|
|
|
|
2023-01-06 19:50:55 +08:00
|
|
|
int SSL_get_tick_timeout(SSL *s, struct timeval *tv);
|
2022-11-15 02:13:35 +08:00
|
|
|
|
|
|
|
=head1 DESCRIPTION
|
|
|
|
|
|
|
|
SSL_get_tick_timeout() determines when the SSL object next needs to perform
|
2022-11-30 16:04:34 +08:00
|
|
|
internal processing due to the passage of time.
|
2022-11-15 02:13:35 +08:00
|
|
|
|
2022-12-15 15:05:21 +08:00
|
|
|
Calling SSL_get_tick_timeout() results in I<*tv> being written with an amount of
|
2022-11-15 02:13:35 +08:00
|
|
|
time left before the SSL object needs to be ticked. If the SSL object needs to
|
|
|
|
be ticked immediately, it is set to zero; if the SSL object currently does not
|
2022-12-15 15:05:21 +08:00
|
|
|
need to be ticked at any point in the future, I<tv->tv_sec> is set to -1,
|
2022-11-15 02:13:35 +08:00
|
|
|
representing infinity.
|
|
|
|
|
2022-11-30 16:04:34 +08:00
|
|
|
This function is currently applicable only to DTLS and QUIC connection SSL
|
|
|
|
objects. If it is called on any other kind of SSL object, it always outputs
|
|
|
|
infinity. This is considered a success condition.
|
|
|
|
|
2022-11-15 02:13:35 +08:00
|
|
|
Note that the value output by a call to SSL_get_tick_timeout() may change as a
|
|
|
|
result of other calls to the SSL object.
|
|
|
|
|
|
|
|
Once the timeout expires, SSL_tick() should be called to handle any internal
|
|
|
|
processing which is due; for more information, see L<SSL_tick(3)>.
|
|
|
|
|
|
|
|
=head1 RETURN VALUES
|
|
|
|
|
|
|
|
Returns 1 on success and 0 on failure.
|
|
|
|
|
|
|
|
=head1 SEE ALSO
|
|
|
|
|
|
|
|
L<SSL_tick(3)>, L<ssl(7)>
|
|
|
|
|
|
|
|
=head1 HISTORY
|
|
|
|
|
|
|
|
The SSL_get_tick_timeout() function was added in OpenSSL 3.2.
|
|
|
|
|
|
|
|
=head1 COPYRIGHT
|
|
|
|
|
2022-12-15 15:05:21 +08:00
|
|
|
Copyright 2022 The OpenSSL Project Authors. All Rights Reserved.
|
2022-11-15 02:13:35 +08:00
|
|
|
|
|
|
|
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
|
|
|
|
L<https://www.openssl.org/source/license.html>.
|
|
|
|
|
|
|
|
=cut
|