diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-07-03 11:51:20 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-07-13 08:48:06 +0200 |
commit | 64df8840e18b31ddd9f3d246c62854f428e0c632 (patch) | |
tree | 954f87df848b93f0babe25a648f964cbd6cfdcbd /lib/dtls.h | |
parent | 1225fb84edf6da1798d78c276093642a7e186203 (diff) | |
download | gnutls-64df8840e18b31ddd9f3d246c62854f428e0c632.tar.gz |
record: more precise calculation of max recv size
Previously we were using a rough calculation of the max recv size
based on maximum values. Now we calculate the exact maximum value once
the epoch is initialized and enforce it throughout the session.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'lib/dtls.h')
-rw-r--r-- | lib/dtls.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/dtls.h b/lib/dtls.h index 8c88874ece..c99fdca91c 100644 --- a/lib/dtls.h +++ b/lib/dtls.h @@ -111,6 +111,11 @@ inline static void _dtls_async_timer_check(gnutls_session_t session) } } +int _gnutls_record_overhead(const cipher_entry_st * cipher, + const mac_entry_st * mac, + unsigned etm, + unsigned est_data); + /* Returns non-zero if the async timer is active */ inline static int _dtls_async_timer_active(gnutls_session_t session) { |