summaryrefslogtreecommitdiff
path: root/lib/dtls.h
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2017-07-03 11:51:20 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2017-07-13 08:48:06 +0200
commit64df8840e18b31ddd9f3d246c62854f428e0c632 (patch)
tree954f87df848b93f0babe25a648f964cbd6cfdcbd /lib/dtls.h
parent1225fb84edf6da1798d78c276093642a7e186203 (diff)
downloadgnutls-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.h5
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)
{