mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-03-13 06:48:13 +08:00
Added some more CSTP headers
This commit is contained in:
@@ -686,6 +686,13 @@ unsigned mtu_overhead, tls_mtu = 0;
|
|||||||
ret = tls_printf(ws->session, "X-CSTP-Keepalive: %u\r\n", ws->config->keepalive);
|
ret = tls_printf(ws->session, "X-CSTP-Keepalive: %u\r\n", ws->config->keepalive);
|
||||||
SEND_ERR(ret);
|
SEND_ERR(ret);
|
||||||
|
|
||||||
|
ret = tls_puts(ws->session, "X-CSTP-Smartcard-Removal-Disconnect: true\r\n");
|
||||||
|
SEND_ERR(ret);
|
||||||
|
|
||||||
|
ret = tls_puts(ws->session, "X-CSTP-Rekey-Method: new-tunnel\r\n");
|
||||||
|
SEND_ERR(ret);
|
||||||
|
|
||||||
|
|
||||||
tls_mtu = vinfo.mtu - 8;
|
tls_mtu = vinfo.mtu - 8;
|
||||||
if (req->cstp_mtu > 0) {
|
if (req->cstp_mtu > 0) {
|
||||||
tls_mtu = MIN(tls_mtu, req->cstp_mtu);
|
tls_mtu = MIN(tls_mtu, req->cstp_mtu);
|
||||||
|
|||||||
Reference in New Issue
Block a user