summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2018-06-19 13:16:13 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2018-06-19 13:17:07 +0200
commit7f0dd581a3abd029b9d507a078cfc7b5eefc927b (patch)
tree23600ff5c261d51cbd9b42a993eb6af44b06eb0f
parent614a59acc0e861f9961a3f67967479a94b39dee0 (diff)
downloadgnutls-tmp-same-session-id.tar.gz
gnutls_session_get_id: document restrictionstmp-same-session-id
This documents the fact that a TLS session ID cannot be relied to be unique or to even have a meaningful value. Resolves #484 Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
-rw-r--r--lib/session.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/session.c b/lib/session.c
index 97e076976f..e6b8c98b39 100644
--- a/lib/session.c
+++ b/lib/session.c
@@ -172,6 +172,12 @@ gnutls_session_get_data2(gnutls_session_t session, gnutls_datum_t *data)
* current session. In all supported TLS protocols, the session id
* is less than %GNUTLS_MAX_SESSION_ID_SIZE.
*
+ * The TLS session ID cannot be relied for uniquely identifying sessions.
+ * It should not be used by new applications, nor be assumed
+ * that it will remain the same on resumption. The session ID changes
+ * even on resumed sessions under session tickets, and has no defined meaning
+ * under TLS 1.3.
+ *
* Returns: On success, %GNUTLS_E_SUCCESS (0) is returned, otherwise
* an error code is returned.
**/
@@ -207,6 +213,12 @@ gnutls_session_get_id(gnutls_session_t session,
* Returns the current session ID. The returned data should be
* treated as constant.
*
+ * The TLS session ID cannot be relied for uniquely identifying sessions.
+ * It should not be used by new applications, nor be assumed
+ * that it will remain the same on resumption. The session ID changes
+ * even on resumed sessions under session tickets, and has no defined meaning
+ * under TLS 1.3.
+ *
* Returns: On success, %GNUTLS_E_SUCCESS (0) is returned, otherwise
* an error code is returned.
*