diff options
author | FdaSilvaYY <fdasilvayy@gmail.com> | 2021-02-21 00:04:07 +0100 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2023-04-24 14:41:47 +0200 |
commit | 24a322544373f7acda05e19f64a6c3120d459d5b (patch) | |
tree | 870d572e874206d1b417cf1e1f538d8829f37506 /ssl/ssl_local.h | |
parent | 09ff84bd2752cac649f57cfbf95b49dbce1c69ee (diff) |
dtls: code cleanup and refactorization
- factorize BIO_CTRL_DGRAM_SET_NEXT_TIMEOUT calls.
- simplify a return type
- style nits
Reviewed-by: Todd Short <todd.short@me.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20602)
Diffstat (limited to 'ssl/ssl_local.h')
-rw-r--r-- | ssl/ssl_local.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl/ssl_local.h b/ssl/ssl_local.h index 415e4906b3..044cbf5bf4 100644 --- a/ssl/ssl_local.h +++ b/ssl/ssl_local.h @@ -2668,7 +2668,7 @@ void dtls1_clear_sent_buffer(SSL_CONNECTION *s); void dtls1_get_message_header(const unsigned char *data, struct hm_header_st *msg_hdr); __owur OSSL_TIME dtls1_default_timeout(void); -__owur OSSL_TIME *dtls1_get_timeout(SSL_CONNECTION *s, OSSL_TIME *timeleft); +__owur int dtls1_get_timeout(const SSL_CONNECTION *s, OSSL_TIME *timeleft); __owur int dtls1_check_timeout_num(SSL_CONNECTION *s); __owur int dtls1_handle_timeout(SSL_CONNECTION *s); void dtls1_start_timer(SSL_CONNECTION *s); |