]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
heartbeat extension: doc update
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Thu, 26 Jan 2017 13:49:33 +0000 (14:49 +0100)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Thu, 26 Jan 2017 14:42:14 +0000 (15:42 +0100)
Document how to calculate the total TLS data transmitted.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
lib/ext/heartbeat.c

index 26a0928d9ca7cf8fe0f50d9a8e81dfaa3d205542..a1b6893fae1a9b017feb8990efc4584fc2f5be33 100644 (file)
@@ -22,8 +22,6 @@
  */
 
 /* This file implements the TLS heartbeat extension.
- * It was originally implemented during Google SoC 2012 by by Olga Smolenchuk,
- * and later rewritten by Nikos Mavrogiannopoulos.
  */
 
 #include "errors.h"
@@ -151,6 +149,9 @@ heartbeat_send_data(gnutls_session_t session, const void *data,
  * flag %GNUTLS_HEARTBEAT_WAIT, or you need to handle retransmissions
  * and timeouts manually.
  *
+ * The total TLS data transmitted as part of the ping message are given by
+ * the following formula: MAX(16, @data_size)+gnutls_record_overhead_size()+3.
+ *
  * Returns: %GNUTLS_E_SUCCESS on success, otherwise a negative error code.
  *
  * Since: 3.1.2