1e71b7053SJung-uk Kim=pod
2e71b7053SJung-uk Kim
3e71b7053SJung-uk Kim=head1 NAME
4e71b7053SJung-uk Kim
5e71b7053SJung-uk KimDTLS_timer_cb,
6e71b7053SJung-uk KimDTLS_set_timer_cb
7e71b7053SJung-uk Kim- Set callback for controlling DTLS timer duration
8e71b7053SJung-uk Kim
9e71b7053SJung-uk Kim=head1 SYNOPSIS
10e71b7053SJung-uk Kim
11e71b7053SJung-uk Kim #include <openssl/ssl.h>
12e71b7053SJung-uk Kim
13e71b7053SJung-uk Kim typedef unsigned int (*DTLS_timer_cb)(SSL *s, unsigned int timer_us);
14e71b7053SJung-uk Kim
15e71b7053SJung-uk Kim void DTLS_set_timer_cb(SSL *s, DTLS_timer_cb cb);
16e71b7053SJung-uk Kim
17e71b7053SJung-uk Kim=head1 DESCRIPTION
18e71b7053SJung-uk Kim
19e71b7053SJung-uk KimThis function sets an optional callback function for controlling the
20e71b7053SJung-uk Kimtimeout interval on the DTLS protocol. The callback function will be
21e71b7053SJung-uk Kimcalled by DTLS for every new DTLS packet that is sent.
22e71b7053SJung-uk Kim
23e71b7053SJung-uk Kim=head1 RETURN VALUES
24e71b7053SJung-uk Kim
25e71b7053SJung-uk KimReturns void.
26e71b7053SJung-uk Kim
27e71b7053SJung-uk Kim=head1 HISTORY
28e71b7053SJung-uk Kim
296935a639SJung-uk KimThe DTLS_set_timer_cb() function was added in OpenSSL 1.1.1.
30e71b7053SJung-uk Kim
31e71b7053SJung-uk Kim=head1 COPYRIGHT
32e71b7053SJung-uk Kim
33e71b7053SJung-uk KimCopyright 2017 The OpenSSL Project Authors. All Rights Reserved.
34e71b7053SJung-uk Kim
35*b077aed3SPierre ProncheryLicensed under the Apache License 2.0 (the "License").  You may not use
36e71b7053SJung-uk Kimthis file except in compliance with the License.  You can obtain a copy
37e71b7053SJung-uk Kimin the file LICENSE in the source distribution or at
38e71b7053SJung-uk KimL<https://www.openssl.org/source/license.html>.
39e71b7053SJung-uk Kim
40e71b7053SJung-uk Kim=cut
41