summaryrefslogtreecommitdiff
path: root/src/serv.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2018-07-30 21:50:35 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2018-08-07 06:44:12 +0200
commit44b66fae002d5875b42e16fe259318c4bca86c47 (patch)
treea922a29463348d78e4d1573284eb5326c010294b /src/serv.c
parent34fb0de7e228c94921aaac826851db525132f1f5 (diff)
downloadgnutls-44b66fae002d5875b42e16fe259318c4bca86c47.tar.gz
gnutls-serv: re-introduce the session identifier message
The message "If your browser supports session resuming, then you should see the same session ID, when you press the reload button", is now printed again even under TLS1.3. Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Diffstat (limited to 'src/serv.c')
-rw-r--r--src/serv.c20
1 files changed, 9 insertions, 11 deletions
diff --git a/src/serv.c b/src/serv.c
index 0edb176f59..ffaffc98ae 100644
--- a/src/serv.c
+++ b/src/serv.c
@@ -570,17 +570,15 @@ static char *peer_print_info(gnutls_session_t session, int *ret_length,
version = gnutls_protocol_get_version(session);
/* print session_id */
- if (version < GNUTLS_TLS1_3) {
- sesid_size = sizeof(sesid);
- gnutls_session_get_id(session, sesid, &sesid_size);
- snprintf(tmp_buffer, tmp_buffer_size, "\n<p>Session ID: <i>");
- for (i = 0; i < sesid_size; i++)
- snprintf(tmp_buffer, tmp_buffer_size, "%.2X", sesid[i]);
- snprintf(tmp_buffer, tmp_buffer_size, "</i></p>\n");
- snprintf(tmp_buffer, tmp_buffer_size,
- "<h5>If your browser supports session resuming, then you should see the "
- "same session ID, when you press the <b>reload</b> button.</h5>\n");
- }
+ sesid_size = sizeof(sesid);
+ gnutls_session_get_id(session, sesid, &sesid_size);
+ snprintf(tmp_buffer, tmp_buffer_size, "\n<p>Session ID: <i>");
+ for (i = 0; i < sesid_size; i++)
+ snprintf(tmp_buffer, tmp_buffer_size, "%.2X", sesid[i]);
+ snprintf(tmp_buffer, tmp_buffer_size, "</i></p>\n");
+ snprintf(tmp_buffer, tmp_buffer_size,
+ "<h5>If your browser supports session resumption, then you should see the "
+ "same session ID, when you press the <b>reload</b> button.</h5>\n");
/* Here unlike print_info() we use the kx algorithm to distinguish
* the functions to call.