DTLS-Rekey time is set to be the 2/3 of cookie validity

This commit is contained in:
Nikos Mavrogiannopoulos
2013-02-11 20:39:13 +01:00
parent 4060c80469
commit 2e20c3f444
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -536,7 +536,7 @@ struct cmd_auth_req_st areq;
if (ret < 0)
return -1;
ret = tls_printf(ws->session, "Set-Cookie: webvpn=%s\r\n", str_cookie);
ret = tls_printf(ws->session, "Set-Cookie: webvpn=%s;Max-Age=%u\r\n", str_cookie, (unsigned)ws->config->cookie_validity);
if (ret < 0)
return -1;
+1 -1
View File
@@ -634,7 +634,7 @@ unsigned mtu_overhead, dtls_mtu = 0, tls_mtu = 0;
ret = tls_printf(ws->session, "X-DTLS-Port: %u\r\n", ws->config->udp_port);
SEND_ERR(ret);
ret = tls_puts(ws->session, "X-DTLS-Rekey-Time: 86400\r\n");
ret = tls_printf(ws->session, "X-DTLS-Rekey-Time: %u\r\n", (unsigned)(2*ws->config->cookie_validity)/3);
SEND_ERR(ret);
ret = tls_printf(ws->session, "X-DTLS-Keepalive: %u\r\n", ws->config->keepalive);