summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2006-01-29 10:48:42 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2006-01-29 10:48:42 +0000
commitb5d5451e276ee6e25186f399659c2debc6f8bb01 (patch)
tree1161c00b2e297e2ada44d57b1711c3fa9f4a5c42
parent9b1e471b4dfe72a0d45f285ef0bad943b31b9bab (diff)
downloadgnutls-b5d5451e276ee6e25186f399659c2debc6f8bb01.tar.gz
added some text about premature termination of sessions.
-rw-r--r--lib/gnutls_record.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/gnutls_record.c b/lib/gnutls_record.c
index b543472565..6522bc07f5 100644
--- a/lib/gnutls_record.c
+++ b/lib/gnutls_record.c
@@ -178,6 +178,12 @@ gnutls_transport_get_ptr2 (gnutls_session_t session,
* you should wait for an EOF from the peer.
* GNUTLS_SHUT_WR sends an alert containing a close request.
*
+ * Note that not all implementations will properly terminate a TLS connection.
+ * Some of them, usually for performance reasons, will terminate only the
+ * underlying transport layer, thus causing a transmission error to the peer.
+ * This error cannot be distinguished from a malicious party prematurely terminating
+ * the session, thus this behavior is not recommended.
+ *
* This function may also return GNUTLS_E_AGAIN or GNUTLS_E_INTERRUPTED; cf.
* gnutls_record_get_direction().
*